Project

General

Profile

Actions

Bug #18637

closed

Segmentation fault for yield inside another Thread

Added by Eregon (Benoit Daloze) 3 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 3.0.3p157 (2021-11-24 revision 3fb7d2cadc) [x86_64-linux]
[ruby-core:107921]

Description

puts RUBY_DESCRIPTION

def execute
  Thread.new do
    yield 42
  end.join
end

p first: to_enum(:execute).first

(extracted from https://github.com/ruby-concurrency/concurrent-ruby/issues/931)

Output:

ruby 3.0.3p157 (2021-11-24 revision 3fb7d2cadc) [x86_64-linux]
#<Thread:0x0000000000c04c20 repro.rb:4 run> terminated with exception (report_on_exception is true):
[BUG] Segmentation fault at 0x0000000000000018
ruby 3.0.3p157 (2021-11-24 revision 3fb7d2cadc) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0001 p:---- s:0003 e:000002 (none) [FINISH]


-- Machine register context ------------------------------------------------
 RIP: 0x00007f82222df5e6 RBP: 0x0000000000000000 RSP: 0x00007f82111019a0
 RAX: 0x00007f82224326e8 RBX: 0x00007f8211101a28 RCX: 0x0000000000001f01
 RDX: 0x00007f8211101a28 RDI: 0x0000000000000000 RSI: 0x000000000000009b
  R8: 0x0000000000000001  R9: 0x0000000000000040 R10: 0x00007f8221cfa188
 R11: 0x0000000000000293 R12: 0x0000000000000000 R13: 0x000000000000009b
 R14: 0x0000000000001f01 R15: 0x0000000000000001 EFL: 0x0000000000010206

-- C level backtrace information -------------------------------------------
/home/eregon/.rubies/ruby-3.0.3/lib/libruby.so.3.0(rb_print_backtrace+0x11) [0x7f8222304a9c] vm_dump.c:758
/home/eregon/.rubies/ruby-3.0.3/lib/libruby.so.3.0(rb_vm_bugreport) vm_dump.c:998
/home/eregon/.rubies/ruby-3.0.3/lib/libruby.so.3.0(rb_bug_for_fatal_signal+0xf0) [0x7f822210fbb0] error.c:786
/home/eregon/.rubies/ruby-3.0.3/lib/libruby.so.3.0(sigsegv+0x49) [0x7f822225c469] signal.c:963
/lib64/libc.so.6(__restore_rt+0x0) [0x7f8221d23750]
/home/eregon/.rubies/ruby-3.0.3/lib/libruby.so.3.0(cached_callable_method_entry+0x0) [0x7f82222df5e6] vm_sync.h:41
/home/eregon/.rubies/ruby-3.0.3/lib/libruby.so.3.0(callable_method_entry) vm_method.c:1144
/home/eregon/.rubies/ruby-3.0.3/lib/libruby.so.3.0(vm_respond_to+0x3f) [0x7f82222e8bbf] vm_method.c:2490
/home/eregon/.rubies/ruby-3.0.3/lib/libruby.so.3.0(check_funcall_respond_to+0x17) [0x7f82222e8ebc] vm_eval.c:558
/home/eregon/.rubies/ruby-3.0.3/lib/libruby.so.3.0(rb_check_funcall_default_kw) vm_eval.c:630
/home/eregon/.rubies/ruby-3.0.3/lib/libruby.so.3.0(rb_check_funcall) vm_eval.c:621
/home/eregon/.rubies/ruby-3.0.3/lib/libruby.so.3.0(rb_get_message+0x14) [0x7f8222110284] error.c:1188
/home/eregon/.rubies/ruby-3.0.3/lib/libruby.so.3.0(rb_ec_error_print+0x1b3) [0x7f82221194b3] eval_error.c:377
/home/eregon/.rubies/ruby-3.0.3/lib/libruby.so.3.0(thread_start_func_2+0x6bf) [0x7f82222a67df] thread.c:852
/home/eregon/.rubies/ruby-3.0.3/lib/libruby.so.3.0(register_cached_thread_and_wait+0x0) [0x7f82222a6ffa] thread_pthread.c:994
/home/eregon/.rubies/ruby-3.0.3/lib/libruby.so.3.0(thread_start_func_1) thread_pthread.c:1001
/lib64/libc.so.6(0x8db1a) [0x7f8221d6eb1a]
/lib64/libc.so.6(0x112650) [0x7f8221df3650]

-- Other runtime information -----------------------------------------------

* Loaded script: repro.rb

* Loaded features:

    0 enumerator.so
    1 thread.rb
    2 rational.so
    3 complex.so
    4 ruby2_keywords.rb
    5 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/x86_64-linux/enc/encdb.so
    6 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/x86_64-linux/enc/trans/transdb.so
    7 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/x86_64-linux/rbconfig.rb
    8 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/rubygems/compatibility.rb
    9 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/rubygems/defaults.rb
   10 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/rubygems/deprecate.rb
   11 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/rubygems/errors.rb
   12 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/rubygems/exceptions.rb
   13 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/rubygems/basic_specification.rb
   14 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/rubygems/stub_specification.rb
   15 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/rubygems/text.rb
   16 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/rubygems/user_interaction.rb
   17 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/rubygems/specification_policy.rb
   18 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/rubygems/util/list.rb
   19 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/rubygems/platform.rb
   20 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/rubygems/version.rb
   21 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/rubygems/requirement.rb
   22 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/rubygems/specification.rb
   23 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/rubygems/util.rb
   24 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/rubygems/dependency.rb
   25 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/rubygems/core_ext/kernel_gem.rb
   26 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/x86_64-linux/monitor.so
   27 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/monitor.rb
   28 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb
   29 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/rubygems/core_ext/kernel_warn.rb
   30 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/rubygems/path_support.rb
   31 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/rubygems/bundler_version_finder.rb
   32 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/rubygems.rb
   33 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/did_you_mean/version.rb
   34 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/did_you_mean/core_ext/name_error.rb
   35 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/did_you_mean/levenshtein.rb
   36 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/did_you_mean/jaro_winkler.rb
   37 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/did_you_mean/spell_checker.rb
   38 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb
   39 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/did_you_mean/spell_checkers/name_error_checkers/variable_name_checker.rb
   40 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/did_you_mean/spell_checkers/name_error_checkers.rb
   41 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/did_you_mean/spell_checkers/method_name_checker.rb
   42 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/did_you_mean/spell_checkers/key_error_checker.rb
   43 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/did_you_mean/spell_checkers/null_checker.rb
   44 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/did_you_mean/tree_spell_checker.rb
   45 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/did_you_mean/spell_checkers/require_path_checker.rb
   46 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/did_you_mean/formatters/plain_formatter.rb
   47 /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/did_you_mean.rb

* Process memory map:

00400000-00401000 r--p 00000000 fd:00 30517218                           /home/eregon/.rubies/ruby-3.0.3/bin/ruby
00401000-00402000 r-xp 00001000 fd:00 30517218                           /home/eregon/.rubies/ruby-3.0.3/bin/ruby
00402000-00403000 r--p 00002000 fd:00 30517218                           /home/eregon/.rubies/ruby-3.0.3/bin/ruby
00403000-00404000 r--p 00002000 fd:00 30517218                           /home/eregon/.rubies/ruby-3.0.3/bin/ruby
00404000-00405000 rw-p 00003000 fd:00 30517218                           /home/eregon/.rubies/ruby-3.0.3/bin/ruby
00818000-00c1b000 rw-p 00000000 00:00 0                                  [heap]
7f820b05d000-7f820c000000 rw-p 00000000 00:00 0 
7f820c000000-7f820c02a000 rw-p 00000000 00:00 0 
7f820c02a000-7f8210000000 ---p 00000000 00:00 0 
7f8210042000-7f821028a000 r--s 00000000 fd:00 13374981                   /usr/lib64/libc.so.6
7f821028a000-7f8210357000 rw-p 00000000 00:00 0 
7f8210357000-7f8210f9b000 r--s 00000000 fd:00 29377039                   /home/eregon/.rubies/ruby-3.0.3/lib/libruby.so.3.0.3
7f8210f9b000-7f8210fd2000 r--s 00000000 fd:00 30517218                   /home/eregon/.rubies/ruby-3.0.3/bin/ruby
7f8210fd2000-7f8210fd5000 r--p 00000000 fd:00 13370280                   /usr/lib64/libgcc_s-11-20220127.so.1
7f8210fd5000-7f8210fe7000 r-xp 00003000 fd:00 13370280                   /usr/lib64/libgcc_s-11-20220127.so.1
7f8210fe7000-7f8210fea000 r--p 00015000 fd:00 13370280                   /usr/lib64/libgcc_s-11-20220127.so.1
7f8210fea000-7f8210feb000 ---p 00018000 fd:00 13370280                   /usr/lib64/libgcc_s-11-20220127.so.1
7f8210feb000-7f8210fec000 r--p 00018000 fd:00 13370280                   /usr/lib64/libgcc_s-11-20220127.so.1
7f8210fec000-7f8210fed000 rw-p 00019000 fd:00 13370280                   /usr/lib64/libgcc_s-11-20220127.so.1
7f8211002000-7f8211003000 ---p 00000000 00:00 0 
7f8211003000-7f8211203000 rw-p 00000000 00:00 0 
7f8211203000-7f8211204000 ---p 00000000 00:00 0 
7f8211204000-7f82112a5000 rw-p 00000000 00:00 0 
7f82112a5000-7f82112a6000 ---p 00000000 00:00 0 
7f82112a6000-7f8211347000 rw-p 00000000 00:00 0 
7f8211347000-7f8211348000 ---p 00000000 00:00 0 
7f8211348000-7f82113e9000 rw-p 00000000 00:00 0 
7f82113e9000-7f82113ea000 ---p 00000000 00:00 0 
7f82113ea000-7f821148b000 rw-p 00000000 00:00 0 
7f821148b000-7f821148c000 ---p 00000000 00:00 0 
7f821148c000-7f821152d000 rw-p 00000000 00:00 0 
7f821152d000-7f821152e000 ---p 00000000 00:00 0 
7f821152e000-7f82115cf000 rw-p 00000000 00:00 0 
7f82115cf000-7f82115d0000 ---p 00000000 00:00 0 
7f82115d0000-7f8211671000 rw-p 00000000 00:00 0 
7f8211671000-7f8211672000 ---p 00000000 00:00 0 
7f8211672000-7f8211713000 rw-p 00000000 00:00 0 
7f8211713000-7f8211714000 ---p 00000000 00:00 0 
7f8211714000-7f82117b5000 rw-p 00000000 00:00 0 
7f82117b5000-7f82117b6000 ---p 00000000 00:00 0 
7f82117b6000-7f8211857000 rw-p 00000000 00:00 0 
7f8211857000-7f8211858000 ---p 00000000 00:00 0 
7f8211858000-7f82118f9000 rw-p 00000000 00:00 0 
7f82118f9000-7f82118fa000 ---p 00000000 00:00 0 
7f82118fa000-7f821199b000 rw-p 00000000 00:00 0 
7f821199b000-7f821199c000 ---p 00000000 00:00 0 
7f821199c000-7f8211a3d000 rw-p 00000000 00:00 0 
7f8211a3d000-7f8211a3e000 ---p 00000000 00:00 0 
7f8211a3e000-7f8211adf000 rw-p 00000000 00:00 0 
7f8211adf000-7f8211ae0000 ---p 00000000 00:00 0 
7f8211ae0000-7f8211b81000 rw-p 00000000 00:00 0 
7f8211b81000-7f8211b82000 ---p 00000000 00:00 0 
7f8211b82000-7f8211c23000 rw-p 00000000 00:00 0 
7f8211c23000-7f8211c24000 ---p 00000000 00:00 0 
7f8211c24000-7f8211cc5000 rw-p 00000000 00:00 0 
7f8211cc5000-7f8211cc6000 ---p 00000000 00:00 0 
7f8211cc6000-7f8211d67000 rw-p 00000000 00:00 0 
7f8211d67000-7f8211d68000 ---p 00000000 00:00 0 
7f8211d68000-7f8211e09000 rw-p 00000000 00:00 0 
7f8211e09000-7f8211e0a000 ---p 00000000 00:00 0 
7f8211e0a000-7f8211eab000 rw-p 00000000 00:00 0 
7f8211eab000-7f8211eac000 ---p 00000000 00:00 0 
7f8211eac000-7f8211f4d000 rw-p 00000000 00:00 0 
7f8211f4d000-7f8211f4e000 ---p 00000000 00:00 0 
7f8211f4e000-7f8211fef000 rw-p 00000000 00:00 0 
7f8211fef000-7f8211ff0000 ---p 00000000 00:00 0 
7f8211ff0000-7f8212091000 rw-p 00000000 00:00 0 
7f8212091000-7f8212092000 ---p 00000000 00:00 0 
7f8212092000-7f8212133000 rw-p 00000000 00:00 0 
7f8212133000-7f8212134000 ---p 00000000 00:00 0 
7f8212134000-7f82121d5000 rw-p 00000000 00:00 0 
7f82121d5000-7f82121d6000 ---p 00000000 00:00 0 
7f82121d6000-7f8212277000 rw-p 00000000 00:00 0 
7f8212277000-7f8212278000 ---p 00000000 00:00 0 
7f8212278000-7f8212319000 rw-p 00000000 00:00 0 
7f8212319000-7f821231a000 ---p 00000000 00:00 0 
7f821231a000-7f82123bb000 rw-p 00000000 00:00 0 
7f82123bb000-7f82123bc000 ---p 00000000 00:00 0 
7f82123bc000-7f821245d000 rw-p 00000000 00:00 0 
7f821245d000-7f821245e000 ---p 00000000 00:00 0 
7f821245e000-7f82124ff000 rw-p 00000000 00:00 0 
7f82124ff000-7f8212500000 ---p 00000000 00:00 0 
7f8212500000-7f82125a1000 rw-p 00000000 00:00 0 
7f82125a1000-7f82125a2000 ---p 00000000 00:00 0 
7f82125a2000-7f82147ae000 rw-p 00000000 00:00 0 
7f82147ae000-7f8221cde000 r--p 00000000 fd:00 13373206                   /usr/lib/locale/locale-archive
7f8221cde000-7f8221ce1000 rw-p 00000000 00:00 0 
7f8221ce1000-7f8221d0d000 r--p 00000000 fd:00 13374981                   /usr/lib64/libc.so.6
7f8221d0d000-7f8221e83000 r-xp 0002c000 fd:00 13374981                   /usr/lib64/libc.so.6
7f8221e83000-7f8221ed7000 r--p 001a2000 fd:00 13374981                   /usr/lib64/libc.so.6
7f8221ed7000-7f8221ed8000 ---p 001f6000 fd:00 13374981                   /usr/lib64/libc.so.6
7f8221ed8000-7f8221edb000 r--p 001f6000 fd:00 13374981                   /usr/lib64/libc.so.6
7f8221edb000-7f8221ede000 rw-p 001f9000 fd:00 13374981                   /usr/lib64/libc.so.6
7f8221ede000-7f8221eeb000 rw-p 00000000 00:00 0 
7f8221eeb000-7f8221efa000 r--p 00000000 fd:00 13374986                   /usr/lib64/libm.so.6
7f8221efa000-7f8221f6b000 r-xp 0000f000 fd:00 13374986                   /usr/lib64/libm.so.6
7f8221f6b000-7f8221fc5000 r--p 00080000 fd:00 13374986                   /usr/lib64/libm.so.6
7f8221fc5000-7f8221fc6000 r--p 000d9000 fd:00 13374986                   /usr/lib64/libm.so.6
7f8221fc6000-7f8221fc7000 rw-p 000da000 fd:00 13374986                   /usr/lib64/libm.so.6
7f8221fc7000-7f8221fc9000 rw-p 00000000 00:00 0 
7f8221fc9000-7f8221fcb000 r--p 00000000 fd:00 13387642                   /usr/lib64/libcrypt.so.2.0.0
7f8221fcb000-7f8221fdf000 r-xp 00002000 fd:00 13387642                   /usr/lib64/libcrypt.so.2.0.0
7f8221fdf000-7f8221ff8000 r--p 00016000 fd:00 13387642                   /usr/lib64/libcrypt.so.2.0.0
7f8221ff8000-7f8221ff9000 ---p 0002f000 fd:00 13387642                   /usr/lib64/libcrypt.so.2.0.0
7f8221ff9000-7f8221ffa000 r--p 0002f000 fd:00 13387642                   /usr/lib64/libcrypt.so.2.0.0
7f8221ffa000-7f8222003000 rw-p 00000000 00:00 0 
7f8222003000-7f8222004000 r--p 00000000 fd:00 13374985                   /usr/lib64/libdl.so.2
7f8222004000-7f8222005000 r-xp 00001000 fd:00 13374985                   /usr/lib64/libdl.so.2
7f8222005000-7f8222006000 r--p 00002000 fd:00 13374985                   /usr/lib64/libdl.so.2
7f8222006000-7f8222007000 r--p 00002000 fd:00 13374985                   /usr/lib64/libdl.so.2
7f8222007000-7f8222008000 rw-p 00000000 00:00 0 
7f8222008000-7f8222009000 r--p 00000000 fd:00 13375002                   /usr/lib64/librt.so.1
7f8222009000-7f822200a000 r-xp 00001000 fd:00 13375002                   /usr/lib64/librt.so.1
7f822200a000-7f822200b000 r--p 00002000 fd:00 13375002                   /usr/lib64/librt.so.1
7f822200b000-7f822200c000 r--p 00002000 fd:00 13375002                   /usr/lib64/librt.so.1
7f822200c000-7f822200d000 rw-p 00000000 00:00 0 
7f822200d000-7f822200e000 r--p 00000000 fd:00 13374995                   /usr/lib64/libpthread.so.0
7f822200e000-7f822200f000 r-xp 00001000 fd:00 13374995                   /usr/lib64/libpthread.so.0
7f822200f000-7f8222010000 r--p 00002000 fd:00 13374995                   /usr/lib64/libpthread.so.0
7f8222010000-7f8222011000 r--p 00002000 fd:00 13374995                   /usr/lib64/libpthread.so.0
7f8222011000-7f8222012000 rw-p 00000000 00:00 0 
7f8222012000-7f8222015000 r--p 00000000 fd:00 13387452                   /usr/lib64/libz.so.1.2.11
7f8222015000-7f8222023000 r-xp 00003000 fd:00 13387452                   /usr/lib64/libz.so.1.2.11
7f8222023000-7f8222029000 r--p 00011000 fd:00 13387452                   /usr/lib64/libz.so.1.2.11
7f8222029000-7f822202a000 ---p 00017000 fd:00 13387452                   /usr/lib64/libz.so.1.2.11
7f822202a000-7f822202b000 r--p 00017000 fd:00 13387452                   /usr/lib64/libz.so.1.2.11
7f822202b000-7f822202c000 rw-p 00000000 00:00 0 
7f8222031000-7f8222032000 r--p 00000000 fd:00 30517247                   /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/x86_64-linux/monitor.so
7f8222032000-7f8222033000 r-xp 00001000 fd:00 30517247                   /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/x86_64-linux/monitor.so
7f8222033000-7f8222034000 r--p 00002000 fd:00 30517247                   /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/x86_64-linux/monitor.so
7f8222034000-7f8222035000 r--p 00002000 fd:00 30517247                   /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/x86_64-linux/monitor.so
7f8222035000-7f8222036000 rw-p 00003000 fd:00 30517247                   /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/x86_64-linux/monitor.so
7f8222036000-7f8222037000 r--p 00000000 fd:00 30517319                   /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/x86_64-linux/enc/trans/transdb.so
7f8222037000-7f8222039000 r-xp 00001000 fd:00 30517319                   /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/x86_64-linux/enc/trans/transdb.so
7f8222039000-7f822203a000 r--p 00003000 fd:00 30517319                   /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/x86_64-linux/enc/trans/transdb.so
7f822203a000-7f822203b000 r--p 00003000 fd:00 30517319                   /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/x86_64-linux/enc/trans/transdb.so
7f822203b000-7f822203c000 rw-p 00004000 fd:00 30517319                   /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/x86_64-linux/enc/trans/transdb.so
7f822203c000-7f822203d000 r--p 00000000 fd:00 30517298                   /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/x86_64-linux/enc/encdb.so
7f822203d000-7f822203e000 r-xp 00001000 fd:00 30517298                   /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/x86_64-linux/enc/encdb.so
7f822203e000-7f822203f000 r--p 00002000 fd:00 30517298                   /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/x86_64-linux/enc/encdb.so
7f822203f000-7f8222040000 r--p 00002000 fd:00 30517298                   /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/x86_64-linux/enc/encdb.so
7f8222040000-7f8222041000 rw-p 00003000 fd:00 30517298                   /home/eregon/.rubies/ruby-3.0.3/lib/ruby/3.0.0/x86_64-linux/enc/encdb.so
7f8222041000-7f8222072000 r--p 00000000 fd:00 29377039                   /home/eregon/.rubies/ruby-3.0.3/lib/libruby.so.3.0.3
7f8222072000-7f8222312000 r-xp 00031000 fd:00 29377039                   /home/eregon/.rubies/ruby-3.0.3/lib/libruby.so.3.0.3
7f8222312000-7f822241b000 r--p 002d1000 fd:00 29377039                   /home/eregon/.rubies/ruby-3.0.3/lib/libruby.so.3.0.3
7f822241b000-7f8222422000 r--p 003d9000 fd:00 29377039                   /home/eregon/.rubies/ruby-3.0.3/lib/libruby.so.3.0.3
7f8222422000-7f8222426000 rw-p 003e0000 fd:00 29377039                   /home/eregon/.rubies/ruby-3.0.3/lib/libruby.so.3.0.3
7f8222426000-7f8222438000 rw-p 00000000 00:00 0 
7f8222438000-7f822243a000 r--p 00000000 fd:00 13374977                   /usr/lib64/ld-linux-x86-64.so.2
7f822243a000-7f8222460000 r-xp 00002000 fd:00 13374977                   /usr/lib64/ld-linux-x86-64.so.2
7f8222460000-7f822246b000 r--p 00028000 fd:00 13374977                   /usr/lib64/ld-linux-x86-64.so.2
7f822246c000-7f822246e000 r--p 00033000 fd:00 13374977                   /usr/lib64/ld-linux-x86-64.so.2
7f822246e000-7f8222470000 rw-p 00035000 fd:00 13374977                   /usr/lib64/ld-linux-x86-64.so.2
7fffc80ca000-7fffc88c9000 rw-p 00000000 00:00 0                          [stack]
7fffc8983000-7fffc8987000 r--p 00000000 00:00 0                          [vvar]
7fffc8987000-7fffc8989000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 --xp 00000000 00:00 0                  [vsyscall]


zsh: IOT instruction (core dumped)  ruby repro.rb

Related issues 2 (0 open2 closed)

Related to Ruby master - Bug #18474: 938e027c seems to have caused a regression in yield handling with concurrent-rubyClosedActions
Is duplicate of Ruby master - Bug #18475: Yielding an element for Enumerator in another thread dumps coreClosedActions
Actions #1

Updated by Eregon (Benoit Daloze) 3 months ago

  • Related to Bug #18474: 938e027c seems to have caused a regression in yield handling with concurrent-ruby added
Actions #2

Updated by Eregon (Benoit Daloze) 3 months ago

  • Related to Bug #18475: Yielding an element for Enumerator in another thread dumps core added

Updated by Eregon (Benoit Daloze) 3 months ago

  • Status changed from Open to Closed

Ah this seems a clear duplicate of #18475, sorry.

Actions #4

Updated by Eregon (Benoit Daloze) 3 months ago

  • Is duplicate of Bug #18475: Yielding an element for Enumerator in another thread dumps core added
Actions #5

Updated by Eregon (Benoit Daloze) 3 months ago

  • Related to deleted (Bug #18475: Yielding an element for Enumerator in another thread dumps core)
Actions

Also available in: Atom PDF