GNOME Bugzilla – Bug 349043
Nautilus crash
Last modified: 2006-09-19 04:41:56 UTC
Nautilus crash when I right click on PROPERTIES on .kdc files. KDC files are Kodak's RAW picture file format. Please download below a KDC file below to test it yourself, the crash is reproducible: http://www.gnomefiles.org/shots/kdc.tar.bz2 Backtrace was generated from '/opt/gnome/bin/nautilus' (no debugging symbols found) Using host libthread_db library "/lib/libthread_db.so.1". [Thread debugging using libthread_db enabled] [New Thread -1226638912 (LWP 3261)] [New Thread -1228153952 (LWP 3264)] 0xffffe410 in __kernel_vsyscall ()
+ Trace 69729
Thread 1 (Thread -1226638912 (LWP 3261))
This bug isn't in nautilus, it's in evince, as the trace shows. Removing evince "solves" the crash and nautilus views properties fine. Opening the file with evince crashes evince on exit, so this must be an evince bug.
To provide some more information, I compiled evince with -g, resulting in this terminal output: ** (evince:10058): CRITICAL **: tiff_document_get_n_pages: assertion `tiff_document->tiff != NULL' failed ** (evince:10058): CRITICAL **: tiff_document_get_n_pages: assertion `tiff_document->tiff != NULL' failed Cannot access memory at address 0xe0305 Cannot access memory at address 0xe0305 together with this piece of GDB trace:
+ Trace 70520
which is this piece of code: TiffDocument *tiff_document = TIFF_DOCUMENT (object); TIFFClose (tiff_document->tiff); g_free (tiff_document->uri); The provided object isn't a tiff document but a Kodak RAW file. It is casted to a TiffDocument pointer and then given to TIFFClose. If libtiff wouldn't crash with that, the g_free after it would crash evince anyways.
Can you attach the file please? It looks like mime-type detection goes wrong somehow. Of course, evince is also responsible, I am looking on the way to fix it.
I think to fix that problem we should just set error in tiff_document_load and check not only for error but for return value also in ev_properties_get_page and in ev_document_factory_get_document. Someone should write a patch.
Oh, sorry, I see the file is here. Thanks
Nickolay, there is info about MIME detection here: https://bugs.freedesktop.org/show_bug.cgi?id=4117 The RAW image formats GLOBs haven't made it into shared-mime-info as of yet and so these images are detected as TIFF (their container format is TIFF, but their internal data format is not).
Should be fixed in HEAD, thanks to all
*** Bug 356082 has been marked as a duplicate of this bug. ***