Chavdar Ivanov <ci4ic4%gmail.com@localhost> writes:
I am having the same cmake hangs as in this thread. I've attached the
gdb 'thread apply all bt' output (collected with script).
That looks suspiciouly similar to the hangs I'm seeing with dhcpd on
amd64-current (note the mutex lock attempt, while nothing else looks
very interesting):
(gdb) thread apply all bt
Thread 7 (process 12269):
#0 0x00007e573a2a892a in ___lwp_park60 () from /usr/lib/libc.so.12
#1 0x00007e573e80a9a9 in pthread_cond_timedwait (cond=0x7e573fd67d08, mutex=0x7e573fd67cd8, abstime=0x0) at /usr/src/lib/libpthread/pthread_cond.c:167
#2 0x00007e573f01ed2e in isc_app_ctxrun (ctx=0x7e573fd67c80) at /usr/src/external/mpl/bind/lib/libisc/../../dist/lib/isc/app.c:340
#3 0x000000005664e624 in dispatch () at /usr/src/external/mpl/dhcp/lib/common/../../dist/common/dispatch.c:121
#4 0x000000005668aae7 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/external/mpl/dhcp/bin/server/../../dist/server/dhcpd.c:1114
Thread 6 (process 21463):
#0 0x00007e573a2a892a in ___lwp_park60 () from /usr/lib/libc.so.12
#1 0x00007e573e80a9a9 in pthread_cond_timedwait (cond=0x7e5740037850, mutex=0x7e5740037800, abstime=0x0) at /usr/src/lib/libpthread/pthread_cond.c:167
#2 0x00007e573f02a0a4 in dispatch (threadid=<optimized out>, manager=0x7e5740036800) at /usr/src/external/mpl/bind/lib/libisc/../../dist/lib/isc/task.c:1059
#3 run (queuep=<optimized out>) at /usr/src/external/mpl/bind/lib/libisc/../../dist/lib/isc/task.c:1346
#4 0x00007e573e80bee0 in pthread__create_tramp (cookie=0x7e574002e000) at /usr/src/lib/libpthread/pthread.c:560
#5 0x00007e573a2924e0 in ?? () from /usr/lib/libc.so.12
#6 0x0000000000400000 in ?? ()
#7 0x00007e5739800000 in ?? ()
#8 0x0000001003a0efff in ?? ()
#9 0x00007e57396000c0 in ?? ()
#10 0x00000000001fff40 in ?? ()
#11 0x0000000000000000 in ?? ()
Thread 5 (process 19116):
#0 0x00007e573a244d8a in _sys___kevent50 () from /usr/lib/libc.so.12
#1 0x00007e573e8079d8 in __kevent50 (fd=<optimized out>, ev=ev@entry=0x0, nev=nev@entry=0, rev=rev@entry=0x7e5740008000, nrev=nrev@entry=64, ts=ts@entry=0x0) at /usr/src/lib/libpthread/pthread_cancelstub.c:176
#2 0x00007e573f0223c4 in netthread (uap=0x7e5740039800) at /usr/src/external/mpl/bind/lib/libisc/../../dist/lib/isc/unix/socket.c:3519
#3 0x00007e573e80bee0 in pthread__create_tramp (cookie=0x7e574002fc00) at /usr/src/lib/libpthread/pthread.c:560
#4 0x00007e573a2924e0 in ?? () from /usr/lib/libc.so.12
#5 0x0000000000600000 in ?? ()
#6 0x00007e5739400000 in ?? ()
#7 0x0000002003a0efff in ?? ()
#8 0x00007e5737a000c0 in ?? ()
#9 0x00000000003fff40 in ?? ()
Backtrace stopped: Cannot access memory at address 0x7e5737800028
Thread 4 (process 25506):
#0 0x00007e573a2a892a in ___lwp_park60 () from /usr/lib/libc.so.12
#1 0x00007e573e80a9a9 in pthread_cond_timedwait (cond=0x7e574003a868, mutex=0x7e574003a810, abstime=0x0) at /usr/src/lib/libpthread/pthread_cond.c:167
#2 0x00007e573f028631 in run (uap=0x7e574003a800) at /usr/src/external/mpl/bind/lib/libisc/../../dist/lib/isc/timer.c:650
#3 0x00007e573e80bee0 in pthread__create_tramp (cookie=0x7e5740031800) at /usr/src/lib/libpthread/pthread.c:560
#4 0x00007e573a2924e0 in ?? () from /usr/lib/libc.so.12
Backtrace stopped: Cannot access memory at address 0x7e57367f0000
Thread 3 (process 26000):
#0 0x00007e573a2a892a in ___lwp_park60 () from /usr/lib/libc.so.12
#1 0x00007e573e80a9a9 in pthread_cond_timedwait (cond=0x7e573fd69cd0, mutex=0x7e573fd69c80, abstime=0x0) at /usr/src/lib/libpthread/pthread_cond.c:167
#2 0x00007e573f02a0a4 in dispatch (threadid=<optimized out>, manager=0x7e573fd68c80) at /usr/src/external/mpl/bind/lib/libisc/../../dist/lib/isc/task.c:1059
#3 run (queuep=<optimized out>) at /usr/src/external/mpl/bind/lib/libisc/../../dist/lib/isc/task.c:1346
#4 0x00007e573e80bee0 in pthread__create_tramp (cookie=0x7e5740033400) at /usr/src/lib/libpthread/pthread.c:560
#5 0x00007e573a2924e0 in ?? () from /usr/lib/libc.so.12
Backtrace stopped: Cannot access memory at address 0x7e57357e0000
Thread 2 (process 24520):
#0 0x00007e573a2a892a in ___lwp_park60 () from /usr/lib/libc.so.12
#1 0x00007e573e809791 in pthread__mutex_lock_slow (ptm=ptm@entry=0x7e573fd71158, ts=ts@entry=0x0) at /usr/src/lib/libpthread/pthread_mutex.c:363
#2 0x00007e573e809a44 in pthread_mutex_lock (ptm=0x7e573fd71158) at /usr/src/lib/libpthread/pthread_mutex.c:215
#3 pthread_mutex_lock (ptm=ptm@entry=0x7e573fd71158) at /usr/src/lib/libpthread/pthread_mutex.c:196
#4 0x00007e573f0224a8 in process_fd (writeable=false, readable=true, fd=<optimized out>, thread=0x7e573fd6bc80) at /usr/src/external/mpl/bind/lib/libisc/../../dist/lib/isc/unix/socket.c:3259
#5 process_fds (nevents=<optimized out>, events=<optimized out>, thread=0x7e573fd6bc80) at /usr/src/external/mpl/bind/lib/libisc/../../dist/lib/isc/unix/socket.c:3332
#6 netthread (uap=0x7e573fd6bc80) at /usr/src/external/mpl/bind/lib/libisc/../../dist/lib/isc/unix/socket.c:3621
#7 0x00007e573e80bee0 in pthread__create_tramp (cookie=0x7e5740027000) at /usr/src/lib/libpthread/pthread.c:560
#8 0x00007e573a2924e0 in ?? () from /usr/lib/libc.so.12
#9 0x0000000000200000 in ?? ()
#10 0x0000000000000000 in ?? ()
Thread 1 (process 9876):
#0 0x00007e573a2a892a in ___lwp_park60 () from /usr/lib/libc.so.12
#1 0x00007e573e80a9a9 in pthread_cond_timedwait (cond=0x7e573fd6cce8, mutex=0x7e573fd6cc90, abstime=0x0) at /usr/src/lib/libpthread/pthread_cond.c:167
#2 0x00007e573f028631 in run (uap=0x7e573fd6cc80) at /usr/src/external/mpl/bind/lib/libisc/../../dist/lib/isc/timer.c:650
#3 0x00007e573e80bee0 in pthread__create_tramp (cookie=0x7e5740028c00) at /usr/src/lib/libpthread/pthread.c:560
#4 0x00007e573a2924e0 in ?? () from /usr/lib/libc.so.12
Backtrace stopped: Cannot access memory at address 0x7e57331f0000
-tih
--
Most people who graduate with CS degrees don't understand the significance
of Lisp. Lisp is the most important idea in computer science. --Alan Kay