[mythtv] Bt of mythcommflag segfault with mpeg2 file
Oscar Carlsson
oscar.carlsson at home.se
Mon Feb 16 02:21:20 EST 2004
Hello Development,
here's something for you Isaac.. :) seems pretty short, but i hope it's
enough. let me know
mythtv at dragon mythtv $ gdb mythcommflag
GNU gdb 5.3
Copyright 2002 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 "i686-pc-linux-gnu"...
(gdb) run --chanid 3 --starttime 20040211203000 --force
Starting program: /usr/local/bin/mythcommflag --chanid 3 --starttime 20040211203000 --force
[New Thread 16384 (LWP 11598)]
MythTV Commercial Flagging, started at Mon Feb 16 08:16:45 2004
Flagging commercial breaks for:
ChanID Start Time Title Breaks
------ -------------- ----------------------------------------- ------
3 20040211203000 For love or money [New Thread 32769 (LWP 11601)]
[New Thread 16386 (LWP 11602)]
Input #0, mpeg, from '/var/video/3_20040211203000_20040211220000.nuv':
Stream #0.0: Video: mpeg2video, 720x576, 25.00 fps
Stream #0.1: Audio: mp2, 48000 Hz, stereo, 384 kb/s
Logo Search
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 11598)]
0x404a0dad in ff_mpegcontext_flush (s=0x8110d60) at mpegvideo.c:3595
3595 if(s->picture[i].data[0] && ( s->picture[i].type == FF_BUFFER_TYPE_INTERNAL
Current language: auto; currently c
(gdb) where
#0 0x404a0dad in ff_mpegcontext_flush (s=0x8110d60) at mpegvideo.c:3595
#1 0x405358cc in mpeg12_flush (avctx=0x0) at mpeg12.c:2742
#2 0x40499889 in avcodec_flush_buffers (avctx=0x806ff18) at utils.c:704
#3 0x4028360e in AvFormatDecoder::SeekReset() (this=0x806e688) at avformatdecoder.cpp:104
#4 0x40286f46 in AvFormatDecoder::DoFastForward(long long) (this=0x806e688, desiredFrame=1499) at avformatdecoder.cpp:1420
#5 0x401a92ed in NuppelVideoPlayer::DoFastForward() (this=0x806db48) at NuppelVideoPlayer.cpp:2183
#6 0x401a93ff in NuppelVideoPlayer::JumpToFrame(long long) (this=0x806db48, frame=1500) at NuppelVideoPlayer.cpp:2200
#7 0x401adb1d in NuppelVideoPlayer::FlagCommercials(bool, bool) (this=0x806db48, showPercentage=true, fullSpeed=true)
at NuppelVideoPlayer.cpp:3211
#8 0x0804be94 in FlagCommercials(QSqlDatabase*, QString, QString) (db=0x80644f0, chanid=
{static null = {static null = <same as static member of an already seen type>, d = 0x8053d80, static shared_null = 0x8053d80}, d = 0x805a750, static shared_null = 0x8053d80}, starttime=
{static null = {static null = <same as static member of an already seen type>, d = 0x8053d80, static shared_null = 0x8053d80}, d = 0x805a790, static shared_null = 0x8053d80}) at main.cpp:225
#9 0x0804d16e in main (argc=6, argv=0xbffff8e4) at main.cpp:422
#10 0x411f0dcc in __libc_start_main () from /lib/libc.so.6
(gdb) thread apply all bt full
Thread 3 (Thread 16386 (LWP 11602)):
#0 0x41283ef6 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#1 0x00000000 in ?? ()
No symbol table info available.
Thread 2 (Thread 32769 (LWP 11601)):
#0 0x412a9f2a in poll () from /lib/libc.so.6
No symbol table info available.
#1 0x410b2b6e in __pthread_manager () from /lib/libpthread.so.0
No symbol table info available.
#2 0x410b2dba in __pthread_manager_event () from /lib/libpthread.so.0
No symbol table info available.
Thread 1 (Thread 16384 (LWP 11598)):
#0 0x404a0dad in ff_mpegcontext_flush (s=0x8110d60) at mpegvideo.c:3595
i = 0
#1 0x405358cc in mpeg12_flush (avctx=0x0) at mpeg12.c:2742
s = (Mpeg1Context *) 0x0
#2 0x40499889 in avcodec_flush_buffers (avctx=0x806ff18) at utils.c:704
No locals.
#3 0x4028360e in AvFormatDecoder::SeekReset() (this=0x806e688) at avformatdecoder.cpp:104
enc = (AVCodecContext *) 0x806ff18
i = 0
buffer = (VideoFrame *) 0x806ff18
#4 0x40286f46 in AvFormatDecoder::DoFastForward(long long) (this=0x806e688, desiredFrame=1499) at avformatdecoder.cpp:1420
last_frame = 134976
needflush = true
pos_idx1 = 124
pos_idx2 = 124
pos_idx = 124
keyPos = 41928742
number = 1499
desiredKey = 1488
normalframes = 11
#5 0x401a92ed in NuppelVideoPlayer::DoFastForward() (this=0x806db48) at NuppelVideoPlayer.cpp:2183
number = 1499
desiredFrame = 1499
#6 0x401a93ff in NuppelVideoPlayer::JumpToFrame(long long) (this=0x806db48, frame=1500) at NuppelVideoPlayer.cpp:2200
exactstore = false
#7 0x401adb1d in NuppelVideoPlayer::FlagCommercials(bool, bool) (this=0x806db48, showPercentage=true, fullSpeed=true)
at NuppelVideoPlayer.cpp:3211
pixelsInMask = 1073827664
loop = 0
endFrame = 1750
---Type <return> to continue, or q <return> to quit---
counter = 0
sampleSpacing = 1
seekIncrement = 1500
mask = {"\fU", "ΝΏ"}
secs = 10
loops = 8
maxLoops = 12
seekFrame = 1500
comms_found = 0
percentage = 0
flagTime = {ds = 1073829032}
#8 0x0804be94 in FlagCommercials(QSqlDatabase*, QString, QString) (db=0x80644f0, chanid=
{static null = {static null = <same as static member of an already seen type>, d = 0x8053d80, static shared_null = 0x8053d80}, d = 0x805a750, static shared_null = 0x8053d80}, starttime=
{static null = {static null = <same as static member of an already seen type>, d = 0x8053d80, static shared_null = 0x8053d80}, d = 0x805a790, static shared_null = 0x8053d80}) at main.cpp:225
commDetectMethod = 4
blanks = {sh = 0x8064820}
program_info = (ProgramInfo *) 0x806d5d0
filename = {static null = {static null = <same as static member of an already seen type>, d = 0x8053d80,
static shared_null = 0x8053d80}, d = 0x8064bc8, static shared_null = 0x8053d80}
tmprbuf = (RingBuffer *) 0x806a230
nvp = (NuppelVideoPlayer *) 0x806db48
comms_found = 1091267879
#9 0x0804d16e in main (argc=6, argv=0xbffff8e4) at main.cpp:422
a = <incomplete type>
argpos = 6
chanid = {static null = {static null = <same as static member of an already seen type>, d = 0x8053d80,
static shared_null = 0x8053d80}, d = 0x805a750, static shared_null = 0x8053d80}
starttime = {static null = {static null = <same as static member of an already seen type>, d = 0x8053d80,
static shared_null = 0x8053d80}, d = 0x805a790, static shared_null = 0x8053d80}
time_now = 1076915805
all_recorded = 0
db = (struct QSqlDatabase *) 0x80644f0
#10 0x411f0dcc in __libc_start_main () from /lib/libc.so.6
No symbol table info available.
(gdb)
MVH
Oscar
More information about the mythtv-dev
mailing list