[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#673594: ruby1.8: FTBFS[kfreebsd-*]: test-all hangs/segfaults



Package: src:ruby1.8
Version: 1.8.7.352-2
Severity: serious
Tags: sid wheezy
User: debian-bsd@lists.debian.org
Usertags: kfreebsd
X-Debbugs-Cc: kibi@debian.org
X-Debbugs-Cc: debian-bsd@lists.debian.org
Justification: fails to build from source (but built successfully in the
past)

Hi,

On 20/05/12 01:19, Cyril Brulebois wrote:
> https://buildd.debian.org/status/logs.php?arch=kfreebsd-amd64&pkg=ruby1.8&ver=1.8.7.358-2

Seems that this issue *rarely* happens during kfreebsd-i386 builds too
(in the same place, but test_safe_04 isn't necessarily at fault).

https://buildd.debian.org/status/fetch.php?pkg=ruby1.8&arch=kfreebsd-i386&ver=1.8.7.352-2&stamp=1313126333
:
> test_safe_04(TestERBCoreWOStrScan): .
> E: Caught signal 'Terminated': terminating immediately
> make[1]: *** [test-all] Terminated
> make: *** [common-post-build-arch] Terminated
> test_cd(TestFileUtils): Build killed with signal TERM after 150 minutes of inactivity

When I try this myself, I hit segfaults in the testsuite before it even
gets that far. :(


The result of the test-all suite is ignored anyway.  Something was added
for ruby1.9.1, to time out any tests that hang -- maybe we could use it
here too:

http://anonscm.debian.org/gitweb/?p=collab-maint/ruby1.9.1.git;a=commitdiff;h=6c64e43924695aec1f995202a032fb2e0e955eb3

Also #593139 might have something relevant to fixing ruby1.8.

Regards,
-- 
Steven Chamberlain
steven@pyro.eu.org
steven@kfreebsd-i386:~/ruby1.8-1.8.7.358$ gdb ruby1.8 -c ruby1.8.core -s debian/libruby1.8-dbg/usr/lib/debug/usr/bin/ruby1.8
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 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 "i486-kfreebsd-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/steven/ruby1.8-1.8.7.358/ruby1.8...done.
[New process 100385]
[New process 101043]
[New process 101042]
Core was generated by `ruby1.8'.
Program terminated with signal 6, Aborted.
#0  0x282c95f6 in syscall () from /lib/i386-kfreebsd-gnu/i686/cmov/libc.so.0.1
(gdb) thread apply all bt

Thread 3 (process 101042):
#0  0x282c1202 in poll () from /lib/i386-kfreebsd-gnu/i686/cmov/libc.so.0.1
#1  0x281869ee in __pthread_manager () from /lib/i386-kfreebsd-gnu/i686/cmov/libpthread.so.0
#2  0x00000000 in ?? ()

Thread 2 (process 101043):
#0  0x2818c272 in nanosleep () from /lib/i386-kfreebsd-gnu/i686/cmov/libpthread.so.0
#1  0x28187e0f in __pthread_timedsuspend_new_clk () from /lib/i386-kfreebsd-gnu/i686/cmov/libpthread.so.0
#2  0x28185bce in pthread_cond_timedwait@GLIBC_2.3 () from /lib/i386-kfreebsd-gnu/i686/cmov/libpthread.so.0
#3  0x280967b9 in thread_timer (dummy=0xbfbf81f8) at eval.c:12325
#4  0x28186671 in pthread_start_thread () from /lib/i386-kfreebsd-gnu/i686/cmov/libpthread.so.0
#5  0x00000000 in ?? ()

Thread 1 (process 100385):
#0  0x282c95f6 in syscall () from /lib/i386-kfreebsd-gnu/i686/cmov/libc.so.0.1
#1  0x2818937b in pthread_kill () from /lib/i386-kfreebsd-gnu/i686/cmov/libpthread.so.0
#2  0x281893b6 in raise () from /lib/i386-kfreebsd-gnu/i686/cmov/libpthread.so.0
#3  0x2822e624 in raise () from /lib/i386-kfreebsd-gnu/i686/cmov/libc.so.0.1
#4  0x282316c3 in abort () from /lib/i386-kfreebsd-gnu/i686/cmov/libc.so.0.1
#5  0x28091929 in rb_bug (fmt=fmt@entry=0x28132286 "Segmentation fault") at error.c:213
#6  0x28100469 in sigsegv (sig=<optimized out>) at signal.c:634
#7  sigsegv (sig=11) at signal.c:622
#8  0x2818bb47 in __pthread_sighandler () from /lib/i386-kfreebsd-gnu/i686/cmov/libpthread.so.0
#9  <signal handler called>
#10 0x00000000 in ?? ()
#11 0x2c10742c in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Reply to: