$ ./ruby -v ruby 2.6.0dev (2018-06-15 trunk 63671) [x86_64-linux] $ gdb -q -c /tmp/core.827 ./ruby Reading symbols from ./ruby...done. [New LWP 827] [New LWP 840] [New LWP 841] [New LWP 842] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Core was generated by `ruby'. #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 185 ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: No such file or directory. [Current thread is 1 (Thread 0x7f46c51c8700 (LWP 827))] (gdb) info threads Id Target Id Frame * 1 Thread 0x7f46c51c8700 (LWP 827) pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 2 Thread 0x7f46c51e1700 (LWP 840) 0x00007f46c438c74d in poll () at ../sysdeps/unix/syscall-template.S:84 3 Thread 0x7f46c37aa700 (LWP 841) pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225 4 Thread 0x7f46c35a8700 (LWP 842) pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 (gdb) t 1 [Switching to thread 1 (Thread 0x7f46c51c8700 (LWP 827))] #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 185 in ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S (gdb) bt #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 #1 0x000055bec7068d59 in rb_native_cond_wait (cond=0x55bec8086490, mutex=0x55bec80864f0) at thread_pthread.c:318 #2 0x000055bec7069907 in native_sleep (th=0x55bec8086420, timeout_rel=0x0) at thread_pthread.c:1071 #3 0x000055bec706df9a in thread_join_sleep (arg=140725177158608) at thread.c:932 #4 0x000055bec6f23126 in rb_ensure (b_proc=0x55bec706dee6 , data1=140725177158608, e_proc=0x55bec706de61 , data2=140725177158608) at eval.c:1052 #5 0x000055bec706e0ff in thread_join (target_th=0x55bec8425390, ts=0x0) at thread.c:977 #6 0x000055bec706e2a5 in thread_join_m (argc=0, argv=0x7f46c50c6078, self=94277891699760) at thread.c:1079 #7 0x000055bec70a2ad2 in call_cfunc_m1 (func=0x55bec706e1e3 , recv=94277891699760, argc=0, argv=0x7f46c50c6078) at vm_insnhelper.c:1734 #8 0x000055bec70a35da in vm_call_cfunc_with_frame (ec=0x55bec80868c8, reg_cfp=0x7f46c51c5fa0, calling=0x7ffd22321890, ci=0x55bec83f7de0, cc=0x55bec83f9ff0) at vm_insnhelper.c:1929 #9 0x000055bec70a3724 in vm_call_cfunc (ec=0x55bec80868c8, reg_cfp=0x7f46c51c5fa0, calling=0x7ffd22321890, ci=0x55bec83f7de0, cc=0x55bec83f9ff0) at vm_insnhelper.c:1945 #10 0x000055bec70a49f0 in vm_call_method_each_type (ec=0x55bec80868c8, cfp=0x7f46c51c5fa0, calling=0x7ffd22321890, ci=0x55bec83f7de0, cc=0x55bec83f9ff0) at vm_insnhelper.c:2267 #11 0x000055bec70a50b3 in vm_call_method (ec=0x55bec80868c8, cfp=0x7f46c51c5fa0, calling=0x7ffd22321890, ci=0x55bec83f7de0, cc=0x55bec83f9ff0) at vm_insnhelper.c:2393 #12 0x000055bec70a5289 in vm_call_general (ec=0x55bec80868c8, reg_cfp=0x7f46c51c5fa0, calling=0x7ffd22321890, ci=0x55bec83f7de0, cc=0x55bec83f9ff0) at vm_insnhelper.c:2436 #13 0x000055bec70abc5a in vm_exec_core (ec=0x55bec80868c8, initial=0) at /home/hirura/ruby_debaggable/ruby/insns.def:790 #14 0x000055bec70bb49b in vm_exec (ec=0x55bec80868c8, mjit_enable_p=1) at vm.c:1807 #15 0x000055bec70bc052 in rb_iseq_eval_main (iseq=0x55bec81704f8) at vm.c:2066 #16 0x000055bec6f21813 in ruby_exec_internal (n=0x55bec81704f8) at eval.c:261 #17 0x000055bec6f21939 in ruby_exec_node (n=0x55bec81704f8) at eval.c:325 #18 0x000055bec6f2190c in ruby_run_node (n=0x55bec81704f8) at eval.c:317 #19 0x000055bec6f1e871 in main (argc=2, argv=0x7ffd22321d78) at ./main.c:42 (gdb) t 2 [Switching to thread 2 (Thread 0x7f46c51e1700 (LWP 840))] #0 0x00007f46c438c74d in poll () at ../sysdeps/unix/syscall-template.S:84 84 ../sysdeps/unix/syscall-template.S: No such file or directory. (gdb) bt #0 0x00007f46c438c74d in poll () at ../sysdeps/unix/syscall-template.S:84 #1 0x000055bec7069fb9 in timer_thread_sleep (gvl=0x55bec8085f28) at thread_pthread.c:1389 #2 0x000055bec706a28a in thread_timer (p=0x55bec8085f28) at thread_pthread.c:1508 #3 0x00007f46c4da76ba in start_thread (arg=0x7f46c51e1700) at pthread_create.c:333 #4 0x00007f46c439841d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 (gdb) t 3 [Switching to thread 3 (Thread 0x7f46c37aa700 (LWP 841))] #0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225 225 ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: No such file or directory. (gdb) bt #0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225 #1 0x000055bec7068da1 in native_cond_timedwait (cond=0x55bec8469010, mutex=0x55bec8469070, ts=0x7f46c37a7b30) at thread_pthread.c:336 #2 0x000055bec7069920 in native_sleep (th=0x55bec8468fa0, timeout_rel=0x7f46c37a7b50) at thread_pthread.c:1073 #3 0x000055bec706e787 in sleep_timespec (th=0x55bec8468fa0, ts=..., fl=2) at thread.c:1257 #4 0x000055bec706e870 in rb_thread_wait_for (time=...) at thread.c:1295 #5 0x000055bec6fe4dbb in rb_f_sleep (argc=1, argv=0x7f46c37ab080) at process.c:4457 #6 0x000055bec70a2ad2 in call_cfunc_m1 (func=0x55bec6fe4d59 , recv=94277888533080, argc=1, argv=0x7f46c37ab080) at vm_insnhelper.c:1734 #7 0x000055bec70a35da in vm_call_cfunc_with_frame (ec=0x55bec8463028, reg_cfp=0x7f46c38aaf30, calling=0x7f46c37a8720, ci=0x55bec8201ca0, cc=0x55bec8398d90) at vm_insnhelper.c:1929 #8 0x000055bec70a3724 in vm_call_cfunc (ec=0x55bec8463028, reg_cfp=0x7f46c38aaf30, calling=0x7f46c37a8720, ci=0x55bec8201ca0, cc=0x55bec8398d90) at vm_insnhelper.c:1945 #9 0x000055bec70abc5a in vm_exec_core (ec=0x55bec8463028, initial=0) at /home/hirura/ruby_debaggable/ruby/insns.def:790 #10 0x000055bec70bb49b in vm_exec (ec=0x55bec8463028, mjit_enable_p=1) at vm.c:1807 #11 0x000055bec70b91e1 in invoke_block (ec=0x55bec8463028, iseq=0x55bec80d9e40, self=94277888533080, captured=0x7f46c38aafb8, cref=0x0, type=572653569, opt_pc=0) at vm.c:1004 #12 0x000055bec70b954d in invoke_iseq_block_from_c (ec=0x55bec8463028, captured=0x7f46c38aafb8, self=94277888533080, argc=0, argv=0x0, passed_block_handler=0, cref=0x0, is_lambda=0) at vm.c:1056 #13 0x000055bec70b960b in invoke_block_from_c_bh (ec=0x55bec8463028, block_handler=139941905084345, argc=0, argv=0x0, passed_block_handler=0, cref=0x0, is_lambda=0, force_blockarg=0) at vm.c:1074 #14 0x000055bec70b97b7 in vm_yield (ec=0x55bec8463028, argc=0, argv=0x0) at vm.c:1119 #15 0x000055bec70b5527 in rb_yield_0 (argc=0, argv=0x0) at vm_eval.c:972 #16 0x000055bec70b585b in loop_i () at vm_eval.c:1051 #17 0x000055bec6f22b78 in rb_rescue2 (b_proc=0x55bec70b5848 , data1=0, r_proc=0x55bec70b585d , data2=0) at eval.c:911 #18 0x000055bec70b5929 in rb_f_loop (self=94277888533080) at vm_eval.c:1102 #19 0x000055bec70a2afd in call_cfunc_0 (func=0x55bec70b58b3 , recv=94277888533080, argc=0, argv=0x7f46c37ab048) at vm_insnhelper.c:1740 #20 0x000055bec70a35da in vm_call_cfunc_with_frame (ec=0x55bec8463028, reg_cfp=0x7f46c38aafa0, calling=0x7f46c37a9970, ci=0x55bec8405780, cc=0x55bec80f0330) at vm_insnhelper.c:1929 #21 0x000055bec70a3724 in vm_call_cfunc (ec=0x55bec8463028, reg_cfp=0x7f46c38aafa0, calling=0x7f46c37a9970, ci=0x55bec8405780, cc=0x55bec80f0330) at vm_insnhelper.c:1945 #22 0x000055bec70a49f0 in vm_call_method_each_type (ec=0x55bec8463028, cfp=0x7f46c38aafa0, calling=0x7f46c37a9970, ci=0x55bec8405780, cc=0x55bec80f0330) at vm_insnhelper.c:2267 #23 0x000055bec70a513b in vm_call_method (ec=0x55bec8463028, cfp=0x7f46c38aafa0, calling=0x7f46c37a9970, ci=0x55bec8405780, cc=0x55bec80f0330) at vm_insnhelper.c:2404 #24 0x000055bec70a5289 in vm_call_general (ec=0x55bec8463028, reg_cfp=0x7f46c38aafa0, calling=0x7f46c37a9970, ci=0x55bec8405780, cc=0x55bec80f0330) at vm_insnhelper.c:2436 #25 0x000055bec70ab779 in vm_exec_core (ec=0x55bec8463028, initial=0) at /home/hirura/ruby_debaggable/ruby/insns.def:727 #26 0x000055bec70bb49b in vm_exec (ec=0x55bec8463028, mjit_enable_p=1) at vm.c:1807 #27 0x000055bec70b91e1 in invoke_block (ec=0x55bec8463028, iseq=0x55bec80dba10, self=94277888533080, captured=0x55bec845e2f0, cref=0x0, type=572653569, opt_pc=0) at vm.c:1004 #28 0x000055bec70b954d in invoke_iseq_block_from_c (ec=0x55bec8463028, captured=0x55bec845e2f0, self=94277888533080, argc=0, argv=0x55bec83eb508, passed_block_handler=0, cref=0x0, is_lambda=0) at vm.c:1056 #29 0x000055bec70b98c9 in invoke_block_from_c_proc (ec=0x55bec8463028, proc=0x55bec845e2f0, self=94277888533080, argc=0, argv=0x55bec83eb508, passed_block_handler=0, is_lambda=0) at vm.c:1149 #30 0x000055bec70b9998 in vm_invoke_proc (ec=0x55bec8463028, proc=0x55bec845e2f0, self=94277888533080, argc=0, argv=0x55bec83eb508, passed_block_handler=0) at vm.c:1167 #31 0x000055bec70b9a80 in rb_vm_invoke_proc (ec=0x55bec8463028, proc=0x55bec845e2f0, argc=0, argv=0x55bec83eb508, passed_block_handler=0) at vm.c:1188 #32 0x000055bec706d453 in thread_do_start (th=0x55bec8468fa0, args=94277891699960) at thread.c:645 #33 0x000055bec706d6db in thread_start_func_2 (th=0x55bec8468fa0, stack_start=0x7f46c37a9f00) at thread.c:684 #34 0x000055bec7069416 in thread_start_func_1 (th_ptr=0x55bec8468fa0) at thread_pthread.c:839 #35 0x00007f46c4da76ba in start_thread (arg=0x7f46c37aa700) at pthread_create.c:333 #36 0x00007f46c439841d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 (gdb) t 4 [Switching to thread 4 (Thread 0x7f46c35a8700 (LWP 842))] #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 185 ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: No such file or directory. (gdb) bt #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 #1 0x000055bec7068d59 in rb_native_cond_wait (cond=0x55bec8425400, mutex=0x55bec8425460) at thread_pthread.c:318 #2 0x000055bec7069907 in native_sleep (th=0x55bec8425390, timeout_rel=0x0) at thread_pthread.c:1071 #3 0x000055bec706ae69 in rb_mutex_lock (self=94277891700360) at thread_sync.c:273 #4 0x000055bec70a2afd in call_cfunc_0 (func=0x55bec706acea , recv=94277891700360, argc=0, argv=0x7f46c35a9168) at vm_insnhelper.c:1740 #5 0x000055bec70a35da in vm_call_cfunc_with_frame (ec=0x55bec84679a8, reg_cfp=0x7f46c36a8e18, calling=0x7f46c35a6720, ci=0x55bec8427990, cc=0x55bec831c698) at vm_insnhelper.c:1929 #6 0x000055bec70a3724 in vm_call_cfunc (ec=0x55bec84679a8, reg_cfp=0x7f46c36a8e18, calling=0x7f46c35a6720, ci=0x55bec8427990, cc=0x55bec831c698) at vm_insnhelper.c:1945 #7 0x000055bec70abc5a in vm_exec_core (ec=0x55bec84679a8, initial=0) at /home/hirura/ruby_debaggable/ruby/insns.def:790 #8 0x000055bec70bb49b in vm_exec (ec=0x55bec84679a8, mjit_enable_p=1) at vm.c:1807 #9 0x000055bec70b91e1 in invoke_block (ec=0x55bec84679a8, iseq=0x55bec80c9bf8, self=94277888533080, captured=0x7f46c36a8fb8, cref=0x0, type=572653569, opt_pc=0) at vm.c:1004 #10 0x000055bec70b954d in invoke_iseq_block_from_c (ec=0x55bec84679a8, captured=0x7f46c36a8fb8, self=94277888533080, argc=0, argv=0x0, passed_block_handler=0, cref=0x0, is_lambda=0) at vm.c:1056 #11 0x000055bec70b960b in invoke_block_from_c_bh (ec=0x55bec84679a8, block_handler=139941902979001, argc=0, argv=0x0, passed_block_handler=0, cref=0x0, is_lambda=0, force_blockarg=0) at vm.c:1074 #12 0x000055bec70b97b7 in vm_yield (ec=0x55bec84679a8, argc=0, argv=0x0) at vm.c:1119 #13 0x000055bec70b5527 in rb_yield_0 (argc=0, argv=0x0) at vm_eval.c:972 #14 0x000055bec70b585b in loop_i () at vm_eval.c:1051 #15 0x000055bec6f22b78 in rb_rescue2 (b_proc=0x55bec70b5848 , data1=0, r_proc=0x55bec70b585d , data2=0) at eval.c:911 #16 0x000055bec70b5929 in rb_f_loop (self=94277888533080) at vm_eval.c:1102 #17 0x000055bec70a2afd in call_cfunc_0 (func=0x55bec70b58b3 , recv=94277888533080, argc=0, argv=0x7f46c35a9048) at vm_insnhelper.c:1740 #18 0x000055bec70a35da in vm_call_cfunc_with_frame (ec=0x55bec84679a8, reg_cfp=0x7f46c36a8fa0, calling=0x7f46c35a7970, ci=0x55bec8425d70, cc=0x55bec843f000) at vm_insnhelper.c:1929 #19 0x000055bec70a3724 in vm_call_cfunc (ec=0x55bec84679a8, reg_cfp=0x7f46c36a8fa0, calling=0x7f46c35a7970, ci=0x55bec8425d70, cc=0x55bec843f000) at vm_insnhelper.c:1945 #20 0x000055bec70a49f0 in vm_call_method_each_type (ec=0x55bec84679a8, cfp=0x7f46c36a8fa0, calling=0x7f46c35a7970, ci=0x55bec8425d70, cc=0x55bec843f000) at vm_insnhelper.c:2267 #21 0x000055bec70a513b in vm_call_method (ec=0x55bec84679a8, cfp=0x7f46c36a8fa0, calling=0x7f46c35a7970, ci=0x55bec8425d70, cc=0x55bec843f000) at vm_insnhelper.c:2404 #22 0x000055bec70a5289 in vm_call_general (ec=0x55bec84679a8, reg_cfp=0x7f46c36a8fa0, calling=0x7f46c35a7970, ci=0x55bec8425d70, cc=0x55bec843f000) at vm_insnhelper.c:2436 #23 0x000055bec70ab779 in vm_exec_core (ec=0x55bec84679a8, initial=0) at /home/hirura/ruby_debaggable/ruby/insns.def:727 #24 0x000055bec70bb49b in vm_exec (ec=0x55bec84679a8, mjit_enable_p=1) at vm.c:1807 #25 0x000055bec70b91e1 in invoke_block (ec=0x55bec84679a8, iseq=0x55bec80caa30, self=94277888533080, captured=0x55bec8463780, cref=0x0, type=572653569, opt_pc=0) at vm.c:1004 #26 0x000055bec70b954d in invoke_iseq_block_from_c (ec=0x55bec84679a8, captured=0x55bec8463780, self=94277888533080, argc=0, argv=0x55bec83eb3f0, passed_block_handler=0, cref=0x0, is_lambda=0) at vm.c:1056 #27 0x000055bec70b98c9 in invoke_block_from_c_proc (ec=0x55bec84679a8, proc=0x55bec8463780, self=94277888533080, argc=0, argv=0x55bec83eb3f0, passed_block_handler=0, is_lambda=0) at vm.c:1149 #28 0x000055bec70b9998 in vm_invoke_proc (ec=0x55bec84679a8, proc=0x55bec8463780, self=94277888533080, argc=0, argv=0x55bec83eb3f0, passed_block_handler=0) at vm.c:1167 #29 0x000055bec70b9a80 in rb_vm_invoke_proc (ec=0x55bec84679a8, proc=0x55bec8463780, argc=0, argv=0x55bec83eb3f0, passed_block_handler=0) at vm.c:1188 #30 0x000055bec706d453 in thread_do_start (th=0x55bec8425390, args=94277891699680) at thread.c:645 #31 0x000055bec706d6db in thread_start_func_2 (th=0x55bec8425390, stack_start=0x7f46c35a7f00) at thread.c:684 #32 0x000055bec7069416 in thread_start_func_1 (th_ptr=0x55bec8425390) at thread_pthread.c:839 #33 0x00007f46c4da76ba in start_thread (arg=0x7f46c35a8700) at pthread_create.c:333 #34 0x00007f46c439841d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 (gdb)