GNOME Bugzilla – Bug 337660
rhythmbox crashes when re-organising playlist while playing
Last modified: 2006-04-08 12:46:33 UTC
That bug has been opened on https://launchpad.net/distros/ubuntu/+source/rhythmbox/+bug/38616 "Open a custom playlist with, say, 10 songs. Start a song. Move the song upwards. Playing stops. (this is known as bug 38613 ) However, just start it again, and drag it again, and go on like this for a while. Rhythmbox crashes. I followed instructions on https://wiki.ubuntu.com/DebuggingProgramCrash and made a backtrace. Note a few things: - 0.9.3.1-0ubuntu3 - I discovered this bug while using rhythmbox in a normal way, so that means it happened faster than I can reproduce it now. It could be that you have to try the weird play/drag-up/play/drag-down/play-drag up several times, but it's reproducable here - I don't know if the upper thread in the backtrace is the one that crashed, but once I saw a failed assertion in g_strdup() (I believe something about (something)"->inserted==null", can't remember really). Unfortunately I lost the exact wording, and although I can reproduce the crash I can't reproduce that command-line output. Often the commandline output is just "Segmentation fault", but *another* output I did catch: ============================== (rhythmbox:8721): GLib-CRITICAL **: g_date_get_julian: assertion `g_date_valid (d)' failed (rhythmbox:8721): GLib-CRITICAL **: g_date_get_julian: assertion `g_date_valid (d)' failed (rhythmbox:8721): GLib-CRITICAL **: g_date_get_julian: assertion `g_date_valid (d)' failed (rhythmbox:8721): GLib-CRITICAL **: g_date_get_julian: assertion `g_date_valid (d)' failed (rhythmbox:8721): GLib-CRITICAL **: g_date_get_julian: assertion `g_date_valid (d)' failed See the backtrace, also. ... Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1226029376 (LWP 8083)] 0xb71c6c58 in g_strdup () from /usr/lib/libglib-2.0.so.0 ...
+ Trace 67522
Thread 1 (Thread -1226029376 (LWP 8083))
debug backtrace: (gdb) bt
+ Trace 67523
with glib debug too: Program received signal SIGSEGV, Segmentation fault.
+ Trace 67525
Thread NaN (LWP 9385)
Created attachment 62965 [details] [review] patch I'm fairly certain this should fix the problem.
Created attachment 62972 [details] valgrind log The crash is still happening with the patch. Attaching a valgrind log of what happens after some dnd to the playlist
This looks like a duplicate of bug 336045, in which case this change should fix it : http://cvs.gnome.org/viewcvs/rhythmbox/rhythmdb/rhythmdb-query-model.c?r1=1.111&r2=1.112
That fixes the crash, thank you *** This bug has been marked as a duplicate of 336045 ***