From: mame@... Date: 2020-12-04T18:03:08+00:00 Subject: [ruby-core:101245] [Ruby master Bug#17362] Thread core dump Issue #17362 has been updated by mame (Yusuke Endoh). > Using v2.6.6 the code works without issues. Thanks. It is also the same as #17289. Can you provide us the core file? I cannot promise anything, but we may investigate the issue. ---------------------------------------- Bug #17362: Thread core dump https://bugs.ruby-lang.org/issues/17362#change-88926 * Author: npic1 (Nat Pic1) * Status: Feedback * Priority: Normal * ruby -v: ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-freebsd12.1] * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN ---------------------------------------- Hi, I moved from 2.4.10 to 2.7.2, and now I get one thread killed. I am unable to isolate the root cause. This is the backtrace from the core dump. ``` Program terminated with signal SIGABRT, Aborted. #0 0x0000000808eda16a in thr_kill () from /lib/libc.so.7 [Current thread is 1 (LWP 101104)] (gdb) info thre 1 Id Target Id Frame * 1 LWP 101104 "XXXX::RRDNetworkT" 0x0000000808eda16a in thr_kill () from /lib/libc.so.7 (gdb) bt #0 0x0000000808eda16a in thr_kill () from /lib/libc.so.7 #1 0x0000000808ed8594 in raise () from /lib/libc.so.7 #2 0x0000000808e4c799 in abort () from /lib/libc.so.7 #3 0x0000000000812459 in die () at error.c:632 #4 0x0000000000812660 in rb_bug_for_fatal_signal (default_sighandler=0x0, sig=11, ctx=0x8033bea00, fmt=0x250ef2 "uction at %p") at error.c:664 #5 0x000000000092fef6 in sigsegv (sig=11, info=0x8033bed70, ctx=0x8033bea00) at signal.c:945 #6 0x00000008059fc3ce in ?? () from /lib/libthr.so.3 #7 0x00000008059fb98f in ?? () from /lib/libthr.so.3 #8 #9 0x00000000009adfa5 in vm_call0_body (ec=0x802030650, calling=0x7fffdecf43b8, cd=0xa02b38 , argv=0x7fffdecf4410) at ./vm_eval.c:117 #10 0x00000000009abf87 in rb_funcallv_with_cc (cd=0xa02b38 , recv=8, mid=140, argc=1, argv=0x7fffdecf4410) at ./vm_eval.c:1012 #11 0x00000000008a517a in num_funcall_op_1 (y=0, arg=21, recursive=0) at numeric.c:364 #12 0x0000000000970dbd in exec_recursive (func=, obj=, pairid=, arg=, outer=) at thread.c:5051 #13 0x000000000089e1e7 in fix_equal (x=21, y=0) at numeric.c:4154 #14 rb_int_equal (x=21, y=0) at numeric.c:4166 #15 0x00000000009ae4e9 in vm_push_frame (ec=0x802030650, iseq=0x0, type=, self=1, specval=, cref_or_me=34860001040, pc=0x0, sp=0x802030650, local_size=0, stack_max=0) at ./vm_insnhelper.c:307 #16 vm_call0_cfunc_with_frame (ec=0x802030650, calling=, argv=, cd=) at ./vm_eval.c:85 #17 vm_call0_cfunc (ec=0x802030650, calling=, argv=, cd=) at ./vm_eval.c:105 #18 vm_call0_body (ec=0x802030650, calling=, cd=, argv=) at ./vm_eval.c:140 #19 0x00000000009abf87 in rb_funcallv_with_cc (cd=0xa03318 , recv=1, mid=140, argc=1, argv=0x7fffdecf46c0) at ./vm_eval.c:1012 #20 0x00000000008a67a5 in rb_obj_not_equal (obj1=0, obj2=21) at object.c:246 #21 0x00000000009bda40 in vm_call_cfunc_with_frame (ec=, reg_cfp=, calling=, cd=, empty_kw_splat=) at ./vm_insnhelper.c:2513 #22 vm_call_cfunc (ec=0x802030650, reg_cfp=0x7fffdedf4bf0, calling=, cd=) at ./vm_insnhelper.c:2539 #23 0x00000000009a4021 in vm_sendish (ec=, reg_cfp=, cd=0xe7073dd80, block_handler=0, method_explorer=) at ./vm_insnhelper.c:4013 #24 vm_exec_core (ec=, initial=) at insns.def:782 #25 0x00000000009b88aa in vm_push_frame (ec=, iseq=, type=2022178817, self=, specval=7, cref_or_me=0, pc=, sp=0x0, local_size=, stack_max=) at ./vm_insnhelper.c:303 #26 vm_exec_handle_exception (ec=, state=, errinfo=, initial=) at vm.c:2129 #27 rb_vm_exec (ec=, mjit_enable_p=) at vm.c:1927 #28 0x00000000009b11ce in VM_EP_LEP (ep=0x0) at vm.c:48 #29 VM_CF_LEP (cfp=) at vm.c:84 #30 VM_CF_BLOCK_HANDLER (cfp=) at vm.c:97 #31 check_block_handler (ec=) at vm.c:1159 #32 vm_yield (argc=, argv=0x15, ec=, kw_splat=) at vm.c:1179 #33 rb_yield_0 (argc=0, argv=0x802030650) at ./vm_eval.c:1227 #34 rb_yield_values2 (argc=0, argv=0x802030650) at ./vm_eval.c:1273 #35 0x000000000084a879 in each_pair_i_fast (key=, value=, _=0) at hash.c:3062 #36 0x000000000084183b in hash_ar_foreach_iter (key=56145041120, value=21, argp=, error=0) at hash.c:1337 #37 ar_foreach_check (hash=34518409680, arg=140736931515144, never=52, func=) at hash.c:962 #38 hash_foreach_call (arg=140736931515144) at hash.c:1485 #39 0x000000000081e3d7 in rb_ensure (b_proc=, data1=, e_proc=, data2=) at eval.c:1129 #40 0x0000000000841785 in rb_hash_foreach (hash=34518409680, func=0x84a850 , farg=0) at hash.c:1509 #41 0x00000000008467ca in rb_hash_each_pair (hash=34518409680) at hash.c:3095 #42 0x00000000009bda40 in vm_call_cfunc_with_frame (ec=, reg_cfp=, calling=, cd=, empty_kw_splat=) at ./vm_insnhelper.c:2513 #43 vm_call_cfunc (ec=0x802030650, reg_cfp=0x7fffdedf4d08, calling=, cd=) at ./vm_insnhelper.c:2539 #44 0x00000000009a4021 in vm_sendish (ec=, reg_cfp=, cd=0xe1abbd140, block_handler=0, method_explorer=) at ./vm_insnhelper.c:4013 #45 vm_exec_core (ec=, initial=) at insns.def:782 #46 0x00000000009b88aa in vm_push_frame (ec=, iseq=, type=2022178817, self=, specval=57638207856, cref_or_me=0, pc=, sp=0x0, local_size=, stack_max=) at ./vm_insnhelper.c:303 #47 vm_exec_handle_exception (ec=, state=, errinfo=, initial=) at vm.c:2129 #48 rb_vm_exec (ec=, mjit_enable_p=) at vm.c:1927 #49 0x0000000000974f11 in thread_do_start (th=0xaa81420c0) at thread.c:693 #50 0x0000000000974896 in thread_start_func_2 (th=, stack_start=) at thread.c:745 #51 0x0000000000974462 in list_node_init (n=0x0) at ./ccan/list/list.h:103 #52 native_thread_init (th=0xaa81420c0) at ./thread_pthread.c:603 #53 thread_start_func_1 (th_ptr=0xaa81420c0) at ./thread_pthread.c:966 #54 0x00000008059f6736 in ?? () from /lib/libthr.so.3 #55 0x0000000000000000 in ?? () Backtrace stopped: Cannot access memory at address 0x7fffdedf5000 (gdb) rb_ps $1 = (rb_vm_t *) 0x81217d000 * # 8:0x9725b0 :in `join' No symbol "RUBY_IMEMO_MASK" in current context. ``` -- https://bugs.ruby-lang.org/ Unsubscribe: