[mythtv] r8369 double free problem

Mark Spieth mark at dclabs.com.au
Fri Dec 23 21:21:40 EST 2005


greg, your patch to utils.c is not quite correct.
looks like extradata is freed by many modules but not set to NULL after the free so your catchall free can correctly work. I would suggest backing it out until this is fixed (lots of places). I played an avi to make this happen. 
cheers
mark

note line numbers in utils.c are not quite correct due to my own logging lines.
backtrace is
*** glibc detected *** double free or corruption (fasttop): 0x082fd300 ***

Program received signal SIGABRT, Aborted.
[Switching to Thread -1268995152 (LWP 10184)]
0xb60b77a7 in raise () from /lib/tls/libc.so.6
(gdb) bt
#0  0xb60b77a7 in raise () from /lib/tls/libc.so.6
#1  0xb60b904b in abort () from /lib/tls/libc.so.6
#2  0xb60ee005 in __fsetlocking () from /lib/tls/libc.so.6
#3  0xb60f4657 in malloc_usable_size () from /lib/tls/libc.so.6
#4  0xb60f4af2 in free () from /lib/tls/libc.so.6
#5  0xb712c122 in av_free (ptr=0x0) at mem.c:128
#6  0xb74e6358 in av_close_input_file (s=0x82fe790) at utils.c:2327
#7  0xb79a6a06 in AvFormatDecoder::CloseContext (this=0x82fa4b0) at avformatdecoder.cpp:246
#8  0xb79a66f8 in ~AvFormatDecoder (this=0x82fa4b0) at avformatdecoder.cpp:225
#9  0xb798e48b in NuppelVideoPlayer::SetDecoder (this=0x0, dec=0x27c8)
    at NuppelVideoPlayer.cpp:4842
#10 0xb7962a22 in ~NuppelVideoPlayer (this=0x82f6050) at NuppelVideoPlayer.cpp:216
#11 0xb7932b79 in TV::TeardownPlayer (this=0x82b8780) at tv_play.cpp:1270
#12 0xb792ef85 in TV::StopStuff (this=0x82b8780, stopRingBuffers=true, stopPlayers=true, 
    stopRecorders=false) at tv_play.cpp:1152
#13 0xb7928bc9 in TV::HandleStateChange (this=0x82b8780) at tv_play.cpp:893
#14 0xb7933cc6 in TV::RunTV (this=0x82b8780) at tv_play.cpp:1392
#15 0xb7932cee in TV::EventThread (param=0x0) at tv_play.cpp:1337
#16 0xb62b5cfd in start_thread () from /lib/tls/libpthread.so.0
#17 0xb615f13e in clone () from /lib/tls/libc.so.6

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20051224/39ee7e33/attachment.htm


More information about the mythtv-dev mailing list