Bugzilla – Bug 13245
Artwork import segfaulting
Last modified: 2009-08-05 13:59:09 UTC
Created attachment 5568 [details] artwork file crashing SC The scanner or server would crash on the attached artwork file when caching artwork files. This didn't happen neither with the noweb/sqlite branch nor with trunk before the merger. But now it's easily reproducible. No error message, it just crashes. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1208301888 (LWP 2330)] 0x00344841 in deflateReset () from /usr/local/Squeezebox/CPAN/arch/5.10/i386-linux-thread-multi/auto/DBD/mysql/mysql.so (gdb) bt #0 0x00344841 in deflateReset () from /usr/local/Squeezebox/CPAN/arch/5.10/i386-linux-thread-multi/auto/DBD/mysql/mysql.so #1 0x00c11dd6 in deflateInit2_ () from /usr/lib/libz.so.1 #2 0x00740c1d in png_write_IHDR () from /usr/local/Squeezebox/CPAN/arch/5.10/i386-linux-thread-multi/auto/GD/GD.so #3 0x0073152a in png_write_info_before_PLTE () from /usr/local/Squeezebox/CPAN/arch/5.10/i386-linux-thread-multi/auto/GD/GD.so #4 0x0073177e in png_write_info () from /usr/local/Squeezebox/CPAN/arch/5.10/i386-linux-thread-multi/auto/GD/GD.so #5 0x0070c381 in gdImagePngCtxEx () from /usr/local/Squeezebox/CPAN/arch/5.10/i386-linux-thread-multi/auto/GD/GD.so #6 0x0070cce8 in gdImagePngPtr () from /usr/local/Squeezebox/CPAN/arch/5.10/i386-linux-thread-multi/auto/GD/GD.so #7 0x006fba46 in XS_GD__Image_png () from /usr/local/Squeezebox/CPAN/arch/5.10/i386-linux-thread-multi/auto/GD/GD.so #8 0x080a752f in Perl_pp_entersub () #9 0x080a05be in Perl_runops_standard () #10 0x0809e438 in Perl_call_sv () #11 0x00603d49 in XS_EV__Watcher_data () from /usr/local/Squeezebox/CPAN/arch/5.10/i386-linux-thread-multi/auto/EV/EV.so #12 0x0061d874 in ev_loop () from /usr/local/Squeezebox/CPAN/arch/5.10/i386-linux-thread-multi/auto/EV/EV.so #13 0x0061e2fd in XS_EV_loop () from /usr/local/Squeezebox/CPAN/arch/5.10/i386-linux-thread-multi/auto/EV/EV.so #14 0x080a752f in Perl_pp_entersub () #15 0x080a05be in Perl_runops_standard () #16 0x0809ebd7 in perl_run () #17 0x08060626 in main ()
Looks like a pattern: after removing the above file SC continued happily. Until it hit another GIF file.
Created attachment 5569 [details] another GIF killing SC artwork resizing
Crashed again on the next GIF file.
Heh... and after wiping all GIFs it still crashed on a .jpg - which turned out to be a GIF!
Still not limited to GIFs it seems: after removing all GIFs the scan has successfully finished. But when I opened the web UI SC crashed as it started loading the current artwork. I guess this is just my system or we'd have more complaints :-(. But still: a week ago this still worked. And my installation didn't change since but for SC.
Downgrading to DBD::mysql 3.0002 fixes this issue. *** This bug has been marked as a duplicate of bug 13252 ***