Closed avanderbeek closed 3 years ago
I have a similar (potentially the same) issue, and a dead simple script reproduces it. Fair warning: I've been out of the Ruby game for a bit so I didn't try to make an ethon-only example. Anyway, my simple example here crashes in the same way I was seeing for something deep in a cocoapods command - easy_getinfo
with httpauth_avail
.
These particular Ruby installations come from Homebrew, configured for native (arm64) packages. The system Ruby installation is useless here as ffi
will fail to select appropriate architectures.
bug.rb
:
require "typhoeus"
Typhoeus::get("https://github.com/")
Homebrew formula ruby
gem env
outputruby bug.rb
outputHomebrew formula ruby@2.7
gem env
outputruby bug.rb
outputHomebrew formula ruby@2.6
gem env
outputruby bug.rb
outputI can confirm this issue... Typheous hard crashes on my arm64 mac.
same issue
same issue, had to switch to other adapters as a workaround for now
Can confirm the problem.
By the way, are there any updates or news on this issue?
Same, +1. Using ruby-2.7.1 on a fresh M1 MBP.
@mengqing Could you please share the workaround for us? Thanks.
@mengqing Could you please share the workaround for us? Thanks.
I believe what he meant is that they just moved to using another library for now, e.g. Curb, which is also what we are gonna do.
@mengqing Could you please share the workaround for us? Thanks.
I believe what he meant is that they just moved to using another library for now, e.g. Curb, which is also what we are gonna do.
Yes that is correct. We use typhoeus as faraday adapter, and as a workaround, I'm switching to faraday default adapter (on my local) until this issue is fixed
would it be possible to build ethon against brew installed libcurl instead of system provided curl? because if you use brew in native (non-rosetta) mode it does install only the arm version of curl not the
➜ lib git:(stable) pwd
/opt/homebrew/opt/curl/lib
➜ lib git:(stable) file libcurl.4.dylib
libcurl.4.dylib: Mach-O 64-bit dynamically linked shared library arm64
Seeing the same issue on a fresh M1 Macbook.
Same issue on MAC with M1 processor
Same issue on M1 Macbook
I just moved from Travis to Github Actions and added macos as test-platform as well but all tests have passed so I am currently unable to reproduce the issue as I do not have a Macbook to test it. But the stack trace shows easy_getinfo
which is a libcurl function that ethon calls via FFI. So it could be that the libcurl version that is shipped/installed on your machine is incompatible. Can you tell me the version you are using? In the test-setup I install the dependency via via brew install curl
PS: I scrolled through the issue list saw a lot of segfaults on macOS every few years with no clear solution right now. All of them seem to be an issue of the libcurl version though and are not directly related to this gem.
Another update/note - please check if this is issue also occurs with the master branch.
@Kjarrigan Thanks for looking in to this. I believe the issue is not a macOS, but macOS running on Apple's new M1 CPU/SoC. Github Actions do not yet support the M1 as a platform (see https://github.com/actions/virtual-environments/issues/2187). So, it's no surprise to me that macOS is passing.
On M1 hardware, running under the Rosetta 2 emulator, everything works for me.
On M1 hardware, running native ruby, gems, etc (whole runtime stack), I see this issue consistently. I switched to ethon master and still see the issue.
I believe by default, ethon is using the version of libcurl that ships with macOS. I tried installing curl (and libcurl) via homebrew, and still see the same error.
This may be helpful?
2.7.2:main! % curl-config --version
libcurl 7.64.1
2.7.2:main! % curl --version
curl 7.64.1 (x86_64-apple-darwin20.0) libcurl/7.64.1 (SecureTransport) LibreSSL/2.8.3 zlib/1.2.11 nghttp2/1.41.0
Release-Date: 2019-03-27
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS GSS-API HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz MultiSSL NTLM NTLM_WB SPNEGO SSL UnixSockets
Happy to do some other testing if you'd like. -Christian
Now that I look at that console output, I see something fishy. x86_64-apple-darwin20.0
suggests that curl is NOT a native M1 binary.
I followed the instructions provided by brew info curl
to ensure that I'm using a native M1 version of libcurl.
2.7.2:main! % which curl
/opt/homebrew/opt/curl/bin/curl
2.7.2:main! % curl-config --version
libcurl 7.75.0
2.7.2:main! % curl --version
curl 7.75.0 (arm-apple-darwin20.3.0) libcurl/7.75.0 (SecureTransport) OpenSSL/1.1.1i zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.0 libssh2/1.9.0 nghttp2/1.43.0 librtmp/2.3
Release-Date: 2021-02-03
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz Metalink MultiSSL NTLM NTLM_WB SPNEGO SSL TLS-SRP UnixSockets zstd
But I still have the same issue. :(
I spent a couple hours yesterday trying to debug this issue. With the test suite, many of the tests pass– including things like calls to version
via FFI.
However, easy_perform
and easy_setopt_ffipointer
cause a segfault with the result: https://gist.github.com/hcatlin/ff0980d983990322e102775f16e42030
And here is the DiagnosticLog too
ruby_2021-02-09-130931_Hamptons-MacBook-Air.txt
The highlight being that it's a EXC_BAD_ACCESS (SIGABRT)
So, it's no surprise to me that macOS is passing. Ah I see. I have to admit I never had any Apply/macOS and am not really "up-to-date" about it's state/development/current hardware.
Thanks both of you for providing additional information. I'll look through them soon-ish and will hopefully find something :crossed_fingers:
Ah I see. I have to admit I never had any Apply/macOS and am not really "up-to-date" about it's state/development/current hardware.
In a nutshell, Apple is moving away from Intel CPUs over a 2 year period starting last November. All of their computers will be using CPUs (which are really SoCs -- systems on a chip) they have designed and are very similar to the SoCs in iPhones and iPads. The new CPUs/SoCs are called "Apple Silicon" and the first model is the "M1". Apple Silicon is an enhanced ARM architecture. It's extremely fast for its power demands and thermal profile, which ultimately means faster, much cooler running, and better battery life.
Apple expects everything to run natively on Apple Silicon/M1 eventually, but has created an emulator called Rosetta 2 which allows M1 Macs to run Intel binaries. Rosetta works very well, but has overhead. So, we're in a bit of a weird period where we wait for native M1 builds of everything and some issues related to the M1 must be resolved, like this issue.
I am running into this exact bug on M1 Mac, and I am running the exact same specs as OP
Issue likely relates to FFI and how FFI works under arm64(e). There seems to be a patch going on in https://github.com/libffi/libffi/pull/620 to add proper support for some of the new safety mechanisms in arm64e to libffi. The general workaround meanwhile seems to be to make sure to use the system libffi by doing gem install ffi -- --enable-system-libffi
, but although this did solve the problem for me for a couple of other FFI related gems, it didn't solve the problem with ethon and curl at all. While searching for segmentation fault issues on M1 the ethon gem does come up a lot more than others as well so there might still be some underlying issue here, either with this gem, ffi or potentially curl.
I have tried to definitely use a custom built curl/ruby the following way as well:
but it was still not working, so this was a dead end at least for now.
Note: if anyone is stuck here one other workaround to at least unblock you is to simply use the rosetta2/intel version of applications until this is sorted long term. You can do that by opening up your terminal in rosetta2 mode and rebuilding / reinstalling ruby and other tools you might need from there to make sure they get compiled in x86_64 mode. While it is annoying and you do get the performance hit it is fortunately negligible and will at least unblock you until there's a permanent solution
but although this did solve the problem for me for a couple of other FFI related gems, it didn't solve the problem with ethon and curl at all
I have pretty much the same situation, installation of ffi
globally allowed me to bypass few other errors and eventually led me to this segfault.
use the rosetta2/intel version of applications until this is sorted long term.
The problem with this approach is that there seems to be no realiable way to run everything through rosetta. Our case is that M1 machine is used as a CI agent, alongside other x86 machines. So unless we can switch entire shell to rosetta compatibility, this doesn't really help.
use the rosetta2/intel version of applications until this is sorted long term.
The problem with this approach is that there seems to be no realiable way to run everything through rosetta. Our case is that M1 machine is used as a CI agent, alongside other x86 machines. So unless we can switch entire shell to rosetta compatibility, this doesn't really help.
Yes, that's what we had to do, run zsh itself in rosetta mode and then install everything from here, so everything (rbenv, ruby, homebrew, curl, etc) is x86_64 and not arm64.
Meanwhile I'm trying to build everything from scratch in amd mode, including the ffi changes that has been pushed to see if that solves the problem, I'll keep you posted
One interesting note that I have tried building our app under Ubuntu running in QEMU under the M1, and for some reason the ethon gem died there with a segmentation fault as well at the same place. Haven't investigated it further yet, so I'm not sure if this is a bug with QEMU on M1, ethon on M1, or maybe with ethon on ARM64 architectures in general. I'm going to check if this fails on a non-M1 ARM64 machine and if yes the issue is probably there
Update on this: The issues were actually related to the build infrastructure. Ethon actually works just fine under a VM under Ubuntu on the M1 using the latest version of the ffi gem and libffi library
Second update: I have also tried to use an ffi gem that was explicitly built against this PR from the libffi git: https://github.com/libffi/libffi/pull/621 . While on ruby 2.6.6 this has still resulted in the same segmentation faults, under ruby 2.7.2 using the libffi code above did somewhat decrease the number of issues that I faced (compared to using ffi 1.14.2). However the issues didn't disappear, random segfaults are still appearing with that version as well
I see this issue has been closed, but I think I missed the resolution. FWIW, I'm still seeing the same issue after ensuring that I'm using the latest versions of all gems. What did I miss?
Whoops, I missed the reference to #180. I see it now... thanks!
I seems to fix it by bundle update
my issue log:
LoadError: dlopen(/Users/userName/.bundle/vendor/ruby/2.6.0/gems/ffi-1.15.0/lib/ffi_c.bundle, 0x0009): tried: '/Users/userName/.bundle/vendor/ruby/2.6.0/gems/ffi-1.15.0/lib/ffi_c.bundle' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/lib/ffi_c.bundle' (no such file) - /Users/mac/.bundle/vendor/ruby/2.6.0/gems/ffi-1.15.0/lib/ffi_c.bundle
Thanks @FrizzleFur, that put me on the right track.
In my case, it was enough to update just ethon
:
bundle update ethon
This still fails for me using ethon 0.16.0, @christiannelson how did #180 fix your problem?
ETHON: Libcurl initialized
[BUG] Segmentation fault at 0x0000000000000110
ruby 2.7.6p219 (2022-04-12 revision c9c2245c0a) [arm64-darwin21]
@avanderbeek I don't think this issue is totally resolved yet, myself and @silva96 are still experiencing this. M3, MacOS 14.1 (23B2073)
ETHON: Libcurl initialized
[BUG] Segmentation fault at 0x0000000000000110
ruby 2.7.8p225 (2023-03-30 revision 1f4d455848) [arm64-darwin23]
ethon (0.16.0)
ffi (>= 1.15.0)
I am experiencing same issue. M3, Sonam 14.3.1 (23D60)
Ruby: 3.2.3 Rails 7
Trace:
ruby 3.2.3 (2024-01-18 revision 52bb2ac0a6) [arm64-darwin23]
-- Crash Report log information --------------------------------------------
See Crash Report log file in one of the following locations:
* ~/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:0138 p:---- s:0904 e:000903 CFUNC :global_init
c:0137 p:0014 s:0899 e:000898 BLOCK /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/ethon-0.16.0/lib/ethon/curl.rb:61 [FINISH]
c:0136 p:---- s:0896 e:000895 CFUNC :synchronize
c:0135 p:0006 s:0892 e:000891 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/ethon-0.16.0/lib/ethon/curl.rb:59
c:0134 p:0008 s:0888 e:000887 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/ethon-0.16.0/lib/ethon/easy.rb:219 [FINISH]
c:0133 p:---- s:0883 e:000882 CFUNC :new
c:0132 p:0014 s:0879 e:000878 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/typhoeus-1.4.0/lib/typhoeus/pool.rb:43
c:0131 p:0011 s:0875 e:000874 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/typhoeus-1.4.0/lib/typhoeus/easy_factory.rb:70
c:0130 p:0003 s:0871 e:000870 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/typhoeus-1.4.0/lib/typhoeus/easy_factory.rb:81
c:0129 p:0007 s:0865 e:000864 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/typhoeus-1.4.0/lib/typhoeus/request.rb:130
c:0128 p:0006 s:0859 e:000857 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/webmock-3.17.1/lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb:54
c:0127 p:0025 s:0849 e:000848 BLOCK /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/webmock-3.17.1/lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb:147
c:0126 p:0006 s:0841 e:000840 BLOCK /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/typhoeus-1.4.0/lib/typhoeus/request/before.rb:21 [FINISH]
c:0125 p:---- s:0836 e:000835 CFUNC :each
c:0124 p:0007 s:0832 e:000831 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/typhoeus-1.4.0/lib/typhoeus/request/before.rb:20
c:0123 p:0018 s:0828 e:000827 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/typhoeus-1.4.0/lib/typhoeus/request/actions.rb:38
c:0122 p:0093 s:0822 e:000821 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/filestack-2.9.6/lib/filestack/utils/multipart_upload_utils.rb:66
c:0121 p:0052 s:0808 e:000807 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/filestack-2.9.6/lib/filestack/utils/multipart_upload_utils.rb:247
c:0120 p:0084 s:0788 e:000787 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/filestack-2.9.6/lib/filestack/models/filestack_client.rb:42
c:0119 p:0014 s:0775 e:000774 METHOD /Users/deepak/projects/ruby/donorbox/app/controllers/org_admin/froala_uploads_controller.rb:7
c:0118 p:0010 s:0770 e:000769 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_controller/metal/basic_implicit_render.rb:6
c:0117 p:0011 s:0763 e:000762 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/abstract_controller/base.rb:215
c:0116 p:0022 s:0756 e:000755 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_controller/metal/rendering.rb:165
c:0115 p:0008 s:0751 e:000750 BLOCK /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/abstract_controller/callbacks.rb:234
c:0114 p:0048 s:0748 e:000746 BLOCK /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/callbacks.rb:118
c:0113 p:0026 s:0738 e:000737 METHOD /Users/deepak/projects/ruby/donorbox/app/controllers/concerns/org_admin/locale_detection.rb:25
c:0112 p:0127 s:0734 e:000733 BLOCK /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/callbacks.rb:127
c:0111 p:0025 s:0725 e:000724 METHOD /Users/deepak/projects/ruby/donorbox/app/controllers/application_controller.rb:43
c:0110 p:0127 s:0721 e:000720 BLOCK /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/callbacks.rb:127
c:0109 p:0002 s:0712 e:000711 BLOCK /Users/deepak/projects/ruby/donorbox/app/controllers/application_controller.rb:33
c:0108 p:0027 s:0709 e:000708 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/core_ext/time/zones.rb:65
c:0107 p:0013 s:0702 e:000701 METHOD /Users/deepak/projects/ruby/donorbox/app/controllers/application_controller.rb:33
c:0106 p:0127 s:0698 e:000697 BLOCK /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/callbacks.rb:127
c:0105 p:0013 s:0689 e:000688 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actiontext-7.0.8.1/lib/action_text/rendering.rb:20
c:0104 p:0009 s:0683 e:000682 BLOCK /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actiontext-7.0.8.1/lib/action_text/engine.rb:69 [FINISH]
c:0103 p:---- s:0678 e:000677 CFUNC :instance_exec
c:0102 p:0127 s:0672 e:000671 BLOCK /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/callbacks.rb:127
c:0101 p:0105 s:0663 E:000068 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/callbacks.rb:138
c:0100 p:0006 s:0654 E:000fa8 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/abstract_controller/callbacks.rb:233
c:0099 p:0008 s:0647 e:000646 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_controller/metal/rescue.rb:23
c:0098 p:0009 s:0641 e:000640 BLOCK /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_controller/metal/instrumentation.rb:67
c:0097 p:0010 s:0635 e:000634 BLOCK /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/notifications.rb:206
c:0096 p:0022 s:0632 e:000631 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/notifications/instrumenter.rb:24
c:0095 p:0023 s:0624 e:000623 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/notifications.rb:206
c:0094 p:0084 s:0618 e:000617 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_controller/metal/instrumentation.rb:66
c:0093 p:0017 s:0612 e:000611 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_controller/metal/params_wrapper.rb:259
c:0092 p:0015 s:0607 e:000606 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activerecord-7.0.8.1/lib/active_record/railties/controller_runtime.rb:27
c:0091 p:0063 s:0601 e:000600 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/abstract_controller/base.rb:151
c:0090 p:0035 s:0594 e:000593 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionview-7.0.8.1/lib/action_view/rendering.rb:39
c:0089 p:0017 s:0586 e:000585 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_controller/metal.rb:188
c:0088 p:0033 s:0579 e:000578 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_controller/metal.rb:251
c:0087 p:0010 s:0572 e:000571 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/routing/route_set.rb:49
c:0086 p:0036 s:0564 e:000563 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/routing/route_set.rb:32
c:0085 p:0109 s:0556 e:000555 BLOCK /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/journey/router.rb:50 [FINISH]
c:0084 p:---- s:0543 e:000542 CFUNC :each
c:0083 p:0008 s:0539 e:000538 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/journey/router.rb:32
c:0082 p:0027 s:0534 e:000533 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/routing/route_set.rb:852
c:0081 p:0018 s:0528 e:000527 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/middleware/static.rb:23
c:0080 p:0132 s:0523 e:000522 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/omniauth-2.1.1/lib/omniauth/strategy.rb:202
c:0079 p:0007 s:0516 e:000515 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/omniauth-2.1.1/lib/omniauth/strategy.rb:169
c:0078 p:0007 s:0511 e:000510 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/omniauth-2.1.1/lib/omniauth/builder.rb:44
c:0077 p:0024 s:0506 e:000505 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-attack-6.6.1/lib/rack/attack.rb:103
c:0076 p:0028 s:0500 e:000499 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-2.2.8.1/lib/rack/tempfile_reaper.rb:15
c:0075 p:0007 s:0491 e:000490 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-2.2.8.1/lib/rack/etag.rb:27
c:0074 p:0034 s:0480 e:000479 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-2.2.8.1/lib/rack/conditional_get.rb:40
c:0073 p:0007 s:0471 e:000470 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-2.2.8.1/lib/rack/head.rb:12
c:0072 p:0015 s:0463 e:000462 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/http/permissions_policy.rb:38
c:0071 p:0015 s:0453 e:000452 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/http/content_security_policy.rb:36
c:0070 p:0026 s:0439 e:000438 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-2.2.8.1/lib/rack/session/abstract/id.rb:266
c:0069 p:0005 s:0428 e:000427 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-2.2.8.1/lib/rack/session/abstract/id.rb:260
c:0068 p:0015 s:0423 e:000422 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/middleware/cookies.rb:704
c:0067 p:0008 s:0413 e:000412 BLOCK /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/middleware/callbacks.rb:27
c:0066 p:0024 s:0410 e:000409 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/callbacks.rb:99
c:0065 p:0009 s:0401 e:000400 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/middleware/callbacks.rb:26
c:0064 p:0022 s:0394 e:000393 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/middleware/actionable_exceptions.rb:17
c:0063 p:0019 s:0388 e:000387 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/appsignal-3.1.2/lib/appsignal/rack/rails_instrumentation.rb:19
c:0062 p:0015 s:0383 e:000382 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/middleware/debug_exceptions.rb:28
c:0061 p:0015 s:0372 e:000371 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/middleware/show_exceptions.rb:29
c:0060 p:0037 s:0365 E:001e30 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/railties-7.0.8.1/lib/rails/rack/logger.rb:40
c:0059 p:0007 s:0353 e:000352 BLOCK /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/railties-7.0.8.1/lib/rails/rack/logger.rb:25
c:0058 p:0003 s:0350 e:000349 BLOCK /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/tagged_logging.rb:99
c:0057 p:0012 s:0347 e:000346 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/tagged_logging.rb:37
c:0056 p:0015 s:0341 e:000340 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/tagged_logging.rb:99
c:0055 p:0028 s:0335 e:000334 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/railties-7.0.8.1/lib/rails/rack/logger.rb:25
c:0054 p:0034 s:0329 e:000328 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/middleware/remote_ip.rb:93
c:0053 p:0012 s:0323 e:000322 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/request_store-1.5.1/lib/request_store/middleware.rb:19
c:0052 p:0032 s:0314 e:000313 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/middleware/request_id.rb:26
c:0051 p:0057 s:0308 e:000307 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-2.2.8.1/lib/rack/method_override.rb:24
c:0050 p:0013 s:0302 e:000301 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-2.2.8.1/lib/rack/runtime.rb:22
c:0049 p:0036 s:0292 e:000291 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-rewrite-1.5.1/lib/rack/rewrite.rb:24
c:0048 p:0016 s:0285 e:000284 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/middleware/executor.rb:14
c:0047 p:0018 s:0276 e:000275 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/middleware/static.rb:23
c:0046 p:0007 s:0271 e:000270 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-2.2.8.1/lib/rack/sendfile.rb:110
c:0045 p:0014 s:0259 e:000258 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/middleware/host_authorization.rb:131
c:0044 p:0156 s:0252 e:000251 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-cors-1.1.1/lib/rack/cors.rb:100
c:0043 p:0259 s:0238 e:000237 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-2.2.8.1/lib/rack/static.rb:161
c:0042 p:0015 s:0229 e:000228 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-reverse-proxy-0.12.0/lib/rack_reverse_proxy/roundtrip.rb:19
c:0041 p:0017 s:0225 e:000224 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-reverse-proxy-0.12.0/lib/rack_reverse_proxy/middleware.rb:25
c:0040 p:0016 s:0220 e:000219 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/railties-7.0.8.1/lib/rails/engine.rb:530
c:0039 p:0042 s:0214 e:000213 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-test-2.1.0/lib/rack/test.rb:360
c:0038 p:0033 s:0205 e:000204 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-test-2.1.0/lib/rack/test.rb:153
c:0037 p:0312 s:0198 e:000197 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/testing/integration.rb:279
c:0036 p:0009 s:0179 e:000178 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/testing/integration.rb:22
c:0035 p:0017 s:0173 e:000172 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/testing/integration.rb:370
c:0034 p:0014 s:0165 e:000164 BLOCK /Users/deepak/projects/ruby/donorbox/test/controllers/org_admin/froala_uploads_controller_test.rb:12
c:0033 p:0033 s:0162 e:000161 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/vcr-6.2.0/lib/vcr/util/variable_args_block_caller.rb:9
c:0032 p:0042 s:0156 e:000155 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/vcr-6.2.0/lib/vcr.rb:194
c:0031 p:0007 s:0148 E:000498 BLOCK /Users/deepak/projects/ruby/donorbox/test/controllers/org_admin/froala_uploads_controller_test.rb:11 [FINISH]
c:0030 p:0012 s:0144 e:000143 BLOCK /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/minitest-5.22.2/lib/minitest/test.rb:94
c:0029 p:0002 s:0141 e:000140 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/minitest-5.22.2/lib/minitest/test.rb:191
c:0028 p:0004 s:0136 e:000135 BLOCK /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/minitest-5.22.2/lib/minitest/test.rb:89
c:0027 p:0008 s:0133 e:000132 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/minitest-5.22.2/lib/minitest.rb:324
c:0026 p:0004 s:0128 e:000127 BLOCK /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/minitest-5.22.2/lib/minitest/test.rb:88
c:0025 p:0022 s:0125 E:002100 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/minitest-5.22.2/lib/minitest.rb:423
c:0024 p:0027 s:0117 E:002508 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/minitest-5.22.2/lib/minitest/test.rb:239
c:0023 p:0004 s:0110 E:0024a0 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/minitest-5.22.2/lib/minitest/test.rb:87
c:0022 p:0008 s:0106 e:000105 BLOCK /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/executor/test_helper.rb:5
c:0021 p:0012 s:0103 e:000102 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/execution_wrapper.rb:105
c:0020 p:0009 s:0098 e:000097 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/executor/test_helper.rb:5
c:0019 p:0008 s:0091 e:000090 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/minitest-5.22.2/lib/minitest.rb:1138
c:0018 p:0008 s:0084 e:000083 BLOCK /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/testing/parallelization/worker.rb:50
c:0017 p:0022 s:0081 E:001300 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/minitest-5.22.2/lib/minitest.rb:423
c:0016 p:0019 s:0073 E:001f98 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/minitest-5.22.2/lib/minitest.rb:410
c:0015 p:0049 s:0066 E:0023b8 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/testing/parallelization/worker.rb:49
c:0014 p:0011 s:0057 e:000056 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/testing/parallelization/worker.rb:38
c:0013 p:0039 s:0052 e:000051 BLOCK /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/testing/parallelization/worker.rb:27 [FINISH]
c:0012 p:---- s:0049 e:000048 CFUNC :fork
c:0011 p:0004 s:0045 e:000044 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/testing/parallelization/worker.rb:15
c:0010 p:0011 s:0041 e:000040 BLOCK /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/testing/parallelization.rb:37 [FINISH]
c:0009 p:---- s:0037 e:000036 IFUNC
c:0008 p:---- s:0034 e:000033 CFUNC :times
c:0007 p:---- s:0031 e:000030 CFUNC :each
c:0006 p:---- s:0028 e:000027 CFUNC :map
c:0005 p:0008 s:0024 e:000023 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/testing/parallelization.rb:36
c:0004 p:0023 s:0020 e:000019 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/testing/parallelize_executor.rb:18
c:0003 p:0128 s:0016 e:000015 METHOD /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/minitest-5.22.2/lib/minitest.rb:159
c:0002 p:0045 s:0008 E:001610 BLOCK /Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/minitest-5.22.2/lib/minitest.rb:86 [FINISH]
c:0001 p:0000 s:0003 E:0012d0 DUMMY [FINISH]
-- Ruby level backtrace information ----------------------------------------
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/minitest-5.22.2/lib/minitest.rb:86:in `block in autorun'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/minitest-5.22.2/lib/minitest.rb:159:in `run'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/testing/parallelize_executor.rb:18:in `start'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/testing/parallelization.rb:36:in `start'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/testing/parallelization.rb:36:in `map'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/testing/parallelization.rb:36:in `each'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/testing/parallelization.rb:36:in `times'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/testing/parallelization.rb:37:in `block in start'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/testing/parallelization/worker.rb:15:in `start'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/testing/parallelization/worker.rb:15:in `fork'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/testing/parallelization/worker.rb:27:in `block in start'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/testing/parallelization/worker.rb:38:in `work_from_queue'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/testing/parallelization/worker.rb:49:in `perform_job'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/minitest-5.22.2/lib/minitest.rb:410:in `with_info_handler'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/minitest-5.22.2/lib/minitest.rb:423:in `on_signal'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/testing/parallelization/worker.rb:50:in `block in perform_job'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/minitest-5.22.2/lib/minitest.rb:1138:in `run_one_method'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/executor/test_helper.rb:5:in `run'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/execution_wrapper.rb:105:in `perform'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/executor/test_helper.rb:5:in `block in run'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/minitest-5.22.2/lib/minitest/test.rb:87:in `run'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/minitest-5.22.2/lib/minitest/test.rb:239:in `with_info_handler'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/minitest-5.22.2/lib/minitest.rb:423:in `on_signal'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/minitest-5.22.2/lib/minitest/test.rb:88:in `block in run'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/minitest-5.22.2/lib/minitest.rb:324:in `time_it'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/minitest-5.22.2/lib/minitest/test.rb:89:in `block (2 levels) in run'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/minitest-5.22.2/lib/minitest/test.rb:191:in `capture_exceptions'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/minitest-5.22.2/lib/minitest/test.rb:94:in `block (3 levels) in run'
/Users/deepak/projects/ruby/donorbox/test/controllers/org_admin/froala_uploads_controller_test.rb:11:in `block (2 levels) in <top (required)>'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/vcr-6.2.0/lib/vcr.rb:194:in `use_cassette'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/vcr-6.2.0/lib/vcr/util/variable_args_block_caller.rb:9:in `call_block'
/Users/deepak/projects/ruby/donorbox/test/controllers/org_admin/froala_uploads_controller_test.rb:12:in `block (3 levels) in <top (required)>'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/testing/integration.rb:370:in `post'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/testing/integration.rb:22:in `post'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/testing/integration.rb:279:in `process'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-test-2.1.0/lib/rack/test.rb:153:in `request'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-test-2.1.0/lib/rack/test.rb:360:in `process_request'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/railties-7.0.8.1/lib/rails/engine.rb:530:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-reverse-proxy-0.12.0/lib/rack_reverse_proxy/middleware.rb:25:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-reverse-proxy-0.12.0/lib/rack_reverse_proxy/roundtrip.rb:19:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-2.2.8.1/lib/rack/static.rb:161:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-cors-1.1.1/lib/rack/cors.rb:100:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/middleware/host_authorization.rb:131:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-2.2.8.1/lib/rack/sendfile.rb:110:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/middleware/static.rb:23:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/middleware/executor.rb:14:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-rewrite-1.5.1/lib/rack/rewrite.rb:24:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-2.2.8.1/lib/rack/runtime.rb:22:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-2.2.8.1/lib/rack/method_override.rb:24:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/middleware/request_id.rb:26:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/request_store-1.5.1/lib/request_store/middleware.rb:19:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/middleware/remote_ip.rb:93:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/railties-7.0.8.1/lib/rails/rack/logger.rb:25:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/tagged_logging.rb:99:in `tagged'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/tagged_logging.rb:37:in `tagged'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/tagged_logging.rb:99:in `block in tagged'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/railties-7.0.8.1/lib/rails/rack/logger.rb:25:in `block in call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/railties-7.0.8.1/lib/rails/rack/logger.rb:40:in `call_app'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/middleware/show_exceptions.rb:29:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/middleware/debug_exceptions.rb:28:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/appsignal-3.1.2/lib/appsignal/rack/rails_instrumentation.rb:19:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/middleware/actionable_exceptions.rb:17:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/callbacks.rb:99:in `run_callbacks'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/middleware/cookies.rb:704:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-2.2.8.1/lib/rack/session/abstract/id.rb:260:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-2.2.8.1/lib/rack/session/abstract/id.rb:266:in `context'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/http/content_security_policy.rb:36:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/http/permissions_policy.rb:38:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-2.2.8.1/lib/rack/head.rb:12:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-2.2.8.1/lib/rack/conditional_get.rb:40:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-2.2.8.1/lib/rack/etag.rb:27:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-2.2.8.1/lib/rack/tempfile_reaper.rb:15:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/rack-attack-6.6.1/lib/rack/attack.rb:103:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/omniauth-2.1.1/lib/omniauth/builder.rb:44:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/omniauth-2.1.1/lib/omniauth/strategy.rb:169:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/omniauth-2.1.1/lib/omniauth/strategy.rb:202:in `call!'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/middleware/static.rb:23:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/routing/route_set.rb:852:in `call'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/journey/router.rb:32:in `serve'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/journey/router.rb:32:in `each'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/journey/router.rb:50:in `block in serve'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/routing/route_set.rb:32:in `serve'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_dispatch/routing/route_set.rb:49:in `dispatch'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_controller/metal.rb:251:in `dispatch'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_controller/metal.rb:188:in `dispatch'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionview-7.0.8.1/lib/action_view/rendering.rb:39:in `process'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/abstract_controller/base.rb:151:in `process'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activerecord-7.0.8.1/lib/active_record/railties/controller_runtime.rb:27:in `process_action'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_controller/metal/params_wrapper.rb:259:in `process_action'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_controller/metal/instrumentation.rb:66:in `process_action'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/notifications.rb:206:in `instrument'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/notifications.rb:206:in `block in instrument'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_controller/metal/instrumentation.rb:67:in `block in process_action'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_controller/metal/rescue.rb:23:in `process_action'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/abstract_controller/callbacks.rb:233:in `process_action'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/callbacks.rb:138:in `run_callbacks'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/callbacks.rb:127:in `block in run_callbacks'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/callbacks.rb:127:in `instance_exec'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actiontext-7.0.8.1/lib/action_text/engine.rb:69:in `block (4 levels) in <class:Engine>'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actiontext-7.0.8.1/lib/action_text/rendering.rb:20:in `with_renderer'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/callbacks.rb:127:in `block in run_callbacks'
/Users/deepak/projects/ruby/donorbox/app/controllers/application_controller.rb:33:in `set_time_zone'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/core_ext/time/zones.rb:65:in `use_zone'
/Users/deepak/projects/ruby/donorbox/app/controllers/application_controller.rb:33:in `block in set_time_zone'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/callbacks.rb:127:in `block in run_callbacks'
/Users/deepak/projects/ruby/donorbox/app/controllers/application_controller.rb:43:in `set_read_only_database'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/callbacks.rb:127:in `block in run_callbacks'
/Users/deepak/projects/ruby/donorbox/app/controllers/concerns/org_admin/locale_detection.rb:25:in `use_locale'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/activesupport-7.0.8.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/abstract_controller/callbacks.rb:234:in `block in process_action'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_controller/metal/rendering.rb:165:in `process_action'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/abstract_controller/base.rb:215:in `process_action'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/actionpack-7.0.8.1/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
/Users/deepak/projects/ruby/donorbox/app/controllers/org_admin/froala_uploads_controller.rb:7:in `create'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/filestack-2.9.6/lib/filestack/models/filestack_client.rb:42:in `upload'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/filestack-2.9.6/lib/filestack/utils/multipart_upload_utils.rb:247:in `multipart_upload'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/filestack-2.9.6/lib/filestack/utils/multipart_upload_utils.rb:66:in `multipart_start'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/typhoeus-1.4.0/lib/typhoeus/request/actions.rb:38:in `post'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/typhoeus-1.4.0/lib/typhoeus/request/before.rb:20:in `run'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/typhoeus-1.4.0/lib/typhoeus/request/before.rb:20:in `each'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/typhoeus-1.4.0/lib/typhoeus/request/before.rb:21:in `block in run'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/webmock-3.17.1/lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb:147:in `block in <class:TyphoeusAdapter>'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/webmock-3.17.1/lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb:54:in `build_request_signature'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/typhoeus-1.4.0/lib/typhoeus/request.rb:130:in `url'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/typhoeus-1.4.0/lib/typhoeus/easy_factory.rb:81:in `get'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/typhoeus-1.4.0/lib/typhoeus/easy_factory.rb:70:in `easy'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/typhoeus-1.4.0/lib/typhoeus/pool.rb:43:in `get'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/typhoeus-1.4.0/lib/typhoeus/pool.rb:43:in `new'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/ethon-0.16.0/lib/ethon/easy.rb:219:in `initialize'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/ethon-0.16.0/lib/ethon/curl.rb:59:in `init'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/ethon-0.16.0/lib/ethon/curl.rb:59:in `synchronize'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/ethon-0.16.0/lib/ethon/curl.rb:61:in `block in init'
/Users/deepak/.rvm/gems/ruby-3.2.3@donorbox/gems/ethon-0.16.0/lib/ethon/curl.rb:61:in `global_init'
-- Machine register context ------------------------------------------------
x0: 0x0000000126f2ace0 x1: 0x0000000000000001 x2: 0x0000000000000004
x3: 0x0000000000000004 x4: 0x000000018d461bd8 x5: 0x0000000000000001
x6: 0x0000000117dd6120 x7: 0x0000000000000800 x18: 0x0000000000000000
x19: 0x00000001e3b2e040 x20: 0x0000000000000000 x21: 0x0000000126f2ace0
x22: 0x00000000100020ff x23: 0x0000000126f937a0 x24: 0x0000000126f2ace0
x25: 0x0000000000000104 x26: 0x00000001e3b29d20 x27: 0x00000001e3b29dc0
x28: 0x0000000000000001 lr: 0xa57600018d0b842c fp: 0x000000016bce9b90
sp: 0x000000016bce9ae0
-- C level backtrace information -------------------------------------------
BUS received in SEGV handler```
Crash report
[ruby-2024-03-07-234619.txt](https://github.com/typhoeus/ethon/files/14528504/ruby-2024-03-07-234619.txt)
Hey team, What's the conclusion here? I am facing same issue:
ETHON: Libcurl initialized
/home/hownow/.rvm/gems/ruby-2.5.8/gems/ethon-0.12.0/lib/ethon/easy/operations.rb:29: [BUG] Segmentation fault at 0x00007
ruby 2.5.8p224 (2020-03-31 revision 67882) [x86_64-linux]
Ubuntu version: 22.04 Rails: v5.0.7
Just switched from Ubuntu to Mac OS 11.1 with M1 processor and running rails app that had no issues on Ubuntu.
Running Rspec test suite with typhoeus 1.3.1, ethon 0.12.0, ffi 1.14.2.
/Users/asv/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/ethon-0.12.0/lib/ethon/curls/infos.rb:109: [BUG] Segmentation fault at 0x00000001000653f1 ruby 2.6.6p146 (2020-03-31 revision 67876) [-darwin20]
Offending call seems to be
Typhoeus.get(url, opts)
where URL is a valid URL andopts =
{:timeout_ms=>6000, :connecttimeout_ms=>3000}
Any idea what may be up?