GNOME Bugzilla – Bug 670989
Nautilus crashes with SIGFPE at exit
Last modified: 2012-03-08 02:09:42 UTC
In nautilus-thumbnailer, the hash table from get_types_table() is destroyed at exit. If by chance the destroynotify is called before another handler calls pixbuf_can_load_type(), the hashtable is no longer valid and it crashes with FPE (because hashtable->mod is set to 0 by free() or other allocations on top of that). One possibility is to clear out image_mime_types when the table is destroyed, so if needed it will be recreated. Another is just to remove the atexit() handler, as the process is about to go down anyway, and no externally visible resources are held by that table. (Moved from downstream bug https://bugzilla.redhat.com/show_bug.cgi?id=717740 )
I now completely removed the use of eel_g_hash_table_new_free_at_exit in nautilus, which should fix all these crashers.