DragonFly commits List (threaded) for 2008-07
cvs commit: src/sys/platform/pc32/i386 trap.c src/sys/platform/vkernel/i386 trap.c
nth 2008/07/13 03:28:51 PDT
DragonFly src repository
Fix deadlock occuring when booting vkernel from gdb. One lwp in the vkernel
sends a signal to another one and is preempted by the signal receiving one in
userexit(). As the vkernel is traced, the vkernel process is stopped and the
receiving lwp stops too. The emitting lwp then resumes and blocks later on a
condition variable. The gdb process sleeps on wait(2) which never completes
because the emitting lwp is not stopped.
To prevent this, stop lwps in userexit(), after lwkt_reschedule, if their
owning process is stopped.
Reported-by: Simon Schubert <firstname.lastname@example.org>
Revision Changes Path
1.114 +11 -1 src/sys/platform/pc32/i386/trap.c
1.34 +11 -1 src/sys/platform/vkernel/i386/trap.c