Bug #2036
Updated by tuxillo almost 3 years ago
Hi, While trying to update my packages, ruby coredumps with an odd message but clear message: dfbsdx64# ./rpkgmanager.rb 2011-03-24 21:45:19: Reading wanted.db... 2011-03-24 21:45:19: Reading wanted.db... Done 2011-03-24 21:45:19: Gathering info... /home/source/gitorious/rpkgmanager.git/pkgtools.rb:737: [BUG] Bus Error ruby 1.8.7 (2011-02-18 patchlevel 334) [x86_64-dragonfly] So I tried to gdb it: dfbsdx64# gdb ruby18 ruby18.core GNU gdb (GDB) 7.0 Copyright (C) 2009 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 "x86_64-dragonfly". For bug reporting instructions, please see: <http://bugs.dragonflybsd.org/>... "ps" -- when kernel debugging, type out a ps-like listing of active processes. Reading symbols from /usr/pkg/bin/ruby18...done. Reading symbols from /usr/lib/libpthread.so.0...done. Loaded symbols for /usr/lib/libpthread.so.0 Reading symbols from /usr/pkg/lib/libruby18.so.18...done. Loaded symbols for /usr/pkg/lib/libruby18.so.18 Symbols already loaded for /usr/lib/libpthread.so.0 Reading symbols from /usr/lib/librt.so.0...done. Loaded symbols for /usr/lib/librt.so.0 Reading symbols from /usr/lib/libcrypt.so.3...done. Loaded symbols for /usr/lib/libcrypt.so.3 Reading symbols from /usr/lib/libm.so.3...done. Loaded symbols for /usr/lib/libm.so.3 Reading symbols from /usr/lib/libc.so.7...done. Loaded symbols for /usr/lib/libc.so.7 Reading symbols from /usr/pkg/lib/ruby/1.8/x86_64-dragonfly/thread.so...done. Loaded symbols for /usr/pkg/lib/ruby/1.8/x86_64-dragonfly/thread.so Reading symbols from /usr/pkg/lib/ruby/1.8/x86_64-dragonfly/etc.so...done. Loaded symbols for /usr/pkg/lib/ruby/1.8/x86_64-dragonfly/etc.so Reading symbols from /usr/pkg/lib/ruby/1.8/x86_64-dragonfly/fcntl.so...done. Loaded symbols for /usr/pkg/lib/ruby/1.8/x86_64-dragonfly/fcntl.so Reading symbols from /usr/libexec/ld-elf.so.2...done. Loaded symbols for /usr/libexec/ld-elf.so.2 Core was generated by `ruby18'. Program terminated with signal 6, Aborted. #0 0x0000000800ce3048 in kill () at kill.S:2 2 RSYSCALL(kill) (gdb) bt #0 0x0000000800ce3048 in kill () at kill.S:2 #1 0x000000080083acf7 in _raise (sig=6) at /home/source/dfbsd/lib/libthread_xu/thread/thr_syscalls.c:438 #2 0x0000000800d5c4c5 in abort () at /home/source/dfbsd/lib/libc/../libc/stdlib/abort.c:63 #3 0x000000080066a719 in rb_bug (fmt=0x8006fed3c "Bus Error") at error.c:213 #4 0x00000008006d06e4 in sigbus (sig=10) at signal.c:615 #5 <signal handler called> Segmentation fault (core dumped) And gdb also segfaults! What's also odd is the number of frames in the gdb segfault. I reached frame 2101, so I stopped it. (...) #2101 0x0000000000476c6d in frame_register_unwind (frame=0x90, regnum=1, optimizedp=0xfffffffe, (...) I've uploaded the files (ruby18, ruby18.core, gdb, gdb.core) to leaf: http://leaf.dragonflybsd.org/~tuxillo/archive/temp/error_bundle.tgz Cheers, Antonio Huete