Menu

#205 Library crash reading tags

happens every time
open
nobody
5
2013-05-09
2011-09-22
Norman Gray
No

% id3info whistle.mp3
zsh: abort (core dumped) id3info whistle.mp3
% gdb /Data/tools/id3lib-3.8.3/bin/id3info /cores/core.56847
GNU gdb 6.3.50-20050815 (Apple version gdb-1515) (Sat Jan 15 08:33:48 UTC 2011)
Copyright 2004 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 "x86_64-apple-darwin"...Reading symbols for shared libraries ...... done

Reading symbols for shared libraries . done
Reading symbols for shared libraries ...... done
#0 0x00007fff8a2e90b6 in __kill ()
(gdb) where
#0 0x00007fff8a2e90b6 in __kill ()
#1 0x00007fff8a389997 in __abort ()
#2 0x00007fff8a36dff8 in __stack_chk_fail ()
#3 0x0000000100016ff1 in Mp3Info::Parse (this=0x100200bb0, reader=@0x13, mp3size=3095) at mp3_parse.cpp:566
#4 0x000000010001bd2e in ID3_TagImpl::ParseReader (this=0x1002000d0, reader=<value temporarily unavailable, due to optimizations>) at tag_parse.cpp:402
#5 0x000000010001c5aa in std::basic_ifstream<char, std::char_traits<char> >::close () at /usr/include/c++/4.2.1/fstream:214
#6 0x000000010001c5aa in ID3_TagImpl::ParseFile (this=0x1002000d0) at tag_parse.cpp:215
#7 0x00000001000183ca in ID3_TagImpl::GetPrependedBytes () at /Data/tools/000-Build/id3v2-0.1.12/id3lib-3.8.3/src/tag_impl.h:143
#8 0x00000001000183ca in ID3_TagImpl::Link (this=0x1002000d0, fileInfo=0x1002000c0 "whistle.mp3", tag_types=<value temporarily unavailable, due to optimizations>) at tag_file.cpp:145
#9 0x0000000100002e47 in main (argc=<value temporarily unavailable, due to optimizations>, argv=<value temporarily unavailable, due to optimizations>) at demo_info.cpp:343
(gdb)
% id3info --version
id3info 3.8.3
% mp3info -x whistle.mp3
whistle.mp3 does not have an ID3 1.x tag.
File: whistle.mp3
Media Type: MPEG 1.0 Layer III
Audio: Variable KB/s, 44KHz (mono)
Emphasis: none
CRC: No
Copyright: No
Original: Yes
Padding: No
Length: 0:01
%

The sample file (attached) is exported (with default settings) from Audacity 1.3.13, and appears to be true of any file exported from it.

I don't know whether the MP3 file is valid or not, but in either case, the id3lib library probably shouldn't crash.

This happens on OS X 10.6 -- I haven't tested it on other platforms.

This may be a duplicate of 1885053 (which is closed, but the last comment on which was a request for an example input file)

Discussion

  • Norman Gray

    Norman Gray - 2011-09-22

    Sample MP3 produced by Audacity

     
  • Norman Gray

    Norman Gray - 2011-09-22

    Oh, and I forgot to say: thanks for looking at this!

    Where are my manners -- sheesh!

    Norman

     
  • Alan Carre

    Alan Carre - 2013-05-09

    This seems like it's 2 years old and still open. I believe I know what causes this crash. I just spent 2 days tracking it down.

    But if nobody's listening (is anybody listening?) I will postpone posting the fix.

    • Alan
     

Log in to post a comment.