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

Segmentation fault with Ruby 3.3.0 running with Docker #1039

Closed
ineseleuch opened this issue Jan 31, 2024 · 1 comment
Closed

Segmentation fault with Ruby 3.3.0 running with Docker #1039

ineseleuch opened this issue Jan 31, 2024 · 1 comment

Comments

@ineseleuch
Copy link

* Operating system:                Mac OS Sonoma
* Ruby implementation:             Ruby 
* `concurrent-ruby` version:       1.2.3

Hello,

As the heading says, I am currently encountering an issue with concurrent-ruby raising a Segmentation fault bug. I am trying to run a rails API on Docker on a Mac PC running with M1 chip.

Note 1: The project is the out of the box code still in initialization status so no specific code or logic has been added yet. This means that the dockerfile is also standard one too.

Note2: When running the project locally there is no issues, this only happens with docker (using ruby:3.3.0-alpine3.19 image)

Here is the stack trace:

/app/gems/ruby/3.3.0/gems/concurrent-ruby-1.2.3/lib/concurrent-ruby/concurrent/atomic/lock_local_var.rb:14: [BUG] Segmentation fault at 0x0060ffff8f7cefd0
ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [aarch64-linux-musl]

-- Control frame information -----------------------------------------------
c:0047 p:---- s:0257 e:000256 CFUNC  :resume
c:0046 p:0007 s:0253 E:002250 BLOCK  /app/gems/ruby/3.3.0/gems/concurrent-ruby-1.2.3/lib/concurrent-ruby/concurrent/atomic/lock_local_var.rb:14 [FINISH]
c:0045 p:---- s:0250 e:000249 CFUNC  :synchronize
c:0044 p:0026 s:0246 E:002228 METHOD /app/gems/ruby/3.3.0/gems/concurrent-ruby-1.2.3/lib/concurrent-ruby/concurrent/atomic/lock_local_var.rb:12
c:0043 p:0007 s:0241 e:000240 CLASS  /app/gems/ruby/3.3.0/gems/concurrent-ruby-1.2.3/lib/concurrent-ruby/concurrent/atomic/lock_local_var.rb:18
c:0042 p:0025 s:0238 e:000237 TOP    /app/gems/ruby/3.3.0/gems/concurrent-ruby-1.2.3/lib/concurrent-ruby/concurrent/atomic/lock_local_var.rb:5 [FINISH]
c:0041 p:---- s:0235 e:000234 CFUNC  :require
c:0040 p:0030 s:0230 e:000229 BLOCK  /usr/local/lib/ruby/3.3.0/bundled_gems.rb:74
c:0039 p:0131 s:0224 e:000223 METHOD /app/gems/ruby/3.3.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30
c:0038 p:0041 s:0215 e:000214 TOP    /app/gems/ruby/3.3.0/gems/concurrent-ruby-1.2.3/lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb:7 [FINISH]
c:0037 p:---- s:0212 e:000211 CFUNC  :require
c:0036 p:0030 s:0207 e:000206 BLOCK  /usr/local/lib/ruby/3.3.0/bundled_gems.rb:74
c:0035 p:0131 s:0201 e:000200 METHOD /app/gems/ruby/3.3.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30
c:0034 p:0047 s:0192 e:000191 TOP    /app/gems/ruby/3.3.0/gems/concurrent-ruby-1.2.3/lib/concurrent-ruby/concurrent/atomics.rb:8 [FINISH]
c:0033 p:---- s:0189 e:000188 CFUNC  :require
c:0032 p:0030 s:0184 e:000183 BLOCK  /usr/local/lib/ruby/3.3.0/bundled_gems.rb:74
c:0031 p:0131 s:0178 e:000177 METHOD /app/gems/ruby/3.3.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30
c:0030 p:0029 s:0169 e:000168 TOP    /app/gems/ruby/3.3.0/gems/concurrent-ruby-1.2.3/lib/concurrent-ruby/concurrent.rb:6 [FINISH]
c:0029 p:---- s:0166 e:000165 CFUNC  :require
c:0028 p:0030 s:0161 e:000160 BLOCK  /usr/local/lib/ruby/3.3.0/bundled_gems.rb:74
c:0027 p:0131 s:0155 e:000154 METHOD /app/gems/ruby/3.3.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30
c:0026 p:0017 s:0146 e:000145 TOP    /app/gems/ruby/3.3.0/gems/activesupport-7.0.8/lib/active_support/logger_thread_safe_level.rb:5 [FINISH]
c:0025 p:---- s:0143 e:000142 CFUNC  :require
c:0024 p:0030 s:0138 e:000137 BLOCK  /usr/local/lib/ruby/3.3.0/bundled_gems.rb:74
c:0023 p:0131 s:0132 e:000131 METHOD /app/gems/ruby/3.3.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30
c:0022 p:0017 s:0123 e:000122 TOP    /app/gems/ruby/3.3.0/gems/activesupport-7.0.8/lib/active_support/logger_silence.rb:5 [FINISH]
c:0021 p:---- s:0120 e:000119 CFUNC  :require
c:0020 p:0030 s:0115 e:000114 BLOCK  /usr/local/lib/ruby/3.3.0/bundled_gems.rb:74
c:0019 p:0131 s:0109 e:000108 METHOD /app/gems/ruby/3.3.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30
c:0018 p:0005 s:0100 e:000099 TOP    /app/gems/ruby/3.3.0/gems/activesupport-7.0.8/lib/active_support/logger.rb:3 [FINISH]
c:0017 p:---- s:0097 e:000096 CFUNC  :require
c:0016 p:0030 s:0092 e:000091 BLOCK  /usr/local/lib/ruby/3.3.0/bundled_gems.rb:74
c:0015 p:0131 s:0086 e:000085 METHOD /app/gems/ruby/3.3.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30
c:0014 p:0023 s:0077 e:000076 TOP    /app/gems/ruby/3.3.0/gems/activesupport-7.0.8/lib/active_support.rb:29 [FINISH]
c:0013 p:---- s:0074 e:000073 CFUNC  :require
c:0012 p:0030 s:0069 e:000068 BLOCK  /usr/local/lib/ruby/3.3.0/bundled_gems.rb:74
c:0011 p:0131 s:0063 e:000062 METHOD /app/gems/ruby/3.3.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30
c:0010 p:0005 s:0054 e:000053 TOP    /app/gems/ruby/3.3.0/gems/railties-7.0.8/lib/rails/command.rb:3 [FINISH]
c:0009 p:---- s:0051 e:000050 CFUNC  :require
c:0008 p:0030 s:0046 e:000045 BLOCK  /usr/local/lib/ruby/3.3.0/bundled_gems.rb:74
c:0007 p:0131 s:0040 e:000039 METHOD /app/gems/ruby/3.3.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30
c:0006 p:0005 s:0031 e:000030 TOP    /app/gems/ruby/3.3.0/gems/railties-7.0.8/lib/rails/commands.rb:3 [FINISH]
c:0005 p:---- s:0026 e:000025 CFUNC  :require
c:0004 p:0030 s:0021 e:000020 BLOCK  /usr/local/lib/ruby/3.3.0/bundled_gems.rb:74
c:0003 p:0131 s:0015 e:000014 METHOD /app/gems/ruby/3.3.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30
c:0002 p:0024 s:0006 e:000005 EVAL   bin/rails:4 [FINISH]
c:0001 p:0000 s:0003 E:000b60 DUMMY  [FINISH]

Your help with this will be highly appreciated, thank you

@eregon
Copy link
Collaborator

eregon commented Jan 31, 2024

#1023

@eregon eregon closed this as not planned Won't fix, can't repro, duplicate, stale Jan 31, 2024
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

2 participants