typhoeus: Segfault on osx 10.9.5 in ethon/easy/operations.rb:23
Hi,
Love Typhoeus, but having an issue on osX at the moment. I have brew installed curl and syminked it in as per this issue . I ran:
$ brew update
$ brew install curl
$ brew link curl --force
$ gem uninstall typhoeus ethon
$ bundle update typhoeus ethon
if I run curl --version
I get
curl 7.39.0 (x86_64-apple-darwin13.4.0) libcurl/7.39.0 SecureTransport zlib/1.2.5 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp Features: IPv6 Largefile NTLM NTLM_WB SSL libz
Anyway, I am getting a segfault in ethon what is perhaps interesting, is that if I run the same code in a ruby script, just requiring typhoeus then it works fine. So I guess it must be something Railsy getting in the middle. Any help / ideas would be most welcome!
If I should really be opening this issue somewhere else please just let me know where.
Thanks, Patrick
About this issue
- Original URL
- State: open
- Created 9 years ago
- Reactions: 1
- Comments: 43 (6 by maintainers)
same error happen on my side, any workaround?
Seeing this on an M1 running macOS 12.3:
Seeing this on macOS 13.4 (22F66). Intel. Ruby 2.7.6 and ruby 3.2.2. curl 7.88.1
Seeing this on MacOS 12.3.1
/Users/user/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/ethon-0.11.0/lib/ethon/easy/operations.rb:29: [BUG] Segmentation fault at 0x0000000101487a8a ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [x86_64-darwin21]
Following instructions here I did the following:
brew install openssl
brew install curl --with-openssl
brew link curl --force
I should add that this problem only occurred when requesting
https
protocol urls, that’s what led me to recompiling curl.I was able to resolve this by commenting out a single line in my Gemfile:
gem ‘spring-commands-rspec’
Once I removed that line, everything functioned normally.