Bugzilla – Bug 1064
Server crash when browsing: FLAC title tag?
Last modified: 2011-03-16 04:39:18 UTC
SlimServer Version: 6.0b1 - r2447 If I browse to an album where one of the (FLAC) tracks contains a subscript (UTF-8) in the TITLE tag, the server crashes. TITLE=SeOCl₂ 2005-03-12 23:08:09.7662 Got /mnt/NitroAV/MusicLib/FLAC/Gas/gas0095/6%20SeOCl---.flac from file url file:///mnt/NitroAV/MusicLib/FLAC/Gas/gas0095/6%20SeOCl---.flac 2005-03-12 23:08:09.7665 extracted: /mnt/NitroAV/MusicLib/FLAC/Gas/gas0095/6 SeOCl---.flac from file:///mnt/NitroAV/MusicLib/FLAC/Gas/gas0095/6%20SeOCl---.flac 2005-03-12 23:08:09.7666 isFile(/mnt/NitroAV/MusicLib/FLAC/Gas/gas0095/6 SeOCl---.flac) == 1 2005-03-12 23:08:09.7668 Got /mnt/NitroAV/MusicLib/FLAC/Gas/gas0095/6%20SeOCl---.flac from file url file:///mnt/NitroAV/MusicLib/FLAC/Gas/gas0095/6%20SeOCl---.flac 2005-03-12 23:08:09.7670 extracted: /mnt/NitroAV/MusicLib/FLAC/Gas/gas0095/6 SeOCl---.flac from file:///mnt/NitroAV/MusicLib/FLAC/Gas/gas0095/6%20SeOCl---.flac 2005-03-12 23:08:09.7672 Got /mnt/NitroAV/MusicLib/FLAC/Gas/gas0095/6%20SeOCl---.flac from file url file:///mnt/NitroAV/MusicLib/FLAC/Gas/gas0095/6%20SeOCl---.flac 2005-03-12 23:08:09.7674 extracted: /mnt/NitroAV/MusicLib/FLAC/Gas/gas0095/6 SeOCl---.flac from file:///mnt/NitroAV/MusicLib/FLAC/Gas/gas0095/6%20SeOCl---.flac 2005-03-12 23:08:09.7693 Got /mnt/NitroAV/MusicLib/FLAC/Gas/gas0095/6%20SeOCl---.flac from file url file:///mnt/NitroAV/MusicLib/FLAC/Gas/gas0095/6%20SeOCl---.flac 2005-03-12 23:08:09.7696 extracted: /mnt/NitroAV/MusicLib/FLAC/Gas/gas0095/6 SeOCl---.flac from file:///mnt/NitroAV/MusicLib/FLAC/Gas/gas0095/6%20SeOCl---.flac 2005-03-12 23:08:09.7698 Got /mnt/NitroAV/MusicLib/FLAC/Gas/gas0095/6%20SeOCl---.flac from file url file:///mnt/NitroAV/MusicLib/FLAC/Gas/gas0095/6%20SeOCl---.flac 2005-03-12 23:08:09.7700 extracted: /mnt/NitroAV/MusicLib/FLAC/Gas/gas0095/6 SeOCl---.flac from file:///mnt/NitroAV/MusicLib/FLAC/Gas/gas0095/6%20SeOCl---.flac
Good album. :) I'll take a look. Thanks. Could you try with the latest nightly build?
Jeff - where is the actual crash happening? I've tried to replicate it, but have been unable to.
Dan - I just updated to svn 2458 and get the same results. From SB, if I Browse Music->Browse Artists->Gas->gas0095 and then scroll through tracks 1-5 I have no problem. As soon as I scroll to track 6, the server crashes. If I browse through the web interface, as soon as I select the "gas0095" album link the server crashes. In both cases, nothing is playing. It's quite repeatable here.
Could you upload that track to ftp://electricrain.com/incoming/ Thanks.
Done. Uploaded to incoming/SlimBug1064.tar.
Jeff - what is the actual server crash? I'm not able to reproduce, even with your .flac file. Could you upload your slimserversql.db file as well? Either to ftp or to this bug. Thanks.
Dan - I've uploaded the DB file and journal to ElectricRain as SlimBug1064_DB.tar (it's >13Mb). I turned on all server logging, but didn't get much more than what I originally posted. However, looking in the system metalog file I see: Mar 13 11:14:36 [kernel] slimserver.pl[16176]: segfault at 00000000005fefff rip 000000000048854d rsp 0000007fbfffec70 error 4 So is this a Perl config problem? The CPAN modules I have installed are: Compress::Zlib -- 1.34 DBD::SQLite -- 1.08 DBI -- 1.46 I notice the Zlib module is a higher rev than what is on svn.slimdevices.com. I know DBI-1.47 causes problems. I can try removing 1.34 of Zlib and installing 1.33 if you think that may be it. bash-2.05b$ perl -V Summary of my perl5 (revision 5 version 8 subversion 5) configuration: Platform: osname=linux, osvers=2.6.9-gentoo-r4, archname=x86_64-linux uname='linux tlaloc 2.6.9-gentoo-r4 #3 thu nov 25 11:18:01 cst 2004 x86_64 amd opteron(tm) processor 144 authenticamd gnulinux ' config_args='-des -Darchname=x86_64-linux -Dcccdlflags=-fPIC -Dccdlflags=-rdynamic -Dcc=gcc -Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr -Dlocincpth= -Doptimize=-march=k8 -O2 -pipe -Duselargefiles -Dd_semctl_semun -Dscriptdir=/usr/bin -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dinstallman1dir=/usr/share/man/man1 -Dinstallman3dir=/var/tmp/portage/perl-5.8.5-r2/image//usr/share/man/man3 -Dman1ext=1 -Dman3ext=3pm -Dinc_version_list=5.8.2 5.8.2/x86_64-linux 5.8.4 5.8.4/x86_64-linux -Dcf_by=Gentoo -Ud_csh -Di_ndbm -Di_gdbm -Di_db' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=define use64bitall=define uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags ='-fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-march=k8 -O2 -pipe', cppflags='-DPERL5 -fno-strict-aliasing -pipe' ccversion='', gccversion='3.4.3 (Gentoo Linux 3.4.3, ssp-3.4.3-0, pie-8.7.6.6)', gccosandvers='' intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='gcc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lpthread -lnsl -lndbm -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc libc=/lib/libc-2.3.4.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='2.3.4' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic' cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: USE_64_BIT_INT USE_64_BIT_ALL USE_LARGE_FILES Built under linux Compiled at Dec 12 2004 11:09:22 @INC: /etc/perl /usr/lib/perl5/site_perl/5.8.5/x86_64-linux /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.4/x86_64-linux /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.4/x86_64-linux /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.5/x86_64-linux /usr/lib/perl5/5.8.5 /usr/local/lib/site_perl /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.4/x86_64-linux
Jeff - you are one of the few people who is running Gentoo + Opteron, we don't have that in house. However - I just put up a program to pull down the relevant tarballs, and put them in the right place. Could you try it out? http://svn.slimdevices.com/*checkout*/trunk/server/Bin/build-perl-modules.pl
Jeff - I'm not able to reproduce this, even with your DB file. So I'm pretty sure it's something specific to your environment.
Created attachment 332 [details] Perl modules for x86_64 Linux Dan - I ran the script and am attaching the resulting archive. Unfortunately, I still get a segfault from slimserver.pl when I try to access that FLAC file. :(
This appears to be a problem with Perl on my machine. Will follow up on this bug if I resolve it. Kudos to Dan for going above-and-beyond to try to resolve it!