Ticket #9675: gdb-mythtranscode.txt

File gdb-mythtranscode.txt, 17.2 KB (added by Kris McGrath <shiftybugger@…>, 15 years ago)

backtrace

Line 
1GNU gdb (GDB) 7.1-ubuntu
2Copyright (C) 2010 Free Software Foundation, Inc.
3License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
4This is free software: you are free to change and redistribute it.
5There is NO WARRANTY, to the extent permitted by law. Type "show copying"
6and "show warranty" for details.
7This GDB was configured as "i486-linux-gnu".
8For bug reporting instructions, please see:
9<http://www.gnu.org/software/gdb/bugs/>...
10Reading symbols from /usr/bin/mythtranscode...Reading symbols from /usr/lib/debug/usr/bin/mythtranscode...done.
11done.
12(gdb) handle SIG33 pass nostop noprint
13Signal Stop Print Pass to program Description
14SIG33 No No Yes Real-time event 33
15(gdb) set pagination 0
16(gdb) run --profile autodetect --honorcutlist --chanid 1006 --starttime 20110320222627 --fifodir /var/tmp/mythnuv2mkvDebugtest
17Starting program: /usr/bin/mythtranscode --profile autodetect --honorcutlist --chanid 1006 --starttime 20110320222627 --fifodir /var/tmp/mythnuv2mkvDebugtest
18[Thread debugging using libthread_db enabled]
192011-03-20 22:34:41.177 Using runtime prefix = /usr
202011-03-20 22:34:41.177 Using configuration directory = /home/media/.mythtv
212011-03-20 22:34:41.177 Empty LocalHostName.
22[New Thread 0xb7ea3b70 (LWP 17747)]
23[New Thread 0xb76a2b70 (LWP 17749)]
24[Thread 0xb76a2b70 (LWP 17749) exited]
252011-03-20 22:34:41.409 New DB connection, total: 1
262011-03-20 22:34:41.417 Closing DB connection named 'DBManager0'
272011-03-20 22:34:41.436 Enabled verbose msgs: important
282011-03-20 22:34:41.730 Using protocol version 63
29[New Thread 0xb76a2b70 (LWP 17750)]
30[New Thread 0xb6b43b70 (LWP 17751)]
31[New Thread 0xb31fab70 (LWP 17752)]
32[New Thread 0xb29f9b70 (LWP 17753)]
33[New Thread 0xb2160b70 (LWP 17754)]
34
35Program received signal SIGFPE, Arithmetic exception.
360x0806e991 in AudioReencodeBuffer::AddData (this=0xb6c00480, buffer=0xb6b44020, len=4608, timecode=90323663) at transcode.cpp:109
37109 transcode.cpp: No such file or directory.
38 in transcode.cpp
39(gdb) backtrace full
40#0 0x0806e991 in AudioReencodeBuffer::AddData (this=0xb6c00480, buffer=0xb6b44020, len=4608, timecode=90323663) at transcode.cpp:109
41 freebuf = 512000
42#1 0x006c5e7f in AudioPlayer::AddAudioData (this=0x81528e8, buffer=0xb6b44020 "", len=4608, timecode=90323663) at audioplayer.cpp:366
43 samplesize = 4
44#2 0x00735973 in AvFormatDecoder::ProcessAudioPacket (this=0xb6c01088, curstream=0xb6c100a0, pkt=0xb6c21d30, decodetype=kDecodeAV) at avformatdecoder.cpp:4138
45 reselectAudioTrack = false
46 wasDual = false
47 isDual = false
48 already_decoded = false
49 temppts = 90323663
50 ctx = 0xb6c10280
51 pts = 90323663
52 ret = 768
53 audSubIdx = -1
54 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}
55 data_size = 4608
56 firstloop = true
57 audIdx = 1
58#3 0x00737853 in AvFormatDecoder::GetFrame (this=0xb6c01088, decodetype=kDecodeAV) at avformatdecoder.cpp:4427
59 curstream = 0xb6c100a0
60 codec_type = AVMEDIA_TYPE_AUDIO
61 pkt = 0xb6c21d30
62 have_err = false
63 storevideoframes = true
64 has_video = true
65#4 0x006b9f34 in MythPlayer::TranscodeGetNextFrame (this=0x813a740, dm_iter=..., did_ff=@0xbfffefb0, is_key=@0xbffff339, honorCutList=true) at mythplayer.cpp:4148
66 lastDecodedFrameNumber = 0
67#5 0x0806dc23 in Transcode::TranscodeFile (this=0x81344d8, inputname=..., outputname=..., profileName=..., honorCutList=true, framecontrol=false, jobID=-1, fifodir=..., deleteMap=...) at transcode.cpp:799
68 video_frame_rate = 25
69 newWidth = 720
70 lastKeyFrame = 0
71 is_key = false
72 scontext = 0x0
73 audioFrame = 0
74 new_frame_count = 270
75 copyvideo = false
76 vidFrameTime = 40
77 first_loop = true
78 newFrame = 0xb2161008 ""
79 imageOut = {data = {0xffff <Address 0xffff out of bounds>, 0x0, 0x0, 0x1 <Address 0x1 out of bounds>}, linesize = {65535, 0, -1073807360, 1}}
80 video_aspect = 1.77777779
81 did_ff = 0
82 lasttimecode = 0
83 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}
84 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}
85 buf_size = {wd = 720, ht = 576}
86 vidSize = 622080
87 dm_iter = {i = 0x0}
88 videoOutput = 0xb6c1c5f8
89 imageIn = {data = {0xffff <Address 0xffff out of bounds>, 0x0, 0xbfff0000 "", 0x1 <Address 0x1 out of bounds>}, linesize = {65535, 0, -1073807360, 1}}
90 curtime = {d = {d = 0xb6c1bc58}}
91 arb = 0xb6c00480
92 copyaudio = false
93 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}
94 forceKeyFrames = false
95 totalAudio = 0
96 dropvideo = 0
97 timecodeOffset = 0
98 rateTimeConv = 0
99 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}
100 writekeyframe = true
101 statustime = {d = {d = 0x812a518}}
102 total_frame_count = 270
103 video_width = 720
104 video_height = 576
105 num_keyframes = 0
106 audioframesize = 5
107 audioOutput = 0xb6c00480
108 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}
109 newHeight = 576
110 curFrameNum = 0
111 wait_recover = 0
112 flagTime = {mds = 81282029}
113#6 0x08057bbe in main (argc=10, argv=0xbffff764) at main.cpp:642
114 startts = {d = {d = 0x80d8a18}}
115 useCutlist = true
116 mpeg2 = false
117 isVideo = 0
118 pginfo = 0x8134dc8
119 chanid = 1006
120 keyframesonly = false
121 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}
122 update_index = 1
123 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}
124 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}
125 showprogress = false
126 settingsOverride = {{d = 0x388a420, e = 0x388a420}}
127 a = <incomplete type>
128 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}
129 build_index = false
130 found_starttime = 1
131 transcode = 0x81344d8
132 result = 0
133 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}
134 found_chanid = 1
135 exitcode = 61985784
136 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}
137 jobID = -1
138 fifosync = false
139 finfo = {d_ptr = {d = 0x80f9a88}}
140 found_infile = 0
141 jobType = 0
142 otype = 0
143 deleteMap = {{d = 0xb6c1ba00, e = 0xb6c1ba00}}
144 posMap = {{d = 0x388a420, e = 0x388a420}}
145(gdb) info registers
146eax 0x1200 4608
147ecx 0xfeadfe5c -22151588
148edx 0x0 0
149ebx 0x80a0ff4 134877172
150esp 0xbfffe360 0xbfffe360
151ebp 0xbfffe3a8 0xbfffe3a8
152esi 0x806e850 134670416
153edi 0x1200 4608
154eip 0x806e991 0x806e991 <AudioReencodeBuffer::AddData(void*, int, long long)+321>
155eflags 0x210246 [ PF ZF IF RF ID ]
156cs 0x73 115
157ss 0x7b 123
158ds 0x7b 123
159es 0x7b 123
160fs 0x0 0
161gs 0x33 51
162(gdb) x/16i $pc
163=> 0x806e991 <_ZN19AudioReencodeBuffer7AddDataEPvix+321>: idivl -0x2c(%ebp)
164 0x806e994 <_ZN19AudioReencodeBuffer7AddDataEPvix+324>: imul $0x3e8,%eax,%eax
165 0x806e99a <_ZN19AudioReencodeBuffer7AddDataEPvix+330>: mov 0x8(%ebp),%edx
166 0x806e99d <_ZN19AudioReencodeBuffer7AddDataEPvix+333>: mov 0x860(%edx),%edx
167 0x806e9a3 <_ZN19AudioReencodeBuffer7AddDataEPvix+339>: mov %edx,-0x2c(%ebp)
168 0x806e9a6 <_ZN19AudioReencodeBuffer7AddDataEPvix+342>: mov %eax,%edx
169 0x806e9a8 <_ZN19AudioReencodeBuffer7AddDataEPvix+344>: sar $0x1f,%edx
170 0x806e9ab <_ZN19AudioReencodeBuffer7AddDataEPvix+347>: idivl -0x2c(%ebp)
171 0x806e9ae <_ZN19AudioReencodeBuffer7AddDataEPvix+350>: mov %eax,%edx
172 0x806e9b0 <_ZN19AudioReencodeBuffer7AddDataEPvix+352>: sar $0x1f,%edx
173 0x806e9b3 <_ZN19AudioReencodeBuffer7AddDataEPvix+355>: add -0x20(%ebp),%eax
174 0x806e9b6 <_ZN19AudioReencodeBuffer7AddDataEPvix+358>: adc -0x1c(%ebp),%edx
175 0x806e9b9 <_ZN19AudioReencodeBuffer7AddDataEPvix+361>: mov 0x8(%ebp),%ecx
176 0x806e9bc <_ZN19AudioReencodeBuffer7AddDataEPvix+364>: mov %eax,0x864(%ecx)
177 0x806e9c2 <_ZN19AudioReencodeBuffer7AddDataEPvix+370>: mov %edx,0x868(%ecx)
178 0x806e9c8 <_ZN19AudioReencodeBuffer7AddDataEPvix+376>: mov 0x8(%ebp),%eax
179(gdb) thread apply all backtrace
180
181Thread 8 (Thread 0xb2160b70 (LWP 17754)):
182#0 0x0012d422 in __kernel_vsyscall ()
183#1 0x03a5dce6 in nanosleep () at ../sysdeps/unix/syscall-template.S:82
184#2 0x03a8d44c in usleep (useconds=1000) at ../sysdeps/unix/sysv/linux/usleep.c:33
185#3 0x006b0ad4 in MythPlayer::DecoderLoop (this=0x813a740, pause=true) at mythplayer.cpp:2817
186#4 0x006962ce in DecoderThread::run (this=0xb6c22600) at mythplayer.cpp:98
187#5 0x0367332e in ?? () from /usr/lib/libQtCore.so.4
188#6 0x025b996e in start_thread (arg=0xb2160b70) at pthread_create.c:300
189#7 0x03a93a4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
190
191Thread 7 (Thread 0xb29f9b70 (LWP 17753)):
192#0 0x0012d422 in __kernel_vsyscall ()
193#1 0x025be015 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
194#2 0x0091ed82 in FIFOWriter::FIFOWriteThread (this=0xb6c27ef8) at fifowriter.cpp:142
195#3 0x0091ecd3 in FIFOWriter::FIFOStartThread (param=0xb6c27ef8) at fifowriter.cpp:128
196#4 0x025b996e in start_thread (arg=0xb29f9b70) at pthread_create.c:300
197#5 0x03a93a4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
198
199Thread 6 (Thread 0xb31fab70 (LWP 17752)):
200#0 0x0012d422 in __kernel_vsyscall ()
201#1 0x025be015 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
202#2 0x0091ed82 in FIFOWriter::FIFOWriteThread (this=0xb6c27ef8) at fifowriter.cpp:142
203#3 0x0091ecd3 in FIFOWriter::FIFOStartThread (param=0xb6c27ef8) at fifowriter.cpp:128
204#4 0x025b996e in start_thread (arg=0xb31fab70) at pthread_create.c:300
205#5 0x03a93a4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
206
207Thread 5 (Thread 0xb6b43b70 (LWP 17751)):
208#0 0x0012d422 in __kernel_vsyscall ()
209#1 0x03a8c971 in select () at ../sysdeps/unix/syscall-template.S:82
210#2 0x017c95e8 in MythSocketThread::run (this=0x80c7bb8) at mythsocketthread.cpp:257
211#3 0x0367332e in ?? () from /usr/lib/libQtCore.so.4
212#4 0x025b996e in start_thread (arg=0xb6b43b70) at pthread_create.c:300
213#5 0x03a93a4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
214
215Thread 4 (Thread 0xb76a2b70 (LWP 17750)):
216#0 0x0012d422 in __kernel_vsyscall ()
217#1 0x025be342 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:179
218#2 0x0367420f in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
219#3 0x036682eb in ?? () from /usr/lib/libQtCore.so.4
220#4 0x0367332e in ?? () from /usr/lib/libQtCore.so.4
221#5 0x025b996e in start_thread (arg=0xb76a2b70) at pthread_create.c:300
222#6 0x03a93a4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
223
224Thread 2 (Thread 0xb7ea3b70 (LWP 17747)):
225#0 0x0012d422 in __kernel_vsyscall ()
226#1 0x025be342 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:179
227#2 0x03672c1e in ?? () from /usr/lib/libQtCore.so.4
228#3 0x03672cdd in QThread::usleep(unsigned long) () from /usr/lib/libQtCore.so.4
229#4 0x01824a97 in MythSystemReaper::run (this=0x8102fc0) at mythsystem.cpp:76
230#5 0x0367332e in ?? () from /usr/lib/libQtCore.so.4
231#6 0x025b996e in start_thread (arg=0xb7ea3b70) at pthread_create.c:300
232#7 0x03a93a4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
233
234Thread 1 (Thread 0xb7fd1720 (LWP 17742)):
235#0 0x0806e991 in AudioReencodeBuffer::AddData (this=0xb6c00480, buffer=0xb6b44020, len=4608, timecode=90323663) at transcode.cpp:109
236#1 0x006c5e7f in AudioPlayer::AddAudioData (this=0x81528e8, buffer=0xb6b44020 "", len=4608, timecode=90323663) at audioplayer.cpp:366
237#2 0x00735973 in AvFormatDecoder::ProcessAudioPacket (this=0xb6c01088, curstream=0xb6c100a0, pkt=0xb6c21d30, decodetype=kDecodeAV) at avformatdecoder.cpp:4138
238#3 0x00737853 in AvFormatDecoder::GetFrame (this=0xb6c01088, decodetype=kDecodeAV) at avformatdecoder.cpp:4427
239#4 0x006b9f34 in MythPlayer::TranscodeGetNextFrame (this=0x813a740, dm_iter=..., did_ff=@0xbfffefb0, is_key=@0xbffff339, honorCutList=true) at mythplayer.cpp:4148
240#5 0x0806dc23 in Transcode::TranscodeFile (this=0x81344d8, inputname=..., outputname=..., profileName=..., honorCutList=true, framecontrol=false, jobID=-1, fifodir=..., deleteMap=...) at transcode.cpp:799
241#6 0x08057bbe in main (argc=10, argv=0xbffff764) at main.cpp:642
242(gdb) quite[K
243A debugging session is active.
244
245 Inferior 1 [process 17742] will be killed.
246
247Quit anyway? (y or n)