Undermining XGrabKeyboard

Peter Hutterer mailinglists at who-t.net
Tue Mar 4 17:26:28 PST 2008


pcpa at mandriva.com.br wrote:
>> Paulo Cesar Pereira de Andrade wrote:
>>>   I wrote a patch for the Mandriva X Server that handles keyboard
>>> events using sigio, like mouse events,
>> unless you wrote a lot more code than this, this will re-create the 
>> problem that X mallocs and frees memory in the signal handler.

Try a powerpc, thats how I noticed it.

>   Anyway, it is also using the patch from Matthieu Herrb to preallocate
> input related memory, so it should not be calling malloc/free from the
> "enqueue" routines.
> 

the keyboard may have to switch keymaps and this allocates memory. with 
matthieu's patch mouse stuff is fine, but kbd isn't yet.

Cheers,
   Peter



More information about the xorg mailing list