GNOME Bugzilla – Bug 312448
Double free or corruption choosing a recent image that no longer exists
Last modified: 2005-10-24 02:37:23 UTC
Please describe the problem: When I select an item in the recent file menú that no longer exists, I get the "File does not exist" dialog and then the following message in my terminal: *** glibc detected *** double free or corruption (fasttop): 0x083e2108 *** Then the aplication freezes. Steps to reproduce: 1. Open an image 2. Close it 3. Delete the image using nautilus 4. Select the deleted image from the recent items list. Actual results: The application freezes Expected results: Nothing Does this happen every time? Yes Other information:
I can confirm this using jhbuild GNOME 2.11.90. Setting priority and severity appropriately.
I also got that on EOG in ubuntu 5.10 (released version). I got a stacktrace in GDB: *** glibc detected *** double free or corruption (!prev): 0x082b4d58 *** Program received signal SIGABRT, Aborted.
+ Trace 63568
Thread NaN (LWP 11217)
I've reproduced the bug in CVS HEAD version. I did a little test and found that a list is corrupted during after the emision of the "open_uri_list" signal, probably while the dialog "File not found" is shown. I get the following output when applying the attached patch. <output> claudio@dijkstra:~/cvs/gnome2head/eog/shell$ ./eog setting window size: 768/620 data: file:///home/claudio/P1030175.JPG pre-clean: \uffff\uffff:///home/claudio/P1030175.JPG *** glibc detected *** double free or corruption (fasttop): 0x08292ca0 *** </output> Commenting out the line 2196 in eog-window.c, so the data in the list doesn't get freed, evitates the program to crash.
Created attachment 53787 [details] [review] test case.
Fixed in HEAD and gnome-2-12 branch. Thanks!