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

Re: Bug#628493: perl: FTBFS on kfreebsd-i386: t/op/threads failed



On Tue, Aug 02, 2011 at 04:31:38PM +0300, Niko Tyni wrote:
> On Sun, May 29, 2011 at 04:01:48PM +0100, Dominic Hargreaves wrote:
> > Source: perl
> > Version: 5.14.0-1
> > Severity: important
> > 
> > perl 5.14 failed to build on kfreebsd-i386:
> > 
> > <https://buildd.debian.org/status/fetch.php?pkg=perl&arch=kfreebsd-i386&ver=5.14.0-1&stamp=1306233511>
> > 
> > t/op/threads...................................................FAILED--expected 24 tests, saw 23
> 
> I'm able to reproduce this on a kvm kfreebsd-i386 virtual machine with
> SMP enabled (but not on a non-SMP kernel, where the package builds fine.)

Also happens with the perl in sid (5.12.4), reduced down to

 perl -Mthreads -e 'threads->create(sub {})->detach; fork'

which crashes non-deterministically about half the time for me.

I don't see this on a "real" FreeBSD system (8.2-RELEASE), nor on Linux.

I'll report it upstream, but it seems possible that the problem is more
on the libc / kernel side. Cc'ing the kfreebsd porter list. Help would
be appreciated.

Program terminated with signal 11, Segmentation fault.
#0  0x28366062 in nanosleep () at ../sysdeps/unix/syscall-template.S:82
82  ../sysdeps/unix/syscall-template.S: No such file or directory.
    in ../sysdeps/unix/syscall-template.S
(gdb) bt
#0  0x28366062 in nanosleep () at ../sysdeps/unix/syscall-template.S:82
#1  0x28364358 in __pthread_acquire (spinlock=<value optimized out>) at spinlock.c:728
#2  0x283644ce in wait_node_free (lock=0x830dc14) at spinlock.c:307
#3  __pthread_alt_unlock (lock=0x830dc14) at spinlock.c:591
#4  0x2836185f in __pthread_mutex_unlock (mutex=0x830dc04) at mutex.c:199
#5  0x08100eff in Perl_atfork_unlock () at util.c:2611
#6  0x28361b86 in __pthread_fork (b=0x284969e0) at ptfork.c:72
#7  0x28402bd1 in __libc_fork () at ../linuxthreads/sysdeps/unix/sysv/linux/fork.c:39
#8  0x28361ab4 in __fork () at ptfork.c:84
#9  0x081e77a0 in Perl_pp_fork (my_perl=0x830dd00) at pp_sys.c:4056
#10 0x080fc6dc in Perl_runops_debug (my_perl=0x830dd00) at dump.c:2049
#11 0x0808eae4 in S_run_body (my_perl=0x830dd00) at perl.c:2308
#12 perl_run (my_perl=0x830dd00) at perl.c:2233
#13 0x08066e97 in main (argc=4, argv=0xbfbfe7b0, env=0xbfbfe7c4) at perlmain.c:117

-- 
Niko Tyni   ntyni@debian.org


Reply to: