pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: ruby segfaults
In message <kdIo_gwVwx21HyIuZ98qmg4JGbukmg4587HtaLK6OhFOJrd43g5uXOn2kFdLirBrxX7JFzeKI84JAeYkFscQRC11qj-BiJMwfi3mz3mzBXU=@proton.me>
on Thu, 26 Feb 2026 14:15:34 +0000,
ci4ic4 <ci4ic4%proton.me@localhost> wrote:
> FWIW I am getting the same panics using version 3.3:
The same in 11.99.5 on evbarm-aarch64 (in VMware Fusion MacBook Air M2).
NetBSD 11.99.5 (GENERIC64) #0: Thu Feb 5 11:15:10 JST 2026 taca%m2evbarm.a.back-street.net@localhost:/data/11.99.5/evbarm/evbarm/sys/arch/evbarm/compile/GENERIC64
...
/usr/pkg/lib/ruby/3.3.0/aarch64-netbsd/rbconfig.rb:301: [BUG] Segmentation fault at 0x0000ffffffb59000
ruby 3.3.10 (2025-10-23 revision 343ea05002) [aarch64-netbsd]
-- Control frame information -----------------------------------------------
c:0011 p:---- s:0050 e:000049 CFUNC :gsub
c:0010 p:0011 s:0045 e:000044 METHOD /usr/pkg/lib/ruby/3.3.0/aarch64-netbsd/rbconfig.rb:301
c:0009 p:0006 s:0038 e:000037 BLOCK /usr/pkg/lib/ruby/3.3.0/aarch64-netbsd/rbconfig.rb:319 [FINISH]
c:0008 p:---- s:0034 e:000033 CFUNC :each_value
c:0007 p:2045 s:0030 e:000029 CLASS /usr/pkg/lib/ruby/3.3.0/aarch64-netbsd/rbconfig.rb:318
c:0006 p:0007 s:0027 e:000026 TOP /usr/pkg/lib/ruby/3.3.0/aarch64-netbsd/rbconfig.rb:11 [FINISH]
c:0005 p:---- s:0024 e:000023 CFUNC :require
c:0004 p:0005 s:0019 e:000018 TOP /usr/pkg/lib/ruby/3.3.0/rubygems.rb:9 [FINISH]
c:0003 p:---- s:0012 e:000011 CFUNC :require
c:0002 p:0012 s:0007 e:000006 TOP <internal:gem_prelude>:2 [FINISH]
c:0001 p:0000 s:0003 E:001540 DUMMY [FINISH]
-- Ruby level backtrace information ----------------------------------------
<internal:gem_prelude>:2:in `<internal:gem_prelude>'
<internal:gem_prelude>:2:in `require'
/usr/pkg/lib/ruby/3.3.0/rubygems.rb:9:in `<top (required)>'
/usr/pkg/lib/ruby/3.3.0/rubygems.rb:9:in `require'
/usr/pkg/lib/ruby/3.3.0/aarch64-netbsd/rbconfig.rb:11:in `<top (required)>'
/usr/pkg/lib/ruby/3.3.0/aarch64-netbsd/rbconfig.rb:318:in `<module:RbConfig>'
/usr/pkg/lib/ruby/3.3.0/aarch64-netbsd/rbconfig.rb:318:in `each_value'
/usr/pkg/lib/ruby/3.3.0/aarch64-netbsd/rbconfig.rb:319:in `block in <module:RbConfig>'
/usr/pkg/lib/ruby/3.3.0/aarch64-netbsd/rbconfig.rb:301:in `expand'
/usr/pkg/lib/ruby/3.3.0/aarch64-netbsd/rbconfig.rb:301:in `gsub'
-- Threading information ---------------------------------------------------
Total ractor count: 1
Ruby thread count for this ractor: 1
# gdb /usr/pkg/bin/ruby33 ruby33.core
GNU gdb (GDB) 16.3
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "aarch64--netbsd".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/pkg/bin/ruby33...
(No debugging symbols found in /usr/pkg/bin/ruby33)
[New process 11509]
[New process 9796]
Core was generated by `ruby33'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0000f0bab99336bc in _lwp_kill () from /usr/lib/libc.so.12
[Current thread is 1 (process 11509)]
(gdb) where
#0 0x0000f0bab99336bc in _lwp_kill () from /usr/lib/libc.so.12
#1 0x0000f0bab9e18fc8 in rb_bug_for_fatal_signal ()
from /usr/pkg/lib/libruby33.so.33
#2 0x0000f0bab9f2d1ac in sigsegv () from /usr/pkg/lib/libruby33.so.33
#3 <signal handler called>
#4 0x0000f0bab9e395d0 in each_location.constprop ()
from /usr/pkg/lib/libruby33.so.33
#5 0x0000f0bab9e39704 in mark_current_machine_context ()
from /usr/pkg/lib/libruby33.so.33
#6 0x0000f0bab9e39bc4 in gc_mark_roots () from /usr/pkg/lib/libruby33.so.33
#7 0x0000f0bab9e3fd5c in gc_start () from /usr/pkg/lib/libruby33.so.33
#8 0x0000f0bab9e40f6c in newobj_alloc () from /usr/pkg/lib/libruby33.so.33
#9 0x0000f0bab9e424d0 in rb_imemo_new () from /usr/pkg/lib/libruby33.so.33
#10 0x0000f0bab9f95cf8 in lep_svar_set () from /usr/pkg/lib/libruby33.so.33
#11 0x0000f0bab9f025e0 in rb_reg_search_set_match ()
from /usr/pkg/lib/libruby33.so.33
#12 0x0000f0bab9f506ec in str_gsub () from /usr/pkg/lib/libruby33.so.33
#13 0x0000f0bab9f9cf50 in vm_call_cfunc_with_frame_ ()
from /usr/pkg/lib/libruby33.so.33
#14 0x0000f0bab9fabe64 in vm_exec_core () from /usr/pkg/lib/libruby33.so.33
#15 0x0000f0bab9fae3e8 in rb_vm_exec () from /usr/pkg/lib/libruby33.so.33
#16 0x0000f0bab9fb2bb8 in rb_yield () from /usr/pkg/lib/libruby33.so.33
#17 0x0000f0bab9e43f34 in each_value_i () from /usr/pkg/lib/libruby33.so.33
#18 0x0000f0bab9e43c50 in hash_foreach_iter ()
from /usr/pkg/lib/libruby33.so.33
#19 0x0000f0bab9f364ec in st_general_foreach ()
from /usr/pkg/lib/libruby33.so.33
#20 0x0000f0bab9e46b28 in hash_foreach_call ()
from /usr/pkg/lib/libruby33.so.33
#21 0x0000f0bab9e21bc8 in rb_ensure () from /usr/pkg/lib/libruby33.so.33
#22 0x0000f0bab9e48e5c in rb_hash_foreach () from /usr/pkg/lib/libruby33.so.33
#23 0x0000f0bab9e49cb0 in rb_hash_each_value ()
from /usr/pkg/lib/libruby33.so.33
#24 0x0000f0bab9f9cf50 in vm_call_cfunc_with_frame_ ()
from /usr/pkg/lib/libruby33.so.33
#25 0x0000f0bab9fabe64 in vm_exec_core () from /usr/pkg/lib/libruby33.so.33
#26 0x0000f0bab9fae3e8 in rb_vm_exec () from /usr/pkg/lib/libruby33.so.33
#27 0x0000f0bab9e783cc in require_internal () from /usr/pkg/lib/libruby33.so.33
#28 0x0000f0bab9e78438 in rb_require_string_internal ()
from /usr/pkg/lib/libruby33.so.33
#29 0x0000f0bab9e78a60 in rb_require_string ()
from /usr/pkg/lib/libruby33.so.33
#30 0x0000f0bab9f9cf50 in vm_call_cfunc_with_frame_ ()
from /usr/pkg/lib/libruby33.so.33
#31 0x0000f0bab9fa8e70 in vm_exec_core () from /usr/pkg/lib/libruby33.so.33
#32 0x0000f0bab9fae3e8 in rb_vm_exec () from /usr/pkg/lib/libruby33.so.33
#33 0x0000f0bab9e783cc in require_internal () from /usr/pkg/lib/libruby33.so.33
#34 0x0000f0bab9e78438 in rb_require_string_internal ()
from /usr/pkg/lib/libruby33.so.33
#35 0x0000f0bab9e78a60 in rb_require_string ()
from /usr/pkg/lib/libruby33.so.33
#36 0x0000f0bab9f9cf50 in vm_call_cfunc_with_frame_ ()
from /usr/pkg/lib/libruby33.so.33
#37 0x0000f0bab9fa8e70 in vm_exec_core () from /usr/pkg/lib/libruby33.so.33
--Type <RET> for more, q to quit, c to continue without paging--
#38 0x0000f0bab9fae3e8 in rb_vm_exec () from /usr/pkg/lib/libruby33.so.33
#39 0x0000f0bab9f283d4 in ruby_opt_init.part ()
from /usr/pkg/lib/libruby33.so.33
#40 0x0000f0bab9f288f0 in load_file_internal ()
from /usr/pkg/lib/libruby33.so.33
#41 0x0000f0bab9e21bc8 in rb_ensure () from /usr/pkg/lib/libruby33.so.33
#42 0x0000f0bab9f29ad0 in process_options () from /usr/pkg/lib/libruby33.so.33
#43 0x0000f0bab9f2a3bc in ruby_process_options ()
from /usr/pkg/lib/libruby33.so.33
#44 0x0000f0bab9e22c94 in ruby_options () from /usr/pkg/lib/libruby33.so.33
#45 0x00000000081b0f4c in main ()
--
Takahiro Kambe <taca%back-street.net@localhost>
Home |
Main Index |
Thread Index |
Old Index