[PATCH] Xserver crash due to ScreenPriv->SavedCursor->bits == 0

Matthias Hopf mhopf at suse.de
Fri Sep 4 10:42:04 PDT 2009

On Sep 04, 09 17:34:00 +0200, Matthias Hopf wrote:
> Sometimes the current Xserver (with intel 2.8.1 with KMS) crashes after
> resume from RAM (or disk, but that is broken anyway ATM). I managed to
> get a core and analyze it (see attached gdb log).
> Long story short, sometimes after resume ScreenPriv->SavedCursor->bits
> is NULL, and the server crashes.
> The attached patch works around this issue, but it doesn't solve the
> mysterious initial issue (why bits is actually NULL). If anybody has a
> good idea, or a better idea how to actually solve this...

Forget the original patch, it didn't work at all.
This patch
  1) tries (unsuccessfully so far) fix the issue
  2) works around the crash by not cleaning up the old cursor

Could very well be that this introduces a memory leak. Well, better than
a server crash :-/

Comments welcome


Matthias Hopf <mhopf at suse.de>      __        __   __
Maxfeldstr. 5 / 90409 Nuernberg   (_   | |  (_   |__          mat at mshopf.de
Phone +49-911-74053-715           __)  |_|  __)  |__  R & D   www.mshopf.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Work-around-sporadic-segfault-on-resume-with-intel-K.patch
Type: text/x-patch
Size: 0 bytes
Desc: not available
Url : http://lists.x.org/archives/xorg-devel/attachments/20090904/e58dc116/attachment.bin 

More information about the xorg-devel mailing list