infinite loop on shutdown
On shutdown, my sandy bridge laptop hangs in an infinite loop in:xf86-video-intel/src/sna/sna_threads.c:
69 while (t->func == NULL)
70 pthread_cond_wait(&t->cond, &t->mutex);Any idea on how to stop it waiting and just quit? (Or what to look for if you aren't seeing this...)
FWIW
(gdb) print *t
$1 = {thread = 0x7f7ff7b68000, mutex = {ptm_magic = 858980355,
ptm_errorcheck = 0 '\000', ptm_pad1 = "\000\000",
ptm_interlock = 0 '\000', ptm_pad2 = "\000\000", ptm_owner = 0x0,
ptm_waiters = 0x0, ptm_recursed = 0, ptm_spare2 = 0x0}, cond = {
ptc_magic = 1431633925, ptc_lock = 0 '\000', ptc_waiters = {
ptqh_first = 0x7f7ff7b68000, ptqh_last = 0x7f7ff7b68230},
ptc_mutex = 0x7f7ff7b47338, ptc_private = 0x0}, func = 0x0, arg = 0x0}Cheers,
Patrick
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 8 lines · Patrick Welche
On shutdown, my sandy bridge laptop hangs in an infinite loop in:
xf86-video-intel/src/sna/sna_threads.c:69 while (t->func == NULL) 70 pthread_cond_wait(&t->cond, &t->mutex);Any idea on how to stop it waiting and just quit? (Or what to look for if you aren't seeing this...)
The thread should be destroyed along with the parent process on termination. I guess your pthreads implementation prevents that? If so, and that is desirable, you will need to call pthread_kill() in the Xorg driver destructor - only there is not a suitable callback, so you would need to hack something into the resource system or add a counter. -Chris
Signature · 5 lines
Chris Wilson, Intel Open Source Technology Centre _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 7 lines · Chris Wilson
Quoted 6 lines · Patrick Welche
On shutdown, my sandy bridge laptop hangs in an infinite loop in:
xf86-video-intel/src/sna/sna_threads.c:69 while (t->func == NULL) 70 pthread_cond_wait(&t->cond, &t->mutex);
Quoted 8 lines
Quoted 2 lines
Any idea on how to stop it waiting and just quit? (Or what to look for if you aren't seeing this...)
The thread should be destroyed along with the parent process on termination. I guess your pthreads implementation prevents that? If so, and that is desirable, you will need to call
pthread_kill()in the Xorg driver destructor - only there is not a suitable callback, so you would need to hack something into the resource system or add a counter.
I don't see this strange behaviour if I add
Section "ServerFlags"
Option "NoTrapSignals" "true"
EndSection
to xorg.conf. (I don't think I am just being more lucky.) Does this data point alter your best guess?
Cheers,
Patrick
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx