GNOME Bugzilla – Bug 576558
Crashes when trying to save write protected file
Last modified: 2009-03-24 15:00:17 UTC
[ Original report: http://bugs.debian.org/507991 by Matthias Bläsing ] To get this trace I did this: Placed tuz.png on the desktop, remove the write permission for me and opened it in eog, rotated it left by 90° and pressed CTRL-S to save the resulting image. Program received signal SIGSEGV, Segmentation fault.
+ Trace 213811
Thread 3061484432 (LWP 5410)
Created attachment 131251 [details] [review] Properly pass the GError My understanding is that it is caused by dereferencing NULL in g_error_matches. Passing correctly the GError pointer to g_file_move should do the trick.
Okay, I assume your Desktop folder permissions are different than mine, as g_file_move happily overwrites the file here (ignoring the file permission, bug 320688). But yes, you're right, the GError handling is wrong here and leads to a crash. I added the remaining parts to your patch and committed it. 2009-03-24 Felix Riemann <> * src/eog-image.c: (tmp_file_move_to_uri): Fix GError usage and avoid crashes when the tempfile can't be moved to the destination. Fixes bug #576558 (Josselin Mouette, Felix Riemann). This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.