Current-Users archive

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

weird hangs in current (ghc, gnucash)



Hi!

I've just updated my kernel from 10.99.10 to 10.99.10 (~ Oct 11 to Oct
20) to test the rge(4) changes, and started a bulk build, and the
packages using ghc seem to wait for something and make no progress.

In one of my sandboxes there is a hs-data-array-byte build but it's not
doing anything.

The log stops at:

===> Creating toolchain wrappers for hs-data-array-byte-0.1.0.1nb2
===> Configuring for hs-data-array-byte-0.1.0.1nb2
=> Checking for portability problems in extracted files
[1 of 2] Compiling Main             ( Setup.hs, Setup.o )

From ps:

pbulk   26131  0.0  0.1 1073923564  140684 ?      Il    8:23PM 0:00.23 /usr/pkg/lib/ghc-9.4.7/bin/./ghc-9.4.7 -B/usr/pkg/lib/ghc-9.4.7/lib -package-env - --make Setup -dynamic 

(btw, that is a really huge process size?!)

Attaching with gdb shows me:

[Switching to LWP 20090 of process 26131]
0x00007195fa607a1a in ___lwp_park60 () from /usr/lib/libc.so.12
(gdb) bt
#0  0x00007195fa607a1a in ___lwp_park60 () from /usr/lib/libc.so.12
#1  0x00007195fa97dc4d in pthread_cond_timedwait () from /usr/lib/libpthread.so.1
#2  0x00007195faae1472 in waitCondition (pCond=pCond@entry=0x7195fa22f010, pMut=pMut@entry=0x7195fa22f038) at rts/posix/OSThreads.c:143
#3  0x00007195faa903e1 in waitForWorkerCapability (task=<optimized out>) at rts/Capability.c:707
#4  yieldCapability (pCap=pCap@entry=0x7195f77fff10, task=task@entry=0x7195fa22f000, gcAllowed=gcAllowed@entry=true) at rts/Capability.c:1011
#5  0x00007195faab0026 in scheduleYield (task=0x7195fa22f000, pcap=0x7195f77fff08) at rts/Schedule.c:709
#6  schedule (initialCapability=initialCapability@entry=0x7195fab21cc0 <MainCapability>, task=task@entry=0x7195fa22f000) at rts/Schedule.c:319
#7  0x00007195faab20b9 in scheduleWorker (cap=cap@entry=0x7195fab21cc0 <MainCapability>, task=task@entry=0x7195fa22f000) at rts/Schedule.c:2668
#8  0x00007195faab78a2 in workerStart (task=0x7195fa22f000) at rts/Task.c:444
#9  0x00007195fa97f2df in pthread.create_tramp () from /usr/lib/libpthread.so.1
#10 0x00007195fa5f0c60 in ?? () from /usr/lib/libc.so.12
#11 0x0000000000200000 in ?? ()
#12 0x0000000000000000 in ?? ()
(gdb) thread apply all bt

Thread 6 (LWP 26131 of process 26131 ""):
#0  0x00007195fa607a1a in ___lwp_park60 () from /usr/lib/libc.so.12
#1  0x00007195fa97dc4d in pthread_cond_timedwait () from /usr/lib/libpthread.so.1
#2  0x00007195faae1472 in waitCondition (pCond=pCond@entry=0x7195fa2b2010, pMut=pMut@entry=0x7195fa2b2038) at rts/posix/OSThreads.c:143
#3  0x00007195faa903e1 in waitForWorkerCapability (task=<optimized out>) at rts/Capability.c:707
#4  yieldCapability (pCap=pCap@entry=0x7f7fff2287c0, task=task@entry=0x7195fa2b2000, gcAllowed=gcAllowed@entry=true) at rts/Capability.c:1011
#5  0x00007195faab0026 in scheduleYield (task=0x7195fa2b2000, pcap=0x7f7fff2287b8) at rts/Schedule.c:709
#6  schedule (initialCapability=initialCapability@entry=0x7195fab21cc0 <MainCapability>, task=task@entry=0x7195fa2b2000) at rts/Schedule.c:319
#7  0x00007195faab2069 in scheduleWaitThread (tso=0x4200406ce8, ret=ret@entry=0x0, pcap=pcap@entry=0x7f7fff228940) at rts/Schedule.c:2651
#8  0x00007195faaa85fb in rts_evalLazyIO (cap=cap@entry=0x7f7fff228940, p=p@entry=0x1071e60, ret=ret@entry=0x0) at rts/RtsAPI.c:566
#9  0x00007195faaabb48 in hs_main (argc=<optimized out>, argv=<optimized out>, main_closure=0x1071e60, rts_config=...) at rts/RtsMain.c:72
#10 0x0000000001063124 in main ()

Thread 5 (LWP 7329 of process 26131 "ghc_ticker"):
#0  0x00007195fa607a1a in ___lwp_park60 () from /usr/lib/libc.so.12
#1  0x00007195fa97dc4d in pthread_cond_timedwait () from /usr/lib/libpthread.so.1
#2  0x00007195faae1472 in waitCondition (pCond=pCond@entry=0x7195fab21bc0 <start_cond>, pMut=pMut@entry=0x7195fab21b80 <mutex>) at rts/posix/OSThreads.c:143
#3  0x00007195faae040e in itimer_thread_func (_handle_tick=0x7195faab9c57 <handle_tick>) at rts/posix/ticker/Pthread.c:140
#4  0x00007195fa97f2df in pthread.create_tramp () from /usr/lib/libpthread.so.1
#5  0x00007195fa5f0c60 in ?? () from /usr/lib/libc.so.12
#6  0x0000000000000000 in ?? ()

Thread 4 (LWP 15032 of process 26131 "ghc_worker"):
#0  0x00007195fa5a030a in _sys___kevent100 () from /usr/lib/libc.so.12
#1  0x00007195fa97a8a7 in __kevent100 () from /usr/lib/libpthread.so.1
#2  0x00007195fba014f2 in base_GHCziEventziKQueue_new12_info () from /usr/pkg/lib/ghc-9.4.7/lib/x86_64-netbsd-ghc-9.4.7/libHSbase-4.17.2.0-ghc9.4.7.so
#3  0x0000000000000000 in ?? ()

Thread 3 (LWP 17781 of process 26131 "ghc_worker"):
#0  0x00007195fa5a016a in poll () from /usr/lib/libc.so.12
#1  0x00007195fa97ae63 in poll () from /usr/lib/libpthread.so.1
#2  0x00007195fba0ff55 in ?? () from /usr/pkg/lib/ghc-9.4.7/lib/x86_64-netbsd-ghc-9.4.7/libHSbase-4.17.2.0-ghc9.4.7.so
#3  0x0000000000000000 in ?? ()

Thread 2 (LWP 23219 of process 26131 "ghc_worker"):
#0  0x00007195fa607a1a in ___lwp_park60 () from /usr/lib/libc.so.12
#1  0x00007195fa97dc4d in pthread_cond_timedwait () from /usr/lib/libpthread.so.1
#2  0x00007195faae1472 in waitCondition (pCond=pCond@entry=0x7195fa2b2190, pMut=pMut@entry=0x7195fa2b21b8) at rts/posix/OSThreads.c:143
#3  0x00007195faa903e1 in waitForWorkerCapability (task=<optimized out>) at rts/Capability.c:707
#4  yieldCapability (pCap=pCap@entry=0x7195f81fff10, task=task@entry=0x7195fa2b2180, gcAllowed=gcAllowed@entry=true) at rts/Capability.c:1011
--Type <RET> for more, q to quit, c to continue without paging--
#5  0x00007195faab0026 in scheduleYield (task=0x7195fa2b2180, pcap=0x7195f81fff08) at rts/Schedule.c:709
#6  schedule (initialCapability=initialCapability@entry=0x7195fab21cc0 <MainCapability>, task=task@entry=0x7195fa2b2180) at rts/Schedule.c:319
#7  0x00007195faab20b9 in scheduleWorker (cap=cap@entry=0x7195fab21cc0 <MainCapability>, task=task@entry=0x7195fa2b2180) at rts/Schedule.c:2668
#8  0x00007195faab78a2 in workerStart (task=0x7195fa2b2180) at rts/Task.c:444
#9  0x00007195fa97f2df in pthread.create_tramp () from /usr/lib/libpthread.so.1
#10 0x00007195fa5f0c60 in ?? () from /usr/lib/libc.so.12
#11 0x0000000000200000 in ?? ()
#12 0x0000000000000000 in ?? ()

Thread 1 (LWP 20090 of process 26131 "ghc_worker"):
#0  0x00007195fa607a1a in ___lwp_park60 () from /usr/lib/libc.so.12
#1  0x00007195fa97dc4d in pthread_cond_timedwait () from /usr/lib/libpthread.so.1
#2  0x00007195faae1472 in waitCondition (pCond=pCond@entry=0x7195fa22f010, pMut=pMut@entry=0x7195fa22f038) at rts/posix/OSThreads.c:143
#3  0x00007195faa903e1 in waitForWorkerCapability (task=<optimized out>) at rts/Capability.c:707
#4  yieldCapability (pCap=pCap@entry=0x7195f77fff10, task=task@entry=0x7195fa22f000, gcAllowed=gcAllowed@entry=true) at rts/Capability.c:1011
#5  0x00007195faab0026 in scheduleYield (task=0x7195fa22f000, pcap=0x7195f77fff08) at rts/Schedule.c:709
#6  schedule (initialCapability=initialCapability@entry=0x7195fab21cc0 <MainCapability>, task=task@entry=0x7195fa22f000) at rts/Schedule.c:319
#7  0x00007195faab20b9 in scheduleWorker (cap=cap@entry=0x7195fab21cc0 <MainCapability>, task=task@entry=0x7195fa22f000) at rts/Schedule.c:2668
#8  0x00007195faab78a2 in workerStart (task=0x7195fa22f000) at rts/Task.c:444
#9  0x00007195fa97f2df in pthread.create_tramp () from /usr/lib/libpthread.so.1
#10 0x00007195fa5f0c60 in ?? () from /usr/lib/libc.so.12
#11 0x0000000000200000 in ?? ()
#12 0x0000000000000000 in ?? ()
(gdb)

I see one other new weird behaviour on that machine - gnucash doesn't
finish starting up.

Has anyone else similar problems with latest -current?
 Thomas


Home | Main Index | Thread Index | Old Index