Using version 1.1alpha
I've been trying to write a python program that goes
through my collection of mp3s and oggs, and rearranges
the directory structure based on artist/album etc.
I seem to run into problems if I try to process lots at
a time. In this case, I got a segfault. Here's a trace
from gdb:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 10632)]
0x40d44548 in contentFrame::expandContent(std::string
const&) (this=0x8b7fd08, s=@0xaaaaaab0)
at stl_iterator.h:602
602 operator*() const { return *_M_current; }
Current language: auto; currently c++
(gdb) bt
#0 0x40d44548 in
contentFrame::expandContent(std::string const&)
(this=0x8b7fd08, s=@0xaaaaaab0)
at stl_iterator.h:602
#1 0x40d44f46 in contentFrame::setContent(std::string
const&) (this=0x55555570, s=@0x0)
at basic_string.h:358
#2 0x40d3e8c3 in id3Tag::fillFrame(ID3FrameID, char
const*, int) (this=0x8ab4f20, ID=ID3_TCON,
p=0x0, len=0) at id3tag.cpp:242
#3 0x40d3d9a3 in id3Tag::readV1Tag() (this=0x8ab4f20)
at basic_string.h:355
#4 0x40d3cf48 in id3Tag::readMain() (this=0x8ab4f20)
at id3tag.cpp:94
#5 0x40d3c663 in id3Tag (this=0x8ab4f20, n=0x0) at
id3tag.cpp:70
#6 0x40d43c17 in createID3Editor (filename=0x0) at
id3_if.cpp:40
#7 0x40cdb68f in createTagEditor(char const*) (
f=0x4021f994 "/data/Media/Sound/Albums/Nick Drake -
Time of No Reply/07 - Fly.mp3")
at stl_map.h:355
#8 0x40cd309a in sipDo_createTagEditor (sipArgs=0x0)
at src/tageditorcmodule.cpp:53
#9 0x080fde1a in PyCFunction_Call ()
#10 0x080ab824 in PyEval_CallObjectWithKeywords ()
#11 0x080a9bde in Py_MakePendingCalls ()
#12 0x080ab95d in PyEval_CallObjectWithKeywords ()
#13 0x080ab71c in PyEval_CallObjectWithKeywords ()
#14 0x080a9bde in Py_MakePendingCalls ()
#15 0x080ab95d in PyEval_CallObjectWithKeywords ()
#16 0x080ab71c in PyEval_CallObjectWithKeywords ()
#17 0x080a9bde in Py_MakePendingCalls ()
#18 0x080ab95d in PyEval_CallObjectWithKeywords ()
#19 0x080ab71c in PyEval_CallObjectWithKeywords ()
#20 0x080a9bde in Py_MakePendingCalls ()
#21 0x080aa76c in PyEval_EvalCodeEx ()
#22 0x080acf69 in PyEval_EvalCode ()
#23 0x080d90db in PyRun_FileExFlags ()
#24 0x080d888f in PyRun_SimpleFileExFlags ()
#25 0x08054e95 in Py_Main ()
#26 0x080549eb in main ()
I know that it had a problem extracting artist/album
info from this track.
It crashes in the same place every time if I run it
over my entire collection. If I run it just on this
directory of mp3s it's OK.
Perhaps it's just running out of memory or something?
Though I'd have hoped for something a little more
polite than a segv :)
Joe
Logged In: YES
user_id=603402
Since I speed up development of libtagedit only very lately (I struggled
and thought of dropping this project in favor of something else). I did not
have a look at this yet. In fact, I did not check the project page for quite
some time. Once I cleaned up the build system, I will make some intensive
tests whether it's possible to reproduce bugs while scanning of a large
amount of files. I'll try to use valgrind, too, to check if it sucks up to much
memory. Once I finished the tests, I will release a new 1.1 beta release,
which will hopefully not have this bug.