GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/mythtranscode...Reading symbols from /usr/lib/debug/usr/bin/mythtranscode...done.
done.
(gdb) handle SIG33 pass nostop noprint
Signal        Stop	Print	Pass to program	Description
SIG33         No	No	Yes		Real-time event 33
(gdb) set pagination 0
(gdb) run  --profile autodetect --honorcutlist --chanid 1006 --starttime 20110320222627 --fifodir /var/tmp/mythnuv2mkvDebugtest
Starting program: /usr/bin/mythtranscode --profile autodetect --honorcutlist --chanid 1006 --starttime 20110320222627 --fifodir /var/tmp/mythnuv2mkvDebugtest
[Thread debugging using libthread_db enabled]
2011-03-20 22:34:41.177 Using runtime prefix = /usr
2011-03-20 22:34:41.177 Using configuration directory = /home/media/.mythtv
2011-03-20 22:34:41.177 Empty LocalHostName.
[New Thread 0xb7ea3b70 (LWP 17747)]
[New Thread 0xb76a2b70 (LWP 17749)]
[Thread 0xb76a2b70 (LWP 17749) exited]
2011-03-20 22:34:41.409 New DB connection, total: 1
2011-03-20 22:34:41.417 Closing DB connection named 'DBManager0'
2011-03-20 22:34:41.436 Enabled verbose msgs: important
2011-03-20 22:34:41.730 Using protocol version 63
[New Thread 0xb76a2b70 (LWP 17750)]
[New Thread 0xb6b43b70 (LWP 17751)]
[New Thread 0xb31fab70 (LWP 17752)]
[New Thread 0xb29f9b70 (LWP 17753)]
[New Thread 0xb2160b70 (LWP 17754)]

Program received signal SIGFPE, Arithmetic exception.
0x0806e991 in AudioReencodeBuffer::AddData (this=0xb6c00480, buffer=0xb6b44020, len=4608, timecode=90323663) at transcode.cpp:109
109	transcode.cpp: No such file or directory.
	in transcode.cpp
(gdb) backtrace full
#0  0x0806e991 in AudioReencodeBuffer::AddData (this=0xb6c00480, buffer=0xb6b44020, len=4608, timecode=90323663) at transcode.cpp:109
        freebuf = 512000
#1  0x006c5e7f in AudioPlayer::AddAudioData (this=0x81528e8, buffer=0xb6b44020 "", len=4608, timecode=90323663) at audioplayer.cpp:366
        samplesize = 4
#2  0x00735973 in AvFormatDecoder::ProcessAudioPacket (this=0xb6c01088, curstream=0xb6c100a0, pkt=0xb6c21d30, decodetype=kDecodeAV) at avformatdecoder.cpp:4138
        reselectAudioTrack = false
        wasDual = false
        isDual = false
        already_decoded = false
        temppts = 90323663
        ctx = 0xb6c10280
        pts = 90323663
        ret = 768
        audSubIdx = -1
        tmp_pkt = {pts = -5277623718263057760, dts = -5277511296251012905, data = 0xb6c28030 "\377\374", <incomplete sequence \304>, size = 768, stream_index = -1228792508, flags = -1228767184, duration = 768, destruct = 0xe488acff, priv = 0x1, pos = 8129129727, convergence_duration = 270156}
        data_size = 4608
        firstloop = true
        audIdx = 1
#3  0x00737853 in AvFormatDecoder::GetFrame (this=0xb6c01088, decodetype=kDecodeAV) at avformatdecoder.cpp:4427
        curstream = 0xb6c100a0
        codec_type = AVMEDIA_TYPE_AUDIO
        pkt = 0xb6c21d30
        have_err = false
        storevideoframes = true
        has_video = true
#4  0x006b9f34 in MythPlayer::TranscodeGetNextFrame (this=0x813a740, dm_iter=..., did_ff=@0xbfffefb0, is_key=@0xbffff339, honorCutList=true) at mythplayer.cpp:4148
        lastDecodedFrameNumber = 0
#5  0x0806dc23 in Transcode::TranscodeFile (this=0x81344d8, inputname=..., outputname=..., profileName=..., honorCutList=true, framecontrol=false, jobID=-1, fifodir=..., deleteMap=...) at transcode.cpp:799
        video_frame_rate = 25
        newWidth = 720
        lastKeyFrame = 0
        is_key = false
        scontext = 0x0
        audioFrame = 0
        new_frame_count = 270
        copyvideo = false
        vidFrameTime = 40
        first_loop = true
        newFrame = 0xb2161008 ""
        imageOut = {data = {0xffff <Address 0xffff out of bounds>, 0x0, 0x0, 0x1 <Address 0x1 out of bounds>}, linesize = {65535, 0, -1073807360, 1}}
        video_aspect = 1.77777779
        did_ff = 0
        lasttimecode = 0
        encodingType = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 243}, alloc = 0, size = 0, data = 0x388a47a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 54}, alloc = 0, size = 0, data = 0x388a48e, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0xb6c11010, static codecForCStrings = 0x0}
        vidsetting = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 243}, alloc = 0, size = 0, data = 0x388a47a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 54}, alloc = 0, size = 0, data = 0x388a48e, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x388a468, static codecForCStrings = 0x0}
        buf_size = {wd = 720, ht = 576}
        vidSize = 622080
        dm_iter = {i = 0x0}
        videoOutput = 0xb6c1c5f8
        imageIn = {data = {0xffff <Address 0xffff out of bounds>, 0x0, 0xbfff0000 "", 0x1 <Address 0x1 out of bounds>}, linesize = {65535, 0, -1073807360, 1}}
        curtime = {d = {d = 0xb6c1bc58}}
        arb = 0xb6c00480
        copyaudio = false
        frame = {codec = FMT_YV12, buf = 0xb2161008 "", width = 720, height = 576, bpp = -1073746448, size = 622080, frameNumber = 1, timecode = -4611705758097063880, disp_timecode = -4611705823595336184, priv = {0xbfffedf8 "\016\001", 0xbfffedf4 "", 0xbfffedf0 "", 0xbfffedec "@\002"}, qscale_table = 0x3a35f9c "\205\300\211\307\017\204\220", qstride = 104, interlaced_frame = -1073746032, top_field_first = -1073746536, repeat_pict = 1, forcekey = 65535, pitches = {0, -1073807360, 1}, offsets = {-1, -589496321, 0}, pix_fmt = 1}
        forceKeyFrames = false
        totalAudio = 0
        dropvideo = 0
        timecodeOffset = 0
        rateTimeConv = 0
        audsetting = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 243}, alloc = 0, size = 0, data = 0x388a47a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 54}, alloc = 0, size = 0, data = 0x388a48e, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x388a468, static codecForCStrings = 0x0}
        writekeyframe = true
        statustime = {d = {d = 0x812a518}}
        total_frame_count = 270
        video_width = 720
        video_height = 576
        num_keyframes = 0
        audioframesize = 5
        audioOutput = 0xb6c00480
        vidfilters = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 243}, alloc = 0, size = 0, data = 0x388a47a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 54}, alloc = 0, size = 0, data = 0x388a48e, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x388a468, static codecForCStrings = 0x0}
        newHeight = 576
        curFrameNum = 0
        wait_recover = 0
        flagTime = {mds = 81282029}
#6  0x08057bbe in main (argc=10, argv=0xbffff764) at main.cpp:642
        startts = {d = {d = 0x80d8a18}}
        useCutlist = true
        mpeg2 = false
        isVideo = 0
        pginfo = 0x8134dc8
        chanid = 1006
        keyframesonly = false
        binname = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 243}, alloc = 0, size = 0, data = 0x388a47a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 54}, alloc = 0, size = 0, data = 0x388a48e, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x80f99a8, static codecForCStrings = 0x0}
        update_index = 1
        infile = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 243}, alloc = 0, size = 0, data = 0x388a47a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 54}, alloc = 0, size = 0, data = 0x388a48e, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x81339e8, static codecForCStrings = 0x0}
        profilename = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 243}, alloc = 0, size = 0, data = 0x388a47a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 54}, alloc = 0, size = 0, data = 0x388a48e, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x80f9a40, static codecForCStrings = 0x0}
        showprogress = false
        settingsOverride = {{d = 0x388a420, e = 0x388a420}}
        a = <incomplete type>
        starttime = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 243}, alloc = 0, size = 0, data = 0x388a47a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 54}, alloc = 0, size = 0, data = 0x388a48e, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x81023a8, static codecForCStrings = 0x0}
        build_index = false
        found_starttime = 1
        transcode = 0x81344d8
        result = 0
        outfile = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 243}, alloc = 0, size = 0, data = 0x388a47a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 54}, alloc = 0, size = 0, data = 0x388a48e, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x8134ef0, static codecForCStrings = 0x0}
        found_chanid = 1
        exitcode = 61985784
        fifodir = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 243}, alloc = 0, size = 0, data = 0x388a47a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 54}, alloc = 0, size = 0, data = 0x388a48e, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x81023e0, static codecForCStrings = 0x0}
        jobID = -1
        fifosync = false
        finfo = {d_ptr = {d = 0x80f9a88}}
        found_infile = 0
        jobType = 0
        otype = 0
        deleteMap = {{d = 0xb6c1ba00, e = 0xb6c1ba00}}
        posMap = {{d = 0x388a420, e = 0x388a420}}
(gdb) info registers
eax            0x1200	4608
ecx            0xfeadfe5c	-22151588
edx            0x0	0
ebx            0x80a0ff4	134877172
esp            0xbfffe360	0xbfffe360
ebp            0xbfffe3a8	0xbfffe3a8
esi            0x806e850	134670416
edi            0x1200	4608
eip            0x806e991	0x806e991 <AudioReencodeBuffer::AddData(void*, int, long long)+321>
eflags         0x210246	[ PF ZF IF RF ID ]
cs             0x73	115
ss             0x7b	123
ds             0x7b	123
es             0x7b	123
fs             0x0	0
gs             0x33	51
(gdb) x/16i $pc
=> 0x806e991 <_ZN19AudioReencodeBuffer7AddDataEPvix+321>:	idivl  -0x2c(%ebp)
   0x806e994 <_ZN19AudioReencodeBuffer7AddDataEPvix+324>:	imul   $0x3e8,%eax,%eax
   0x806e99a <_ZN19AudioReencodeBuffer7AddDataEPvix+330>:	mov    0x8(%ebp),%edx
   0x806e99d <_ZN19AudioReencodeBuffer7AddDataEPvix+333>:	mov    0x860(%edx),%edx
   0x806e9a3 <_ZN19AudioReencodeBuffer7AddDataEPvix+339>:	mov    %edx,-0x2c(%ebp)
   0x806e9a6 <_ZN19AudioReencodeBuffer7AddDataEPvix+342>:	mov    %eax,%edx
   0x806e9a8 <_ZN19AudioReencodeBuffer7AddDataEPvix+344>:	sar    $0x1f,%edx
   0x806e9ab <_ZN19AudioReencodeBuffer7AddDataEPvix+347>:	idivl  -0x2c(%ebp)
   0x806e9ae <_ZN19AudioReencodeBuffer7AddDataEPvix+350>:	mov    %eax,%edx
   0x806e9b0 <_ZN19AudioReencodeBuffer7AddDataEPvix+352>:	sar    $0x1f,%edx
   0x806e9b3 <_ZN19AudioReencodeBuffer7AddDataEPvix+355>:	add    -0x20(%ebp),%eax
   0x806e9b6 <_ZN19AudioReencodeBuffer7AddDataEPvix+358>:	adc    -0x1c(%ebp),%edx
   0x806e9b9 <_ZN19AudioReencodeBuffer7AddDataEPvix+361>:	mov    0x8(%ebp),%ecx
   0x806e9bc <_ZN19AudioReencodeBuffer7AddDataEPvix+364>:	mov    %eax,0x864(%ecx)
   0x806e9c2 <_ZN19AudioReencodeBuffer7AddDataEPvix+370>:	mov    %edx,0x868(%ecx)
   0x806e9c8 <_ZN19AudioReencodeBuffer7AddDataEPvix+376>:	mov    0x8(%ebp),%eax
(gdb) thread apply all backtrace

Thread 8 (Thread 0xb2160b70 (LWP 17754)):
#0  0x0012d422 in __kernel_vsyscall ()
#1  0x03a5dce6 in nanosleep () at ../sysdeps/unix/syscall-template.S:82
#2  0x03a8d44c in usleep (useconds=1000) at ../sysdeps/unix/sysv/linux/usleep.c:33
#3  0x006b0ad4 in MythPlayer::DecoderLoop (this=0x813a740, pause=true) at mythplayer.cpp:2817
#4  0x006962ce in DecoderThread::run (this=0xb6c22600) at mythplayer.cpp:98
#5  0x0367332e in ?? () from /usr/lib/libQtCore.so.4
#6  0x025b996e in start_thread (arg=0xb2160b70) at pthread_create.c:300
#7  0x03a93a4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 7 (Thread 0xb29f9b70 (LWP 17753)):
#0  0x0012d422 in __kernel_vsyscall ()
#1  0x025be015 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0x0091ed82 in FIFOWriter::FIFOWriteThread (this=0xb6c27ef8) at fifowriter.cpp:142
#3  0x0091ecd3 in FIFOWriter::FIFOStartThread (param=0xb6c27ef8) at fifowriter.cpp:128
#4  0x025b996e in start_thread (arg=0xb29f9b70) at pthread_create.c:300
#5  0x03a93a4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 6 (Thread 0xb31fab70 (LWP 17752)):
#0  0x0012d422 in __kernel_vsyscall ()
#1  0x025be015 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0x0091ed82 in FIFOWriter::FIFOWriteThread (this=0xb6c27ef8) at fifowriter.cpp:142
#3  0x0091ecd3 in FIFOWriter::FIFOStartThread (param=0xb6c27ef8) at fifowriter.cpp:128
#4  0x025b996e in start_thread (arg=0xb31fab70) at pthread_create.c:300
#5  0x03a93a4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 5 (Thread 0xb6b43b70 (LWP 17751)):
#0  0x0012d422 in __kernel_vsyscall ()
#1  0x03a8c971 in select () at ../sysdeps/unix/syscall-template.S:82
#2  0x017c95e8 in MythSocketThread::run (this=0x80c7bb8) at mythsocketthread.cpp:257
#3  0x0367332e in ?? () from /usr/lib/libQtCore.so.4
#4  0x025b996e in start_thread (arg=0xb6b43b70) at pthread_create.c:300
#5  0x03a93a4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 4 (Thread 0xb76a2b70 (LWP 17750)):
#0  0x0012d422 in __kernel_vsyscall ()
#1  0x025be342 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:179
#2  0x0367420f in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0x036682eb in ?? () from /usr/lib/libQtCore.so.4
#4  0x0367332e in ?? () from /usr/lib/libQtCore.so.4
#5  0x025b996e in start_thread (arg=0xb76a2b70) at pthread_create.c:300
#6  0x03a93a4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xb7ea3b70 (LWP 17747)):
#0  0x0012d422 in __kernel_vsyscall ()
#1  0x025be342 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:179
#2  0x03672c1e in ?? () from /usr/lib/libQtCore.so.4
#3  0x03672cdd in QThread::usleep(unsigned long) () from /usr/lib/libQtCore.so.4
#4  0x01824a97 in MythSystemReaper::run (this=0x8102fc0) at mythsystem.cpp:76
#5  0x0367332e in ?? () from /usr/lib/libQtCore.so.4
#6  0x025b996e in start_thread (arg=0xb7ea3b70) at pthread_create.c:300
#7  0x03a93a4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb7fd1720 (LWP 17742)):
#0  0x0806e991 in AudioReencodeBuffer::AddData (this=0xb6c00480, buffer=0xb6b44020, len=4608, timecode=90323663) at transcode.cpp:109
#1  0x006c5e7f in AudioPlayer::AddAudioData (this=0x81528e8, buffer=0xb6b44020 "", len=4608, timecode=90323663) at audioplayer.cpp:366
#2  0x00735973 in AvFormatDecoder::ProcessAudioPacket (this=0xb6c01088, curstream=0xb6c100a0, pkt=0xb6c21d30, decodetype=kDecodeAV) at avformatdecoder.cpp:4138
#3  0x00737853 in AvFormatDecoder::GetFrame (this=0xb6c01088, decodetype=kDecodeAV) at avformatdecoder.cpp:4427
#4  0x006b9f34 in MythPlayer::TranscodeGetNextFrame (this=0x813a740, dm_iter=..., did_ff=@0xbfffefb0, is_key=@0xbffff339, honorCutList=true) at mythplayer.cpp:4148
#5  0x0806dc23 in Transcode::TranscodeFile (this=0x81344d8, inputname=..., outputname=..., profileName=..., honorCutList=true, framecontrol=false, jobID=-1, fifodir=..., deleteMap=...) at transcode.cpp:799
#6  0x08057bbe in main (argc=10, argv=0xbffff764) at main.cpp:642
(gdb) quite[K
A debugging session is active.

	Inferior 1 [process 17742] will be killed.

Quit anyway? (y or n) 