Bugzilla – Bug 16638
Scanner segfaults on some mp3's
Last modified: 2010-11-12 04:36:08 UTC
Running squeezeboxserver_scanner segfaults one certain mp3 files. Removing the mp3 files allows the scanner to complete the job just fine. I'm using iTunes scanning. This is the stacktrace I get out of gdb (command line gdb --args perl -w /usr/sbin/squeezeboxserver-scanner --prefsdir=/var/lib/squeezeboxserver/prefs --logconfig=/var/lib/squeezeboxserver/prefs/log.conf --itunes --priority=0 --logdir=/var/log/squeezeboxserver/ --rescan --cleanup --debug scan=INFO,artwork=ERROR,scan.import=DEBUG,scan.scanner=DEBUG,plugin.itunes=DEBUG) (gdb) bt #0 0x00007fd97dfbc0e0 in strlen () from /lib/libc.so.6 #1 0x00007fd97e9e2780 in Perl_newSVpv () from /usr/lib/libperl.so.5.8 #2 0x00007fd97a63c50f in _id3_parse_v2_frame_data () from /usr/share/squeezeboxserver/CPAN/arch/5.8/x86_64-linux-thread-multi/auto/Audio/Scan/Scan.so #3 0x00007fd97a63d2ed in _id3_parse_v2_frame () from /usr/share/squeezeboxserver/CPAN/arch/5.8/x86_64-linux-thread-multi/auto/Audio/Scan/Scan.so #4 0x00007fd97a63dbe1 in _id3_parse_v2 () from /usr/share/squeezeboxserver/CPAN/arch/5.8/x86_64-linux-thread-multi/auto/Audio/Scan/Scan.so #5 0x00007fd97a63df26 in parse_id3 () from /usr/share/squeezeboxserver/CPAN/arch/5.8/x86_64-linux-thread-multi/auto/Audio/Scan/Scan.so #6 0x00007fd97a62588b in _scan () from /usr/share/squeezeboxserver/CPAN/arch/5.8/x86_64-linux-thread-multi/auto/Audio/Scan/Scan.so #7 0x00007fd97a625cd0 in XS_Audio__Scan_scan () from /usr/share/squeezeboxserver/CPAN/arch/5.8/x86_64-linux-thread-multi/auto/Audio/Scan/Scan.so #8 0x00007fd97e9d42b3 in Perl_pp_entersub () from /usr/lib/libperl.so.5.8 #9 0x00007fd97e9d2b1e in Perl_runops_standard () from /usr/lib/libperl.so.5.8 #10 0x00007fd97ea0353b in ?? () from /usr/lib/libperl.so.5.8 #11 0x00007fd97e9d2b1e in Perl_runops_standard () from /usr/lib/libperl.so.5.8 #12 0x00007fd97e97c3d9 in Perl_call_sv () from /usr/lib/libperl.so.5.8 #13 0x00007fd97c4206d1 in ?? () from /usr/share/squeezeboxserver/CPAN/arch/5.8/x86_64-linux-thread-multi/auto/XML/Parser/Expat/Expat.so #14 0x00007fd97c4251d6 in ?? () from /usr/share/squeezeboxserver/CPAN/arch/5.8/x86_64-linux-thread-multi/auto/XML/Parser/Expat/Expat.so #15 0x00007fd97c423c7d in ?? () from /usr/share/squeezeboxserver/CPAN/arch/5.8/x86_64-linux-thread-multi/auto/XML/Parser/Expat/Expat.so #16 0x00007fd97c422f80 in XML_ParseBuffer () from /usr/share/squeezeboxserver/CPAN/arch/5.8/x86_64-linux-thread-multi/auto/XML/Parser/Expat/Expat.so #17 0x00007fd97c414572 in ?? () from /usr/share/squeezeboxserver/CPAN/arch/5.8/x86_64-linux-thread-multi/auto/XML/Parser/Expat/Expat.so #18 0x00007fd97c414efa in XS_XML__Parser__Expat_ParseStream () from /usr/share/squeezeboxserver/CPAN/arch/5.8/x86_64-linux-thread-multi/auto/XML/Parser/Expat/Expat.so #19 0x00007fd97e9d42b3 in Perl_pp_entersub () from /usr/lib/libperl.so.5.8 #20 0x00007fd97e9d2b1e in Perl_runops_standard () from /usr/lib/libperl.so.5.8 #21 0x00007fd97e97cf1f in perl_run () from /usr/lib/libperl.so.5.8 #22 0x00000000004018cc in main ()
try running mp3val, it may reveal flaws sbs needs to handle better. also, do you embed the artwork? what tags does mp3tag/puddletag show?
evinyatar@kyros /mnt/store/Public/Music/iTunes Media/Music/Compilations/ID&T Top 500 $ tail /var/log/squeezeboxserver/scanner.log [...] [10-11-12 10:29:03.2764] Slim::Plugin::iTunes::Common::normalize_location (363) Normalized file://localhost/C:/Users/Evinyatar/Music/iTunes/iTunes%20Media/Music/Compilations/ID&T%20Top%20500/393%20Money%20Talks.mp3 to file:///mnt/store/Public/Music/iTunes%20Media/Music/Compilations/ID&T%20Top%20500/393%20Money%20Talks.mp3 [10-11-12 10:29:03.2776] Slim::Plugin::iTunes::Importer::handleTrack (358) Got a track named Money Talks location: file:///mnt/store/Public/Music/iTunes%20Media/Music/Compilations/ID&T%20Top%20500/393%20Money%20Talks.mp3 evinyatar@kyros /mnt/store/Public/Music/iTunes Media/Music/Compilations/ID&T Top 500 $ mp3val 393\ Money\ Talks.mp3 Analyzing file "393 Money Talks.mp3"... INFO: "/mnt/store/Public/Music/iTunes Media/Music/Compilations/ID&T Top 500/393 Money Talks.mp3": 9199 MPEG frames (MPEG 1 Layer III), +ID3v1+ID3v2, CBR Done! Mp3Tag shows: Version: ID3v2.4 (ID3v1 ID3v2.4) Title: Money Talks Extended tags: ALBUM: ID&T Top 500 ARTIST: Adventures of Stevie V ASNPLAYCNT: 1 BPM: 121 ITUNESCOMPILATION: 1 POPULARIMETER: traktor@native-instruments.de|255|0 TITLE: Money Talks TRACK: 393/0
Removing the popularimeter tag fixed it. This tag is automatically added by Traktor so it'll keep coming back. A fix would be nice :)
(In reply to comment #3) > Removing the popularimeter tag fixed it. This tag is automatically added by > Traktor so it'll keep coming back. A fix would be nice :) Actually, just resaving the file using MP3tag fixed it. Resaving using iTunes didn't work.