[PATCH v2] input: constify valuators passed in by input drivers.
Adam Jackson
ajax at nwnk.net
Wed Aug 11 11:21:16 PDT 2010
On Wed, 2010-08-11 at 14:56 -0300, Fernando Carrijo wrote:
> If I'm not mistaken, the situation Daniel relates has more to do with the signal
> handler being unaware of the routine it interrupts. Thus, if during heap memory
> allocation a function is preempted by a signal handler that also allocates heap
> memory, the allocator could get confused and possibly corrupt its own internal
> state.
In newer glibc it's not "corrupt its internal state", it's "deadlock".
malloc takes a lock to protect internal state -> signal -> malloc tries
to take a lock it already holds -> sleep forever.
- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100811/cac917db/attachment.pgp>
More information about the xorg-devel
mailing list