NetBSD-Bugs archive

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

port-arm/50087: all threaded programs crash on arm



>Number:         50087
>Category:       port-arm
>Synopsis:       all threaded programs crash on arm
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-arm-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 25 14:10:02 +0000 2015
>Originator:     Martin Husemann
>Release:        NetBSD 7.99.20
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD space-truckin.duskware.de 7.99.20 NetBSD 7.99.20 (CUBIETRUCK) #205: Sat Jul 25 15:38:26 CEST 2015 martin%night-owl.duskware.de@localhost:/usr/src/sys/arch/evbarm/compile/CUBIETRUCK evbarm
Architecture: earmv7hfeb
Machine: evbarm
>Description:

Update an arm machine to -current and then try:

cd /tmp
ls -l / | gzip -9 > test.gz

and watch:

assertion "pthread__tsd_destructors[key] != NULL" failed: file "/usr/src/lib/libpthread/pthread_tsd.c", line 179, function "pthread__add_specific"
[1]   Done                    ls -l / |
      Abort trap (core dumped) gzip -9 >test.gz

and gdb says:

Core was generated by `gzip'.
Program terminated with signal SIGABRT, Aborted.
#0  0x7bec5528 in kill () from /test/usr/lib/libc.so.12
(gdb) bt
#0  0x7bec5528 in kill () from /test/usr/lib/libc.so.12
#1  0x7bd95808 in pthread.assertfunc () from /test/usr/lib/libpthread.so.1
#2  0x7bd9ae68 in pthread.add_specific () from /test/usr/lib/libpthread.so.1
#3  0x7bec387c in ?? () from /test/usr/lib/libc.so.12
#4  0x7be4e100 in ?? () from /test/usr/lib/libc.so.12
#5  0x7be4e16c in malloc () from /test/usr/lib/libc.so.12
#6  0x00013000 in gz_compress (in=in@entry=0, out=out@entry=1, 
    gsizep=gsizep@entry=0x7fffca80, origname=origname@entry=0x15d5c "", 
    mtime=1437832711) at /usr/src/usr.bin/gzip/gzip.c:540
#7  0x000150f8 in handle_stdout () at /usr/src/usr.bin/gzip/gzip.c:1761
#8  0x00015c50 in main (argc=0, argv=<optimized out>)
    at /usr/src/usr.bin/gzip/gzip.c:384
(gdb) up
#2  0x7bd9ae68 in pthread.add_specific () from /test/usr/lib/libpthread.so.1
(gdb) info reg
r0             0x0      0
r1             0x0      0
r2             0x93     147
r3             0xfa76ced        262630637
r4             0x0      0
r5             0x7bff4c00       2080328704
r6             0x7bdaea04       2077944324
r7             0x279e8  162280
r8             0x7bf21884       2079463556
r9             0x0      0
r10            0x2      2
r11            0x7fffc954       2147469652
r12            0x7bec5524       2079085860
sp             0x7fffc938       0x7fffc938
lr             0x7bd9ae68       2077863528
pc             0x7bd9ae68       0x7bd9ae68 <pthread.add_specific+356>
cpsr           0x40020210       1073873424


>How-To-Repeat:
s/a

>Fix:
n/a



Home | Main Index | Thread Index | Old Index