{"action":"created","issue":{"url":"https://api.github.com/repos/taf2/curb/issues/324","repository_url":"https://api.github.com/repos/taf2/curb","labels_url":"https://api.github.com/repos/taf2/curb/issues/324/labels{/name}","comments_url":"https://api.github.com/repos/taf2/curb/issues/324/comments","events_url":"https://api.github.com/repos/taf2/curb/issues/324/events","html_url":"https://github.com/taf2/curb/issues/324","id":253209744,"number":324,"title":"[Segmentation fault] again, with ruby 2.3.4, curb 0.9.3, sidekiq 4.2.7","user":{"login":"zfjoy520","id":91816,"avatar_url":"https://avatars1.githubusercontent.com/u/91816?v=4","gravatar_id":"","url":"https://api.github.com/users/zfjoy520","html_url":"https://github.com/zfjoy520","followers_url":"https://api.github.com/users/zfjoy520/followers","following_url":"https://api.github.com/users/zfjoy520/following{/other_user}","gists_url":"https://api.github.com/users/zfjoy520/gists{/gist_id}","starred_url":"https://api.github.com/users/zfjoy520/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zfjoy520/subscriptions","organizations_url":"https://api.github.com/users/zfjoy520/orgs","repos_url":"https://api.github.com/users/zfjoy520/repos","events_url":"https://api.github.com/users/zfjoy520/events{/privacy}","received_events_url":"https://api.github.com/users/zfjoy520/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-08-28T02:14:16Z","updated_at":"2018-05-28T14:50:00Z","closed_at":null,"author_association":"NONE","body":"```ruby\r\n/data/projects/xxx/releases/70/vendor/bundle/ruby/2.3.0/gems/curb-0.9.3/lib/curl/easy.rb:67: [BUG] Segmentation fault at 0x00000000000018\r\nruby 2.3.4p301 (2017-03-30 revision 58214) [x86_64-linux]\r\n\r\n-- Control frame information -----------------------------------------------\r\nc:0030 p:---- s:0125 e:000124 CFUNC  :add\r\nc:0029 p:0040 s:0121 e:000120 METHOD /data/projects/xxx/releases/70/vendor/bundle/ruby/2.3.0/gems/curb-0.9.3/lib/curl/easy.rb:67 [FINISH]\r\nc:0028 p:---- s:0116 e:000115 CFUNC  :http_post\r\nc:0027 p:0053 s:0113 e:000112 METHOD /data/projects/xxx/releases/70/vendor/bundle/ruby/2.3.0/gems/curb-0.9.3/lib/curl/easy.rb:400\r\nc:0026 p:0028 s:0107 e:000106 METHOD /data/projects/xxx/current/config/initializers/proxy.rb:13\r\nc:0025 p:0069 s:0100 e:000099 METHOD /data/projects/xxx/releases/70/app/services/callbacks/xxx.rb:30\r\nc:0024 p:0105 s:0095 e:000094 METHOD /data/projects/xxx/releases/70/app/jobs/xxx_worker.rb:12\r\nc:0023 p:0013 s:0087 e:000086 METHOD /data/projects/xxx/releases/70/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/processor.rb:158\r\nc:0022 p:0030 s:0082 e:000081 BLOCK  /data/projects/xxx/releases/70/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/processor.rb:138 [FINISH]\r\nc:0021 p:0009 s:0080 e:000079 BLOCK  /data/projects/xxx/releases/70/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq.rb:36 [FINISH]\r\nc:0020 p:0011 s:0077 E:0019d0 BLOCK  /data/projects/xxx/releases/70/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/processor.rb:133\r\nc:0019 p:0015 s:0075 e:000074 LAMBDA /data/projects/xxx/releases/70/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/middleware/chain.rb:128\r\nc:0018 p:0006 s:0073 e:000072 METHOD /data/projects/xxx/releases/70/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/middleware/server/retry_jobs.rb:7\r\nc:0017 p:0034 s:0066 e:000065 LAMBDA /data/projects/xxx/releases/70/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/middleware/chain.rb:130\r\nc:0016 p:0034 s:0064 e:000063 BLOCK  /data/projects/xxx/releases/70/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/middleware/server/logging.rb:11\r\nc:0015 p:0062 s:0061 e:000060 METHOD /data/projects/xxx/releases/70/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/logging.rb:32\r\nc:0014 p:0025 s:0057 e:000056 METHOD /data/projects/xxx/releases/70/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/middleware/server/logging.rb:7\r\nc:0013 p:0034 s:0051 e:000050 LAMBDA /data/projects/xxx/releases/70/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/middleware/chain.rb:130 [FINISH]\r\nc:0012 p:0029 s:0049 E:001848 METHOD /data/projects/xxx/releases/70/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/middleware/chain.rb:133\r\nc:0011 p:0026 s:0043 E:000170 BLOCK  /data/projects/xxx/releases/70/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/processor.rb:132\r\nc:0010 p:0062 s:0041 e:000040 METHOD /data/projects/xxx/releases/70/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/processor.rb:174\r\nc:0009 p:0053 s:0034 E:0000d0 BLOCK  /data/projects/xxx/releases/70/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/processor.rb:131 [FINISH]\r\nc:0008 p:0009 s:0030 e:000029 BLOCK  /data/projects/xxx/releases/70/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq.rb:35 [FINISH]\r\nc:0007 p:0055 s:0027 E:001f80 METHOD /data/projects/xxx/releases/70/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/processor.rb:126\r\nc:0006 p:0025 s:0018 e:000017 METHOD /data/projects/xxx/releases/70/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/processor.rb:82\r\nc:0005 p:0018 s:0015 e:000014 METHOD /data/projects/xxx/releases/70/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/processor.rb:70 [FINISH]\r\nc:0004 p:---- s:0011 e:000010 IFUNC\r\nc:0003 p:0006 s:0009 e:000008 METHOD /data/projects/xxx/releases/70/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/util.rb:17\r\nc:0002 p:0013 s:0004 e:000003 BLOCK  /data/projects/xxx/releases/70/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/util.rb:25 [FINISH]\r\nc:0001 p:---- s:0002 e:000001 (none) [FINISH]\r\n```\r\n\r\nplease help, tks."},"comment":{"url":"https://api.github.com/repos/taf2/curb/issues/comments/392546643","html_url":"https://github.com/taf2/curb/issues/324#issuecomment-392546643","issue_url":"https://api.github.com/repos/taf2/curb/issues/324","id":392546643,"user":{"login":"taf2","id":1568,"avatar_url":"https://avatars0.githubusercontent.com/u/1568?v=4","gravatar_id":"","url":"https://api.github.com/users/taf2","html_url":"https://github.com/taf2","followers_url":"https://api.github.com/users/taf2/followers","following_url":"https://api.github.com/users/taf2/following{/other_user}","gists_url":"https://api.github.com/users/taf2/gists{/gist_id}","starred_url":"https://api.github.com/users/taf2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taf2/subscriptions","organizations_url":"https://api.github.com/users/taf2/orgs","repos_url":"https://api.github.com/users/taf2/repos","events_url":"https://api.github.com/users/taf2/events{/privacy}","received_events_url":"https://api.github.com/users/taf2/received_events","type":"User","site_admin":false},"created_at":"2018-05-28T14:49:59Z","updated_at":"2018-05-28T14:49:59Z","author_association":"OWNER","body":"@zfjoy520 i wonder if updating the code to replace the http method with something like:\r\n\r\n```\r\n    def http(http_method, options = {})\r\n      opts = options[:body].nil? ? '' : on_body_normalize(options[:body] || {})\r\n      response = Curl.send(http_method, __url__(options), opts) do|http|\r\n        settings.slice(*HTTP_OPTIONS).deep_merge(options.slice(*HTTP_OPTIONS)).map { |key, value|\r\n          http.send(\"#{key}=\", value) if http.respond_to?(\"#{key}=\")\r\n        }\r\n        verbose && http.on_debug { |type, data| on_debug(type, data) }\r\n        yield(http) if block_given?\r\n      end\r\n      on_response(response)\r\n    rescue Curl::Err::TimeoutError => ex\r\n      on_timeout_error(ex)\r\n    rescue StandardError => ex\r\n      on_standard_error(ex)\r\n    end\r\n```\r\n\r\nalso maybe not necessary to extend Curl::Easy.\r\n\r\nTodd"}}
{"actor":{"display_login":"taf2"}}