GNOME Bugzilla – Bug 534226
Crash in nautilus-icon-dnd.c on bad pixmap
Last modified: 2008-05-27 23:56:40 UTC
Reported here: https://bugs.edge.launchpad.net/ubuntu/+source/nautilus/+bug/232522 "Using Ubuntu Hardy 8.04 with Nautilus 1:2.22.2-0ubuntu6 pressing LMB (Left mouse button) and quickly afterwards RMB (Right mouse button) on a directory causes a Nautilus Segmentation fault and a system hang, only CTRL+ALT+Backspace lets me get out of it. The mouse pointer changes to the hand with a plus sign (indicating that Nautilus wants to copy something) when the hang occurs. The expected behavior would be that the directory is opened." Program received signal SIGSEGV, Segmentation fault.
+ Trace 198327
Thread 139651981596576 (LWP 6320)
Patch fixing the crash follows
Created attachment 111285 [details] [review] simple fix Can't create a (valid) cairo context for a NULL pixmap.
Good catch, please commit the patch!
2008-05-27 A. Walton <awalton@gnome.org> * libnautilus-private/nautilus-icon-dnd.c: (drag_begin_callback): Don't try to create a Cairo context for a NULL pixmap. Fixes bug #534226. Committed to 2.22 and trunk.