GNOME Bugzilla – Bug 170947
[PATCH] gnome-vfs can crash when calling xdg_mime* functions
Last modified: 2007-02-14 18:09:53 UTC
Steps to reproduce: 1. Right-click on an icon in Nautilus 2. The crash is not 100% reproducible, as it is caused by reentrancy into xdgmime 3. Stack trace: Other information: While all of the xdg_mime* functions called xdg_mime_init(), not all of them are protected with mime_mutex in gnome-vfs-mime.c. The attached patch wraps all of the xdg_mime* functions inside mime_mutex, and seems to stop the crashes.
Created attachment 38952 [details] [review] Wrap all xdg_mime* functions withoin mime_mutex
Good catch! Thanks a lot! Commited.
also commited to 2-10 branch
Actually, there seems to be some places where this was missed.
Created attachment 51603 [details] [review] fix the rest of the cases
commited.
*** Bug 315702 has been marked as a duplicate of this bug. ***
First patch solves 95% of the problems for my 50 gnome 2.10 users. (see #306143) But even applied , users have sometimes a related gnome crash (see bt below). The second patch ( id=51603 ) seems to strenghten the first one. Unfortuntly, I didn't succeed in applying it with gnome-vfs-2.10.1. I guess it's for 2.12. Is there a chance to have the same patch for 2.10 ? Using host libthread_db library "/lib/tls/libthread_db.so.1". Core was generated by `/opt/STools/gnome-2.10/bin/nautilus'.
+ Trace 63137
Thread 7 (process 5065)
*** Bug 317274 has been marked as a duplicate of this bug. ***
*** Bug 317202 has been marked as a duplicate of this bug. ***
*** Bug 316740 has been marked as a duplicate of this bug. ***
*** Bug 318009 has been marked as a duplicate of this bug. ***
*** Bug 318284 has been marked as a duplicate of this bug. ***
*** Bug 319792 has been marked as a duplicate of this bug. ***
*** Bug 324188 has been marked as a duplicate of this bug. ***
*** Bug 332614 has been marked as a duplicate of this bug. ***
*** Bug 334619 has been marked as a duplicate of this bug. ***
*** Bug 326377 has been marked as a duplicate of this bug. ***
*** Bug 370486 has been marked as a duplicate of this bug. ***
*** Bug 407612 has been marked as a duplicate of this bug. ***