tagwriter seg fault

Jonas Sundström jonas at kirilla.com
Wed Feb 9 19:09:01 CET 2005


I get a segment violation when using the sample application like this:

tagwriter -a "" filename.mp3

Stack:
TagLib::ID3v2::Tag::removeFrame(TagLib::ID3v2::Frame *, bool):
TagLib::ID3v2::Tag::removeFrames(TagLib::ByteVector const &)
TagLib::ID3v2::Tag::setTextFrame(TagLib::ByteVector const &, 
TagLib::String const &) TagLib::ID3v2::Tag::setArtist(TagLib::String 
const &)
TagLib::MPEGTag::setArtist(TagLib::String const &)
main
_start


void ID3v2::Tag::removeFrame(Frame *frame, bool del)
{
  // remove the frame from the frame list
  FrameList::Iterator it = d->frameList.find(frame);
  d->frameList.erase(it);

  // ...and from the frame list map
  it = d->frameListMap[frame->frameID()].find(frame);
  d->frameListMap[frame->frameID()].erase(it);

  // ...and delete as desired
  if(del)
    delete *it;
}

Could it be a bug in TagLib?

(Built on BeOS R5, x86/P4, gcc 2.95.3-beos-041202.)

/Jonas Sundström.                   www.kirilla.com



More information about the taglib-devel mailing list