Subject: Re: XFree dynamic loader
To: Nathan J. Williams <firstname.lastname@example.org>
From: Michael <email@example.com>
Date: 03/29/2005 15:22:34
-----BEGIN PGP SIGNED MESSAGE-----
>>> From the stack trace you've posted, though, it looks like the X
>>> is calling pthread_sigmask() from a call chain inside a signal
>>> handler, and that's just not going to work.
>> Hmm, stupid question - is this NetBSD-specific?
> That it's not guaranteed to work ("invokes undefined behavior") is
> standardized by POSIX. It may happen to work, or usually happen to
> work, in other operating systems.
Ok, so it has no business in NetBSD's Xserver - I hope there's an easy
way to disable it.
>> Could this confuse the kernel enough to keep it from rebooting?
> It shouldn't. This should essentially produce a process spinning in
> userland on a spinlock.
That's exactly what happens.
>> If it is I'll see if I can get rid of this SIGIO stuff, it doesn't
>> look like anyone really uses it for anything good anyway. I think
>> the signal handler is called because of some mucked up function
>> pointer and the server ends up in the SIGIO handler more or less by
> That sounds very bad.
Indeed. Maybe it's just another linuxism that crept in (SIGIO...), the
Xserver should crash properly on this instead of mucking with pthreads
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
-----END PGP SIGNATURE-----