GNOME Bugzilla – Bug 445456
links referencing each other lead to crash
Last modified: 2010-04-16 18:11:34 UTC
1. create a test folder. Do not use your Desktop or you'll have lots of fun 2. create empty test file foo (text file or whatever). 3. drag-and-drop foo into the same folder while pressing ALT. 4. choose to reate a link 5. delete foo 6. create a link to the link to foo 7. rename last link to foo very similar to a Windows XP bug: http://www.heise.de/security/foren/go.shtml?read=1&msg_id=12842370&forum_id=44155 (gdb) bt full
+ Trace 139333
$5 = (GList *) 0x879ae10 (gdb) p *link_files $6 = {data = 0x8580980, next = 0x0, prev = 0x0} (gdb) p *p $7 = {data = 0x8580980, next = 0x0, prev = 0x0}
Created attachment 90856 [details] [review] Proposed patch Good catch! What do you think about this patch?
Unlike you I am not a coding wizard but there is something fishy with that patch. nautilus won't compile with it. Something is really fishy since the first two secions(!) patch nautilus_file_changed (NautilusFile *file). for some reason it did not work for me, only the second section was applied.
Created attachment 90875 [details] [review] revised proposed patch Manually integrated the patch and my diff is slightly different... build succeeds now
Hmm. File change emissions are very common. Allocating a hashtable for these seems like a bad idea from a performance perspective. We should instead have a boolean in NautilusFile (in-changed) and short-circuit the emit based on that.
Closing as a duplicate of bug #607974, as that has a patch attached that uses another approach. Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of bug 607974 ***