Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault #181

Closed
sobrinho opened this issue Feb 24, 2021 · 6 comments
Closed

Segfault #181

sobrinho opened this issue Feb 24, 2021 · 6 comments

Comments

@sobrinho
Copy link

  Contact Us
/Users/sobrinho/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/json-2.2.0/lib/json/common.rb:156: warning: Using the last argument as keyword parameters is deprecated
/Users/sobrinho/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/json-2.2.0/lib/json/common.rb:156: warning: Using the last argument as keyword parameters is deprecated
/Users/sobrinho/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/json-2.2.0/lib/json/common.rb:156: warning: Using the last argument as keyword parameters is deprecated
/Users/sobrinho/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/json-2.2.0/lib/json/common.rb:156: warning: Using the last argument as keyword parameters is deprecated
/Users/sobrinho/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/ethon-0.12.0/lib/ethon/curls/options.rb:103: [BUG] Segmentation fault at 0x0000000000000000
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [arm64-darwin20]

-- Crash Report log information --------------------------------------------
   See Crash Report log file under the one of following:
     * ~/Library/Logs/DiagnosticReports
     * /Library/Logs/DiagnosticReports
   for more details.
Don't forget to include the above Crash Report log file in bug reports.

-- Control frame information -----------------------------------------------
c:0207 p:---- s:1223 e:001222 CFUNC  :easy_setopt_string
c:0206 p:1164 s:1216 e:001215 METHOD /Users/sobrinho/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/ethon-0.12.0/lib/ethon/curls/options.rb:103
c:0205 p:0023 s:1203 e:001202 METHOD /Users/sobrinho/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/ethon-0.12.0/lib/ethon/easy/options.rb:11
c:0204 p:0017 s:1198 e:001196 METHOD /Users/sobrinho/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/ethon-0.12.0/lib/ethon/easy/http/postable.rb:16
c:0203 p:0025 s:1192 e:001191 METHOD /Users/sobrinho/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/ethon-0.12.0/lib/ethon/easy/http/actionable.rb:101
c:0202 p:0006 s:1187 e:001186 METHOD /Users/sobrinho/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/ethon-0.12.0/lib/ethon/easy/http/post.rb:16
c:0201 p:0016 s:1182 e:001181 METHOD /Users/sobrinho/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/ethon-0.12.0/lib/ethon/easy/http.rb:39
c:0200 p:0023 s:1175 e:001174 METHOD /Users/sobrinho/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/prometheus_http_logger-1.1.0/lib/prometheus_http_logger/adap
c:0199 p:0031 s:1168 e:001167 METHOD /Users/sobrinho/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/typhoeus-1.3.1/lib/typhoeus/easy_factory.rb:81
c:0198 p:0014 s:1162 e:001161 METHOD /Users/sobrinho/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/typhoeus-1.3.1/lib/typhoeus/request.rb:130
c:0197 p:0021 s:1156 e:001154 METHOD /Users/sobrinho/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/webmock-3.5.1/lib/webmock/http_lib_adapters/typhoeus_hydra_a
c:0196 p:0070 s:1146 e:001145 BLOCK  /Users/sobrinho/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/webmock-3.5.1/lib/webmock/http_lib_adapters/typhoeus_hydra_a
c:0195 p:0006 s:1138 e:001137 BLOCK  /Users/sobrinho/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/typhoeus-1.3.1/lib/typhoeus/request/before.rb:21 [FINISH]
c:0194 p:---- s:1133 e:001132 CFUNC  :each
c:0193 p:0014 s:1129 e:001128 METHOD /Users/sobrinho/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/typhoeus-1.3.1/lib/typhoeus/request/before.rb:20
c:0192 p:0025 s:1125 e:001124 METHOD /Users/sobrinho/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/typhoeus-1.3.1/lib/typhoeus/request/actions.rb:38

What info do you need?

This is failing 100% of the times I invoke Typhoeus.post.

@danderozier
Copy link

I'm experiencing the same thing. Ruby 2.6.5 on macOS 11.2.

I didn't have any problems until today, when I started using a new machine with the Apple M1 chip. Curious to see if @sobrinho is also on an M1?

/Users/derozier/.rvm/gems/ruby-2.6.5/gems/ethon-0.12.0/lib/ethon/curls/options.rb:103: [BUG] Segmentation fault at 0x0000000100000000
ruby 2.6.5p114 (2019-10-01 revision 67812) [-darwin20]

-- Crash Report log information --------------------------------------------
   See Crash Report log file under the one of following:
     * ~/Library/Logs/DiagnosticReports
     * /Library/Logs/DiagnosticReports
   for more details.
Don't forget to include the above Crash Report log file in bug reports.

-- Control frame information -----------------------------------------------
c:0037 p:---- s:0211 e:000210 CFUNC  :easy_setopt_string
c:0036 p:1181 s:0204 e:000203 METHOD /Users/derozier/.rvm/gems/ruby-2.6.5/gems/ethon-0.12.0/lib/ethon/curls/options.rb:103
c:0035 p:0019 s:0191 e:000190 BLOCK  /Users/derozier/.rvm/gems/ruby-2.6.5/gems/ethon-0.12.0/lib/ethon/easy/options.rb:35 [FINISH]
c:0034 p:0054 s:0187 e:000186 BLOCK  /Users/derozier/.rvm/gems/ruby-2.6.5/gems/ethon-0.12.0/lib/ethon/easy.rb:240 [FINISH]
c:0033 p:---- s:0181 e:000180 CFUNC  :each_pair
c:0032 p:0006 s:0177 e:000176 METHOD /Users/derozier/.rvm/gems/ruby-2.6.5/gems/ethon-0.12.0/lib/ethon/easy.rb:235
c:0031 p:0014 s:0172 e:000171 METHOD /Users/derozier/.rvm/gems/ruby-2.6.5/gems/ethon-0.12.0/lib/ethon/easy/http/actionable.rb:99
c:0030 p:0007 s:0167 e:000166 METHOD /Users/derozier/.rvm/gems/ruby-2.6.5/gems/ethon-0.12.0/lib/ethon/easy/http/get.rb:17
c:0029 p:0018 s:0162 e:000161 METHOD /Users/derozier/.rvm/gems/ruby-2.6.5/gems/ethon-0.12.0/lib/ethon/easy/http.rb:39
c:0028 p:0042 s:0155 e:000154 METHOD /Users/derozier/.rvm/gems/ruby-2.6.5/gems/typhoeus-1.4.0/lib/typhoeus/easy_factory.rb:81
c:0027 p:0014 s:0149 e:000148 METHOD /Users/derozier/.rvm/gems/ruby-2.6.5/gems/typhoeus-1.4.0/lib/typhoeus/request/operations.rb:15
c:0026 p:0029 s:0144 e:000143 METHOD /Users/derozier/.rvm/gems/ruby-2.6.5/gems/typhoeus-1.4.0/lib/typhoeus/request/cacheable.rb:18
c:0025 p:0031 s:0139 e:000138 METHOD /Users/derozier/.rvm/gems/ruby-2.6.5/gems/typhoeus-1.4.0/lib/typhoeus/request/block_connection.rb:31
c:0024 p:0045 s:0135 e:000134 METHOD /Users/derozier/.rvm/gems/ruby-2.6.5/gems/typhoeus-1.4.0/lib/typhoeus/request/stubbable.rb:25
c:0023 p:0021 s:0130 e:000129 METHOD /Users/derozier/.rvm/gems/ruby-2.6.5/gems/typhoeus-1.4.0/lib/typhoeus/request/before.rb:26
c:0022 p:0021 s:0126 e:000125 METHOD /Users/derozier/.rvm/gems/ruby-2.6.5/gems/hubspot-api-client-9.4.0/lib/hubspot/codegen/crm/owners/api_client.rb:52
c:0021 p:0262 s:0116 e:000115 METHOD /Users/derozier/.rvm/gems/ruby-2.6.5/gems/hubspot-api-client-9.4.0/lib/hubspot/codegen/crm/owners/api/default_api.rb:147
c:0020 p:0010 s:0100 e:000099 METHOD /Users/derozier/.rvm/gems/ruby-2.6.5/gems/hubspot-api-client-9.4.0/lib/hubspot/codegen/crm/owners/api/default_api.rb:98
c:0019 p:0019 s:0092 e:000091 EVAL   (irb):1 [FINISH]
c:0018 p:---- s:0089 e:000088 CFUNC  :eval
c:0017 p:0021 s:0081 e:000080 METHOD /Users/derozier/.rvm/rubies/ruby-2.6.5/lib/ruby/2.6.0/irb/workspace.rb:85
c:0016 p:0056 s:0073 e:000071 METHOD /Users/derozier/.rvm/rubies/ruby-2.6.5/lib/ruby/2.6.0/irb/context.rb:385
c:0015 p:0020 s:0064 e:000063 BLOCK  /Users/derozier/.rvm/rubies/ruby-2.6.5/lib/ruby/2.6.0/irb.rb:493
c:0014 p:0025 s:0061 e:000060 METHOD /Users/derozier/.rvm/rubies/ruby-2.6.5/lib/ruby/2.6.0/irb.rb:647
c:0013 p:0008 s:0055 e:000054 BLOCK  /Users/derozier/.rvm/rubies/ruby-2.6.5/lib/ruby/2.6.0/irb.rb:490
c:0012 p:0100 s:0050 e:000049 BLOCK  /Users/derozier/.rvm/rubies/ruby-2.6.5/lib/ruby/2.6.0/irb/ruby-lex.rb:246 [FINISH]
c:0011 p:---- s:0046 e:000045 CFUNC  :loop
c:0010 p:0006 s:0042 e:000041 BLOCK  /Users/derozier/.rvm/rubies/ruby-2.6.5/lib/ruby/2.6.0/irb/ruby-lex.rb:232 [FINISH]
c:0009 p:---- s:0039 e:000038 CFUNC  :catch
c:0008 p:0012 s:0034 e:000033 METHOD /Users/derozier/.rvm/rubies/ruby-2.6.5/lib/ruby/2.6.0/irb/ruby-lex.rb:231
c:0007 p:0034 s:0030 E:0026d8 METHOD /Users/derozier/.rvm/rubies/ruby-2.6.5/lib/ruby/2.6.0/irb.rb:489
c:0006 p:0005 s:0025 e:000024 BLOCK  /Users/derozier/.rvm/rubies/ruby-2.6.5/lib/ruby/2.6.0/irb.rb:428 [FINISH]
c:0005 p:---- s:0022 e:000021 CFUNC  :catch
c:0004 p:0064 s:0017 E:001708 METHOD /Users/derozier/.rvm/rubies/ruby-2.6.5/lib/ruby/2.6.0/irb.rb:427
c:0003 p:0102 s:0012 e:000011 METHOD /Users/derozier/.rvm/rubies/ruby-2.6.5/lib/ruby/2.6.0/irb.rb:383
c:0002 p:0026 s:0006 e:000005 EVAL   bin/console:6 [FINISH]
c:0001 p:0000 s:0003 E:000d20 (none) [FINISH]

@danderozier
Copy link

Seems it could be related to this: ffi/ffi#864

Also referenced here: typhoeus/typhoeus#667

@sobrinho
Copy link
Author

Yep, I'm on an M1. Everything is fine in an Intel machine, definitely an issue with the arch.

@jdarnok
Copy link

jdarnok commented Mar 1, 2021

Same issue. Do you have any workarounds @sobrinho @danderozier ?

@sobrinho
Copy link
Author

sobrinho commented Mar 1, 2021

See #180 (comment)

@sobrinho sobrinho closed this as completed Mar 1, 2021
@danderozier
Copy link

@jdarnok I just switched my terminal to Rosetta mode and reinstalled rubies, homebrew, packages, etc, as x86_64. Seems to have resolved the issue for the time being.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants