googleads / googleads/google-ads-ruby

Segmentation fault when calling service.customer.list_accessible_customers

Open
#448 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug triage
Dominant language
Ruby
Stars
83
Forks
72
Avg merge
16m
Merged PRs (30d)
1

Description

Describe the bug:

The following code throws a segmentation fault:

      def initialize_google_ads_client
        Google::Ads::GoogleAds::GoogleAdsClient.new do |config|
          config.client_id = <client_id>
          config.client_secret = <client_secret>
          config.developer_token = <developer_token>
          config.refresh_token = <refresh_token>
        end
      end

      def google_ads_client
        @google_ads_client ||= initialize_google_ads_client
      end

      customer_resource_names = google_ads_client.
      service.customer.
      list_accessible_customers()

Steps to Reproduce:

Expected behavior:
not to throw an error

Client library version and API version:
Client library version: 23.0.0
Google Ads API version: 14

Dependencies:

    gapic-common (0.19.1)
      faraday (>= 1.9, < 3.a)
      faraday-retry (>= 1.0, < 3.a)
      google-protobuf (~> 3.14)
      googleapis-common-protos (>= 1.3.12, < 2.a)
      googleapis-common-protos-types (>= 1.3.1, < 2.a)
      googleauth (~> 1.0)
      grpc (~> 1.36)
    global (0.0.3)
      activesupport
    globalid (1.1.0)
      activesupport (>= 5.0)
    google-ads-googleads (23.0.0)
      gapic-common (~> 0.6)
      google-protobuf (>= 3.19.4, < 4.0)
    google-cloud-core (1.6.0)
      google-cloud-env (~> 1.0)
      google-cloud-errors (~> 1.0)
    google-cloud-env (1.5.0)
      faraday (>= 0.17.3, < 2.0)
    google-cloud-errors (1.1.0)
    google-cloud-recaptcha_enterprise (1.2.0)
      google-cloud-core (~> 1.5)
      google-cloud-recaptcha_enterprise-v1 (~> 0.0)
      google-cloud-recaptcha_enterprise-v1beta1 (~> 0.0)
    google-cloud-recaptcha_enterprise-v1 (0.4.0)
      gapic-common (~> 0.3)
      google-cloud-errors (~> 1.0)
    google-cloud-recaptcha_enterprise-v1beta1 (0.4.0)
      gapic-common (~> 0.3)
      google-cloud-errors (~> 1.0)
    google-protobuf (3.23.4)
    googleapis-common-protos (1.4.0)
      google-protobuf (~> 3.14)
      googleapis-common-protos-types (~> 1.2)
      grpc (~> 1.27)
    googleapis-common-protos-types (1.8.0)
      google-protobuf (~> 3.18)
    googleauth (1.6.0)
      faraday (>= 0.17.3, < 3.a)
      jwt (>= 1.4, < 3.0)
      memoist (~> 0.16)
      multi_json (~> 1.11)
      os (>= 0.9, < 2.0)
      signet (>= 0.16, < 2.a)
    grpc (1.56.2)
      google-protobuf (~> 3.23)
      googleapis-common-protos-types (~> 1.0)

Request/Response Logs:
Can't include any request logging, because the seg fault happens before the request could be made.

Anything else we should know about your project / environment:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository file or test is named. Start at the Ruby client entry point service.customer.list_accessible_customers and reproduce with google-ads-googleads 23.0.0, API version 14, and the listed grpc and protobuf dependencies; done means the call no longer segfaults before making its request.

Written by the indexing model from the issue text.

Assessment

Tech stack
grpc, ruby
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.