GNOME Bugzilla – Bug 699022
Crash when freedb.musicbrainz.org has problems
Last modified: 2013-05-04 07:57:05 UTC
Hello, I've been getting crashes these few days, since freedb.musicbrainz.org seems to be down or non-functional. Basically, whenever I try to look something up through CD Database Search, easytag crashes. Disabling freedb.musicbrainz.org from preferences avoids the crash. In fact, if I enter something like "hello.org" instead of "freedb.musicbrainz.org", easytag hangs for a while, then aborts with "*** glibc detected *** easytag: double free or corruption (!prev): 0x0000000002b90940 ***". Environment info: easytag 2.1.8 from Gnome:Apps openSUSE repository, openSUSE 12.2 x86-64, gtk 2.24.10, glibc-2.15. Here's a backtrace with freedb.musicbrainz.org enabled: ---------------------------------------------- ** (easytag:10075): CRITICAL **: Cddb_Free_Album_List: assertion `CddbAlbumList != NULL' failed Program received signal SIGSEGV, Segmentation fault. 0x00007ffff4bad2b1 in _int_free () from /lib64/libc.so.6 (gdb) where
+ Trace 231864
There have been several fixes to the CDDB code (including one which should avoid the != NULL warning) since 2.1.8: commit 8fd019ff9cafd713227171c3f64b0bd715204eaf Author: David King <amigadave@amigadave.com> Date: Thu Feb 14 23:29:57 2013 +0000 Avoid warnings when freeing the CDDB album list Check that the CDDB album list is not empty before freeing it. commit 4d5cdd7dab803dd37da7ba89bac146aec49792e9 Author: David King <amigadave@amigadave.com> Date: Thu Feb 14 23:11:36 2013 +0000 Fix a couple of memory leaks in the CDDB search commit 90e35f098313fb675d387bb0c8e338f878a934be Author: David King <amigadave@amigadave.com> Date: Wed Feb 13 22:26:08 2013 +0000 Fix a memory leak when freeing the CDDB album list Can you try those fixes and see if it fixes the crash?
Hello, I just tried the git master, still crashes on freedb.musicbrainz.org. The "hello.org" crash seems to be different, since it's "Aborted". Should I file a separate bug for it? Here's the backtrace for freedb.musicbrainz.org: Program received signal SIGSEGV, Segmentation fault.
+ Trace 231866
That stacktrace looks like there is a problem parsing the tooltip text, and is quite different to the first stacktrace. If you could past the other "holle.org" stacktrace here it would be useful.
Here's the backtrace for hello.org (note that I just picked that name at random). Program received signal SIGABRT, Aborted.
+ Trace 231867
I figured this out with the help of Valgrind (which reported a double free). I pushed the fix to master as commit e87a8ab6a1c32d09825f61c49bee75abc27265af. Thanks for the report.
*** Bug 699659 has been marked as a duplicate of this bug. ***