[mythtv] Mythmusic 0.15 segfault
Isaac Richards
ijr at po.cwru.edu
Sat May 29 00:16:32 EDT 2004
On Friday 28 May 2004 11:57 pm, Ken Bass wrote:
> On Fri, 28 May 2004, Isaac Richards wrote:
> > On Friday 28 May 2004 11:16 pm, Ken Bass wrote:
> > > Anyhow, mythmusic crashes when it is updating the database. I've
> > > recompiled with debug and the backtrace is below. For whatever reason,
> > > the FILE *input pointer is NULL. The ptr is not range checked and the
> > > call to 'fstat()' appears to be causing the segfault. At this point in
> > > the code, id3file is NULL.
> >
> > Hmm. Ok, well, I can certainly make it bail if it can't open the file,
> > there, but, why can't it open the file? It shouldn't be getting that far
> > with a un-openable filename.. Can you take a look at the value of
> > filename.local8bit()? See if it exists or whatnot?
>
> I must be doing something wrong. I ran under gdb and when it hit the
> segfault, I went up a frame and tried to 'p filename.local8bit()'. I'm
> getting 'Couldn't find method QString::local8bit' I'm use to C debugging,
> not C++ so maybe I'm doing something stupid. Any tips?
I'd just stick a:
cout << filename.local8bit() << endl;
before the call to fopen or whatnot. Easier than trying to convince gdb to
run the QString bits.
Isaac
More information about the mythtv-dev
mailing list