[Intel-gfx] infinite loop on shutdown

Patrick Welche prlw1 at cam.ac.uk
Thu Mar 26 03:49:29 PDT 2015


On Tue, Jan 27, 2015 at 09:38:23PM +0000, Chris Wilson wrote:
> On Tue, Jan 27, 2015 at 04:33:01PM +0000, Patrick Welche wrote:
> > 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.

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


More information about the Intel-gfx mailing list