Current-Users archive

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

Re: cmake hanging



Still happens to me with a -current kernel and -9 chroot. Captured today:

http://www.invisible.ca/tmp/cmake.txt



On Sun, 20 Sep 2020, Chavdar Ivanov wrote:

I am not seeing other people report these lately, but I still continue
to get these hangings, e.g. when running git as part of a zsh prompt
function; roughly every  fourth command ends up with one of these,
again as before, it is enough to attach with gdb to the got process
and quit in order for it to complete. Here is another trace, -current
is 9.99.73 from yesterday:

[Switching to LWP 26563 of process 23529]
0x00007a81318a86ea in ___lwp_park60 () from /usr/lib/libc.so.12
(gdb) thread apply all bt

Thread 2 (LWP 23529 of process 23529):
#0  0x00007a813184554a in _lwp_wait () from /usr/lib/libc.so.12
#1  0x00007a813200c7a2 in pthread_join () from /usr/lib/libpthread.so.1
#2  0x000000000054ba92 in preload_index ()
#3  0x000000000055a3e8 in refresh_index ()
#4  0x0000000000425510 in cmd_status ()
#5  0x00000000004053fe in handle_builtin ()
#6  0x0000000000406301 in cmd_main ()
#7  0x00000000005ed143 in main ()

Thread 1 (LWP 26563 of process 23529):
#0  0x00007a81318a86ea in ___lwp_park60 () from /usr/lib/libc.so.12
#1  0x00007a813200975e in ?? () from /usr/lib/libpthread.so.1
#2  0x00007a81318d6646 in je_malloc_mutex_lock_slow () from /usr/lib/libc.so.12
#3  0x00007a813190dd76 in je_arena_choose_hard () from /usr/lib/libc.so.12
#4  0x00007a81318b436d in je_tsd_tcache_data_init () from /usr/lib/libc.so.12
#5  0x00007a81318b45ae in je_tsd_tcache_enabled_data_init () from
/usr/lib/libc.so.12
#6  0x00007a81318b1729 in je_tsd_fetch_slow () from /usr/lib/libc.so.12
#7  0x00007a813190e0bc in malloc () from /usr/lib/libc.so.12
#8  0x00000000005ce9fb in xrealloc ()
#9  0x00000000005a2e20 in strbuf_grow ()
#10 0x00000000005ad07b in lstat_cache_matchlen ()
#11 0x00000000005ad1b5 in threaded_has_symlink_leading_path ()
#12 0x000000000054b808 in preload_thread ()
#13 0x00007a813200bf4e in ?? () from /usr/lib/libpthread.so.1
#14 0x00007a8131892480 in ?? () from /usr/lib/libc.so.12
#15 0x0000000000000000 in ?? ()

On Tue, 1 Sep 2020 at 10:39, Chavdar Ivanov <ci4ic4%gmail.com@localhost> wrote:

Another one, overnight, while building gimp, by gegl, attached.

As I mentioned earlier, it is enough to attach to the process with gdb
and then quit in order for the process to carry on working and
complete the build.

On Tue, 1 Sep 2020 at 08:55, Tom Ivar Helbekkmo <tih%hamartun.priv.no@localhost> wrote:

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



--
----



--
----




Home | Main Index | Thread Index | Old Index