GNOME Bugzilla – Bug 356623
gThumb crashed when I inserted a blank CD-R disk
Last modified: 2007-10-02 16:33:49 UTC
Distribution: Fedora Core release 5 (Bordeaux) Package: gthumb Severity: Normal Version: GNOME2.14.2 2.7.7 Gnome-Distributor: Red Hat, Inc Synopsis: gThumb crashed when I inserted a blank CD-R disk Bugzilla-Product: gthumb Bugzilla-Component: general Bugzilla-Version: 2.7.7 BugBuddy-GnomeVersion: 2.0 (2.14.1) Description: Description of the crash: gThumb crashed when I inserted a blank CD-R disk Steps to reproduce the crash: 1. Open a gThumb window browsing .jpeg photos 2. Insert a blank DC in the CD-RW drive Expected Results: No change in the gThumb window How often does this happen? Once Additional Information: It's an old Dell Optiplex GX1 desktop, PIII 450MHz processor, things take longer than you might expect. Debugging Information: Backtrace was generated from '/usr/bin/gthumb' (no debugging symbols found) Using host libthread_db library "/lib/libthread_db.so.1". (no debugging symbols found) `shared object read from target memory' has disappeared; keeping its symbols. (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread -1208146240 (LWP 9097)] [New Thread -1562653792 (LWP 9299)] [New Thread -1439790176 (LWP 9298)] [New Thread -1412002912 (LWP 9297)] [New Thread -1490732128 (LWP 9296)] [New Thread -1501221984 (LWP 9295)] [New Thread -1511711840 (LWP 9294)] [New Thread -1390171232 (LWP 9110)] [New Thread -1379681376 (LWP 9109)] [New Thread -1369191520 (LWP 9108)] [New Thread -1358701664 (LWP 9107)] [New Thread -1348211808 (LWP 9104)] [New Thread -1263072352 (LWP 9103)] [New Thread -1210246240 (LWP 9099)] (no debugging symbols found) 0x48263402 in __kernel_vsyscall ()
+ Trace 72691
Thread 1 (Thread -1208146240 (LWP 9097))
------- Bug created by bug-buddy at 2006-09-18 20:54 ------- Unknown version 2.7.7 in product gthumb. Setting version to "2.7.x".
*** Bug 356766 has been marked as a duplicate of this bug. ***
*** Bug 357533 has been marked as a duplicate of this bug. ***
*** Bug 367053 has been marked as a duplicate of this bug. ***
*** Bug 367983 has been marked as a duplicate of this bug. ***
*** Bug 366506 has been marked as a duplicate of this bug. ***
*** Bug 367471 has been marked as a duplicate of this bug. ***
*** Bug 369703 has been marked as a duplicate of this bug. ***
*** Bug 370878 has been marked as a duplicate of this bug. ***
*** Bug 371402 has been marked as a duplicate of this bug. ***
*** Bug 371876 has been marked as a duplicate of this bug. ***
Hi, everyone. Unfortunately, i am unable to reproduze this bug. Is there someone that has this bug and have the time, so that with me, we can try to get a answer to this bug.
*** Bug 373177 has been marked as a duplicate of this bug. ***
(In reply to comment #0) > Steps to reproduce the crash: > 1. Open a gThumb window browsing .jpeg photos > 2. Insert a blank DC in the CD-RW drive Hi, I have gthumb-2.7.9-1.fc7 installed & I cannot reproduce this crash with the given steps. Can someone (who is seeing the crash) run gthumb from command line, attach gdb to it, crash it & then do a "bt" & paste the output of gdb session here? Thanks, Makuchaku (Max!)
*** Bug 375386 has been marked as a duplicate of this bug. ***
*** Bug 375500 has been marked as a duplicate of this bug. ***
*** Bug 375648 has been marked as a duplicate of this bug. ***
*** Bug 375156 has been marked as a duplicate of this bug. ***
Please note the more verbose stracktraces in the last two duplicates. These stracktraces are slightly different, but I think they are basically the same thing. They all have an error around the "gnome_vfs_volume_monitor_emit_pre_unmount" line. - Mike
My stacktraces show:
+ Trace 86755
and gth-location.c:149 is: g_list_foreach (loc->priv->drives, (GFunc) gnome_vfs_drive_unref, NULL); g_list_free (loc->priv->drives); loc->priv->drives = gnome_vfs_volume_monitor_get_connected_drives (volume_monitor); update_drives (loc); so... are we unref'ing or freeing something that no longer exists? Manuel, do you see any problems? - Mike
Mike Run in gdb, to see in what line is the segment fault. It looks like loc->priv is NULL.
Hit gth_location_finalize was called, when there are g_signal_connect (loc->priv->volume_monitor, ... active. But i only guessing.
Manuel, I couldn't reproduce the problem while running in gdb. I'll try again later, perhaps. There must be a very time-sensitive race condition. - Mike
If you can try this. More guessing, a possible solution, only guessing. Put in line 84 static void monitor_changed_cb (GnomeVFSVolumeMonitor *volume_monitor, gpointer data, GthLocation *loc); then in line 99 g_signal_handlers_disconnect_by_func(loc->priv->volume_monitor, G_CALLBACK (monitor_changed_cb), loc);
Manuel, Could you post that as a diff file, so that I understand exactly which lines you mean? Thanks! - Mike
Never mind, I think I understand. - Mike
Manuel, Your patch does seem to work! Are you happy with it for committing, or does it need refinement? - Mike
Created attachment 76678 [details] [review] vfs monitor changed segment fault This only changes the position of the function, the rest is equal.
Created attachment 76681 [details] [review] Manuel's patch, in diff format.
Patch committed to CVS HEAD (will appear in 2.9.0). Thanks Manuel! Paolo, this should be considered for backporting to the 2.8 branch. - Mike
*** Bug 378273 has been marked as a duplicate of this bug. ***
*** Bug 380042 has been marked as a duplicate of this bug. ***
*** Bug 381013 has been marked as a duplicate of this bug. ***
*** Bug 381662 has been marked as a duplicate of this bug. ***
*** Bug 381840 has been marked as a duplicate of this bug. ***
*** Bug 381832 has been marked as a duplicate of this bug. ***
*** Bug 382380 has been marked as a duplicate of this bug. ***
*** Bug 383204 has been marked as a duplicate of this bug. ***
*** Bug 383280 has been marked as a duplicate of this bug. ***
*** Bug 384252 has been marked as a duplicate of this bug. ***
*** Bug 384590 has been marked as a duplicate of this bug. ***
*** Bug 385663 has been marked as a duplicate of this bug. ***
*** Bug 386793 has been marked as a duplicate of this bug. ***
*** Bug 386745 has been marked as a duplicate of this bug. ***
*** Bug 387049 has been marked as a duplicate of this bug. ***
*** Bug 387256 has been marked as a duplicate of this bug. ***
*** Bug 389622 has been marked as a duplicate of this bug. ***
*** Bug 389939 has been marked as a duplicate of this bug. ***
*** Bug 390198 has been marked as a duplicate of this bug. ***
*** Bug 390353 has been marked as a duplicate of this bug. ***
*** Bug 391013 has been marked as a duplicate of this bug. ***
*** Bug 393650 has been marked as a duplicate of this bug. ***
*** Bug 393739 has been marked as a duplicate of this bug. ***
*** Bug 395091 has been marked as a duplicate of this bug. ***
*** Bug 395194 has been marked as a duplicate of this bug. ***
*** Bug 395471 has been marked as a duplicate of this bug. ***
*** Bug 398044 has been marked as a duplicate of this bug. ***
*** Bug 398639 has been marked as a duplicate of this bug. ***
*** Bug 398889 has been marked as a duplicate of this bug. ***
*** Bug 399559 has been marked as a duplicate of this bug. ***
*** Bug 399983 has been marked as a duplicate of this bug. ***
*** Bug 400449 has been marked as a duplicate of this bug. ***
*** Bug 400734 has been marked as a duplicate of this bug. ***
*** Bug 403024 has been marked as a duplicate of this bug. ***
*** Bug 403698 has been marked as a duplicate of this bug. ***
*** Bug 404471 has been marked as a duplicate of this bug. ***
*** Bug 404998 has been marked as a duplicate of this bug. ***
*** Bug 405071 has been marked as a duplicate of this bug. ***
*** Bug 406557 has been marked as a duplicate of this bug. ***
*** Bug 409894 has been marked as a duplicate of this bug. ***
*** Bug 410044 has been marked as a duplicate of this bug. ***
*** Bug 410251 has been marked as a duplicate of this bug. ***
*** Bug 410597 has been marked as a duplicate of this bug. ***
*** Bug 410640 has been marked as a duplicate of this bug. ***
*** Bug 411627 has been marked as a duplicate of this bug. ***
*** Bug 411836 has been marked as a duplicate of this bug. ***
*** Bug 412339 has been marked as a duplicate of this bug. ***
*** Bug 412504 has been marked as a duplicate of this bug. ***
*** Bug 414818 has been marked as a duplicate of this bug. ***
*** Bug 414739 has been marked as a duplicate of this bug. ***
*** Bug 415008 has been marked as a duplicate of this bug. ***
*** Bug 415118 has been marked as a duplicate of this bug. ***
*** Bug 416267 has been marked as a duplicate of this bug. ***
*** Bug 416330 has been marked as a duplicate of this bug. ***
*** Bug 416885 has been marked as a duplicate of this bug. ***
*** Bug 417682 has been marked as a duplicate of this bug. ***
*** Bug 417833 has been marked as a duplicate of this bug. ***
*** Bug 420246 has been marked as a duplicate of this bug. ***
*** Bug 420936 has been marked as a duplicate of this bug. ***
*** Bug 421119 has been marked as a duplicate of this bug. ***
*** Bug 421310 has been marked as a duplicate of this bug. ***
*** Bug 422338 has been marked as a duplicate of this bug. ***
*** Bug 424664 has been marked as a duplicate of this bug. ***
*** Bug 425208 has been marked as a duplicate of this bug. ***
*** Bug 425426 has been marked as a duplicate of this bug. ***
*** Bug 426234 has been marked as a duplicate of this bug. ***
*** Bug 426551 has been marked as a duplicate of this bug. ***
*** Bug 426575 has been marked as a duplicate of this bug. ***
*** Bug 426648 has been marked as a duplicate of this bug. ***
*** Bug 426722 has been marked as a duplicate of this bug. ***
*** Bug 427071 has been marked as a duplicate of this bug. ***
*** Bug 427073 has been marked as a duplicate of this bug. ***
*** Bug 427207 has been marked as a duplicate of this bug. ***
*** Bug 428186 has been marked as a duplicate of this bug. ***
*** Bug 428303 has been marked as a duplicate of this bug. ***
*** Bug 428753 has been marked as a duplicate of this bug. ***
*** Bug 428895 has been marked as a duplicate of this bug. ***
*** Bug 428883 has been marked as a duplicate of this bug. ***
*** Bug 429199 has been marked as a duplicate of this bug. ***
*** Bug 431913 has been marked as a duplicate of this bug. ***
*** Bug 432247 has been marked as a duplicate of this bug. ***
*** Bug 432384 has been marked as a duplicate of this bug. ***
*** Bug 432569 has been marked as a duplicate of this bug. ***
*** Bug 433155 has been marked as a duplicate of this bug. ***
*** Bug 433391 has been marked as a duplicate of this bug. ***
*** Bug 434172 has been marked as a duplicate of this bug. ***
*** Bug 434509 has been marked as a duplicate of this bug. ***
*** Bug 434598 has been marked as a duplicate of this bug. ***
*** Bug 435722 has been marked as a duplicate of this bug. ***
*** Bug 436380 has been marked as a duplicate of this bug. ***
*** Bug 436508 has been marked as a duplicate of this bug. ***
*** Bug 436975 has been marked as a duplicate of this bug. ***
*** Bug 437128 has been marked as a duplicate of this bug. ***
*** Bug 437783 has been marked as a duplicate of this bug. ***
*** Bug 437824 has been marked as a duplicate of this bug. ***
*** Bug 438186 has been marked as a duplicate of this bug. ***
*** Bug 438328 has been marked as a duplicate of this bug. ***
*** Bug 438593 has been marked as a duplicate of this bug. ***
*** Bug 438644 has been marked as a duplicate of this bug. ***
*** Bug 438747 has been marked as a duplicate of this bug. ***
*** Bug 439243 has been marked as a duplicate of this bug. ***
*** Bug 439260 has been marked as a duplicate of this bug. ***
*** Bug 441746 has been marked as a duplicate of this bug. ***
*** Bug 441726 has been marked as a duplicate of this bug. ***
*** Bug 443268 has been marked as a duplicate of this bug. ***
*** Bug 443253 has been marked as a duplicate of this bug. ***
*** Bug 443032 has been marked as a duplicate of this bug. ***
*** Bug 444154 has been marked as a duplicate of this bug. ***
*** Bug 445628 has been marked as a duplicate of this bug. ***
*** Bug 445614 has been marked as a duplicate of this bug. ***
*** Bug 445889 has been marked as a duplicate of this bug. ***
*** Bug 447264 has been marked as a duplicate of this bug. ***
*** Bug 448634 has been marked as a duplicate of this bug. ***
*** Bug 448877 has been marked as a duplicate of this bug. ***
*** Bug 449370 has been marked as a duplicate of this bug. ***
*** Bug 449461 has been marked as a duplicate of this bug. ***
*** Bug 449463 has been marked as a duplicate of this bug. ***
*** Bug 449796 has been marked as a duplicate of this bug. ***
*** Bug 449837 has been marked as a duplicate of this bug. ***
*** Bug 450088 has been marked as a duplicate of this bug. ***
*** Bug 455032 has been marked as a duplicate of this bug. ***
*** Bug 455369 has been marked as a duplicate of this bug. ***
*** Bug 457353 has been marked as a duplicate of this bug. ***
*** Bug 458813 has been marked as a duplicate of this bug. ***
*** Bug 460010 has been marked as a duplicate of this bug. ***
*** Bug 463231 has been marked as a duplicate of this bug. ***
*** Bug 464932 has been marked as a duplicate of this bug. ***
*** Bug 469114 has been marked as a duplicate of this bug. ***
*** Bug 469451 has been marked as a duplicate of this bug. ***
*** Bug 473293 has been marked as a duplicate of this bug. ***
*** Bug 472864 has been marked as a duplicate of this bug. ***
*** Bug 474354 has been marked as a duplicate of this bug. ***
*** Bug 474734 has been marked as a duplicate of this bug. ***
*** Bug 475643 has been marked as a duplicate of this bug. ***
*** Bug 477972 has been marked as a duplicate of this bug. ***
*** Bug 479555 has been marked as a duplicate of this bug. ***
*** Bug 479616 has been marked as a duplicate of this bug. ***
*** Bug 482653 has been marked as a duplicate of this bug. ***