Bug 13245 - Artwork import segfaulting
: Artwork import segfaulting
Status: RESOLVED DUPLICATE of bug 13252
Product: Logitech Media Server
Classification: Unclassified
Component: Scanner
: 7.4.0
: PC RedHat Linux
: -- normal (vote)
: ---
Assigned To: Unassigned bug - please assign me!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-08-05 01:12 UTC by Michael Herger
Modified: 2009-08-05 13:59 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments
artwork file crashing SC (87.48 KB, image/gif)
2009-08-05 01:12 UTC, Michael Herger
Details
another GIF killing SC artwork resizing (100.43 KB, image/gif)
2009-08-05 01:15 UTC, Michael Herger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Herger 2009-08-05 01:12:32 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 ()
Comment 1 Michael Herger 2009-08-05 01:14:28 UTC
Looks like a pattern: after removing the above file SC continued happily. Until it hit another GIF file.
Comment 2 Michael Herger 2009-08-05 01:15:25 UTC
Created attachment 5569 [details]
another GIF killing SC artwork resizing
Comment 3 Michael Herger 2009-08-05 01:27:52 UTC
Crashed again on the next GIF file.
Comment 4 Michael Herger 2009-08-05 01:54:48 UTC
Heh... and after wiping all GIFs it still crashed on a .jpg - which turned  
out to be a GIF!
Comment 5 Michael Herger 2009-08-05 02:12:27 UTC
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.
Comment 6 Michael Herger 2009-08-05 13:59:09 UTC
Downgrading to DBD::mysql 3.0002 fixes this issue.

*** This bug has been marked as a duplicate of bug 13252 ***