id3v2 segfaults when specifying the tracknumber with either -T or --TRCK. I also tried using the -1 or -2 flags for only using v1 or v2 format. Specifying artist, song, album, year and genre seems to works fine. Reproducible: Always Steps to Reproduce: id3v2 -T 6 some_track.mp3 Actual Results: Segmentation fault Expected Results: set the tracknumber id3tag for the mp3 in v1 and v2 format Gentoo Base System version 1.4.3.10 Portage 2.0.49-r13-2 (default-alpha-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22) ================================================================= System uname: 2.4.22 alpha EV4 ACCEPT_KEYWORDS="alpha" AUTOCLEAN="yes" CFLAGS="-O2 -pipe " CHOST="alpha-unknown-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/confi g /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -pipe " DISTDIR="/mnt/gentoo/distfiles" FEATURES="ccache" GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo http://ftp.easynet.nl/mirror/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/mnt/gentoo/packages" PORTAGE_TMPDIR="/small/portage_tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="alpha crypt cups encode foomaticdb gif jpeg libg++ libwww mikmod motif ncurses oss pdflib png quicktime sdl spell truetype xml2 xmms xv zlib gdbm berkdb slang readline X gpm tcpd pam ssl perl python esd imlib oggvorbis opengl mozilla gnome gtk -kde -qt alsa -nls"
Which version of id3v2 are you using? If 0.1.7, can you please try 0.1.9? I run 'id3v2 -T 1 test.mp3' and it works fine. Granted I'm on an x86, so the only obvious differences are the arch and possibly version... but I'd like to eliminate the easy one first ;)
I'm using 0.1.9 on alpha: # id3v2 -T 1 test.mp3 Segmentation fault
I just emerged 0.1.7, same result, re-emerged 0.1.9, same result. By the way. I'm using media-libs/id3lib-3.8.3-r1 Furthermore, the versions of portage, gcc and glibc I'm using now also make no difference: sys-apps/portage-2.0.49-r21 sys-devel/gcc-3.3.2-r2 sys-libs/glibc-2.3.2-r9
I'll try to get access to alpha to test this, but in the mean time, could you please provide me with a bit of debugging info? Set your CFLAGS and CXXFLAGS to include '-g' and put 'nostrip' in FEATURES. re-emerge id3lib and id3v2. Get a backtrace of the problem: $ gdb id3v2 (gdb) set args -T 1 some_track.mp3 (gdb) run some SEGFAULT somewhere.c:someline (gdb) bt #4 ... #3 ... #2 ... #1 ... #0 ... Thanks.
$ gdb id3v2 GNU gdb 5.3 Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "alpha-unknown-linux-gnu"... (gdb) set args -T 1 test.mp3 (gdb) run Starting program: /usr/bin/id3v2 -T 1 test.mp3 Program received signal SIGSEGV, Segmentation fault. 0x0000020000325f08 in free () from /lib/libc.so.6.1 (gdb) bt #0 0x0000020000325f08 in free () from /lib/libc.so.6.1 #1 0x0000000120003f98 in main (argc=536848192, argv=0x11ffff818) at id3v2.cpp:433 (gdb)
unfortunately that bt doesn't really give me enough info to try to tackle the cause... I'll see if I can get access to an alpha to test this on...
I thought so... if there's something else I can do, just let me know!
Fixed in id3v2-0.1.9-r1.ebuild, thanks!