[root@hera mythtranscode]# gdb ./mythtranscode -x /tmp/gdb.cmds.txt 
GNU gdb Red Hat Linux (6.5-15.fc6rh)
Copyright (C) 2006 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 "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".

[Thread debugging using libthread_db enabled]
[New Thread -1209116448 (LWP 15692)]
2007-04-06 02:02:26.731 Using runtime prefix = /opt/myth
2007-04-06 02:02:26.789 New DB connection, total: 1
2007-04-06 02:02:26.794 Enabled verbose msgs: important
2007-04-06 02:02:26.796 New DB connection, total: 2
2007-04-06 02:02:26.799 New DB connection, total: 3
2007-04-06 02:02:26.938 Using protocol version 33
[New Thread -1211217008 (LWP 15698)]
0: start_time: 0.027 duration: 0.011
1: start_time: 0.027 duration: 0.009
2: start_time: 0.027 duration: 0.011
stream: start_time: 0.301 duration: 0.120 bitrate=2184 kb/s
2007-04-06 02:02:27.025 AFD: Warning, video codec 0x87ac4c0 id(MPEG2VIDEO) type (Video) already open.
2007-04-06 02:02:27.025 AFD: Warning, audio codec 0x87ac910 id(MP2) type (Audio) already open, leaving it alone.
2007-04-06 02:02:27.025 AFD: Warning, audio codec 0x87b1580 id(AC3) type (Audio) already open, leaving it alone.
2007-04-06 02:02:27.026 NVP: Disabling Audio, params(0,0,0)
2007-04-06 02:02:27.177 NVP: Disabling Audio, params(0,0,0)
[New Thread -1275389040 (LWP 15699)]
terminate called after throwing an instance of 'std::bad_alloc'
  what():  St9bad_alloc

Program received signal SIGABRT, Aborted.
[Switching to Thread -1209116448 (LWP 15692)]
0x0092b402 in __kernel_vsyscall ()

Thread 3 (Thread -1275389040 (LWP 15699)):
#0  0x0092b402 in __kernel_vsyscall ()
No symbol table info available.
#1  0x008191a6 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
No symbol table info available.
#2  0x0117da78 in FIFOWriter::FIFOWriteThread () from /opt/myth/lib/libmythtv-0.20.so.0
No symbol table info available.
#3  0x0117da9b in FIFOWriter::FIFOStartThread () from /opt/myth/lib/libmythtv-0.20.so.0
No symbol table info available.
#4  0x008153db in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#5  0x02dab26e in clone () from /lib/libc.so.6
No symbol table info available.

Thread 2 (Thread -1211217008 (LWP 15698)):
#0  0x0092b402 in __kernel_vsyscall ()
No symbol table info available.
#1  0x02da40d1 in select () from /lib/libc.so.6
No symbol table info available.
#2  0x078c3a3c in MythSocket::readyReadThread () from /opt/myth/lib/libmyth-0.20.so.0
No symbol table info available.
#3  0x008153db in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#4  0x02dab26e in clone () from /lib/libc.so.6
No symbol table info available.

Thread 1 (Thread -1209116448 (LWP 15692)):
#0  0x0092b402 in __kernel_vsyscall ()
No symbol table info available.
#1  0x02d06d40 in raise () from /lib/libc.so.6
No symbol table info available.
#2  0x02d08591 in abort () from /lib/libc.so.6
No symbol table info available.
#3  0x06cb73a0 in __gnu_cxx::__verbose_terminate_handler () from /usr/lib/libstdc++.so.6
No symbol table info available.
#4  0x06cb4e85 in std::set_unexpected () from /usr/lib/libstdc++.so.6
No symbol table info available.
#5  0x06cb4ec2 in std::terminate () from /usr/lib/libstdc++.so.6
No symbol table info available.
#6  0x06cb4ffa in __cxa_throw () from /usr/lib/libstdc++.so.6
No symbol table info available.
#7  0x06cb53fe in operator new () from /usr/lib/libstdc++.so.6
No symbol table info available.
#8  0x06cb54dd in operator new[] () from /usr/lib/libstdc++.so.6
No symbol table info available.
#9  0x0117efed in FIFOWriter::FIFOInit () from /opt/myth/lib/libmythtv-0.20.so.0
No symbol table info available.
#10 0x08068f10 in Transcode::TranscodeFile (this=0x875ac20, inputname=0x0, outputname=0x8732848 "/data/video/2010_20070331170700.mpg.tmp", profileName=@0x0, honorCutList=false, framecontrol=false, jobID=-1, fifodir=@0xbfb5a444) at transcode.cpp:630
        dtmp = {d = {jd = 141856672}, t = {ds = 3216350296}}
        dtime = {static null = {static null = <same as static member of an already seen type>, d = 0x86a20c0, static shared_null = 0x86a20c0}, d = 0xbfb59c68, static shared_null = 0x86a20c0}
        verbose_macro_tmp = <incomplete type>
        curtime = {d = {jd = 2454197}, t = {ds = 7346801}}
        statustime = {d = {jd = 2454197}, t = {ds = 7346801}}
        audioframesize = -1078616548
        audioFrame = 408
        total_frame_count = 134711
        new_frame_count = 134711
        encodingType = {static null = {static null = <same as static member of an already seen type>, d = 0x86a20c0, static shared_null = 0x86a20c0}, d = 0x87b76c8, static shared_null = 0x86a20c0}
        copyvideo = false
        copyaudio = false
        vidsetting = {static null = {static null = <same as static member of an already seen type>, d = 0x86a20c0, static shared_null = 0x86a20c0}, d = 0x883d2c8, static shared_null = 0x86a20c0}
        audsetting = {static null = {static null = <same as static member of an already seen type>, d = 0x86a20c0, static shared_null = 0x86a20c0}, d = 0x87b95d8, static shared_null = 0x86a20c0}
        vidfilters = {static null = {static null = <same as static member of an already seen type>, d = 0x86a20c0, static shared_null = 0x86a20c0}, d = 0x87a3068, static shared_null = 0x86a20c0}
        video_width = 142295544
        video_height = 576
        video_aspect = 1.33333337
        video_frame_rate = 25
        newWidth = 720
        newHeight = 576
        vidSize = 622080
        frame = {codec = FMT_YV12, buf = 0x2d438a1 "\201�S7\r", width = 720, height = 576, bpp = 48328692, size = 622080, frameNumber = -4632625358243064960, timecode = 207589032322168560, priv = {0x10 <Address 0x10 out of bounds>, 0x87497d8 "0", 0x2dfff78 "double free or corruption (fasttop)", 0x2d438a1 "\201�S7\r"}, qscale_table = 0x8749378 "\030", qstride = 141858776, interlaced_frame = 141878840, top_field_first = -1078617144, repeat_pict = 114180084, forcekey = -1078616980, pitches = {1, -1078617128, 48}, offsets = {141857664, 48234360, -1078617112}}
        forceKeyFrames = 68
        dm_iter = {node = 0x6cb3ef1}
        writekeyframe = 2
        num_keyframes = 48333136
        did_ff = -1078616984
        curFrameNum = 47456779
        lastKeyFrame = 48328692
        totalAudio = 48333088
        dropvideo = 16
        lasttimecode = 203865895845861852
        timecodeOffset = 35081340336289
        rateTimeConv = 3.29137611e-37
        vidFrameTime = -1.4187479
        wait_recover = 58585483
        videoOutput = (struct VideoOutput *) 0x8759d68
        is_key = 163
        first_loop = 28
        newFrame = (unsigned char *) 0x2d441b1 "\201�C.\r"
        imageIn = {data = {0x872ddf0 "x\223t\b", 0x28698f8 "�\200\206\002����\220\216�", 0x0, 0xbfb59c18 "�8�\002�\217t\bX\234���r%"}, linesize = {39532612, -1078616980, 48328692, 47462561}}
        imageOut = {data = {0x25acced "\203�\004[]�\220\215�", 0x8749380 "�\227t\b", 0x2e16ff4 "\234��", 0x2e18120 ""}, linesize = {141745648, -1078617048, 47478512, 48333088}}
        scontext = (ImgReSampleContext *) 0xbfb59e1c
        flagTime = {ds = 3216350920}
#11 0x08058b94 in main (argc=Cannot access memory at address 0x0
) at main.cpp:469
        dtmp = {d = {jd = 1}, t = {ds = 11403200}}
        dtime = {static null = {static null = <same as static member of an already seen type>, d = 0x86a20c0, static shared_null = 0x86a20c0}, d = 0x2d441b1, static shared_null = 0x86a20c0}
        verbose_macro_tmp = <incomplete type>
        chanid = {static null = {static null = <same as static member of an already seen type>, d = 0x86a20c0, static shared_null = 0x86a20c0}, d = 0x86a20c0, static shared_null = 0x86a20c0}
        starttime = {static null = {static null = <same as static member of an already seen type>, d = 0x86a20c0, static shared_null = 0x86a20c0}, d = 0x86a20c0, static shared_null = 0x86a20c0}
        infile = {static null = {static null = <same as static member of an already seen type>, d = 0x86a20c0, static shared_null = 0x86a20c0}, d = 0x872c1c8, static shared_null = 0x86a20c0}
        outfile = {static null = {static null = <same as static member of an already seen type>, d = 0x86a20c0, static shared_null = 0x86a20c0}, d = 0x8732830, static shared_null = 0x86a20c0}
        profilename = {static null = {static null = <same as static member of an already seen type>, d = 0x86a20c0, static shared_null = 0x86a20c0}, d = 0x8727eb0, static shared_null = 0x86a20c0}
        fifodir = {static null = {static null = <same as static member of an already seen type>, d = 0x86a20c0, static shared_null = 0x86a20c0}, d = 0x8727ec8, static shared_null = 0x86a20c0}
        jobID = -1
        startts = {d = {jd = 0}, t = {ds = 0}}
        jobType = 0
        otype = 0
        useCutlist = false
        keyframesonly = false
        build_index = false
        fifosync = false
        showprogress = false
        mpeg2 = false
        settingsOverride = {sh = 0x8727ee0}
        deleteMap = {sh = 0x8727f10}
        posMap = {sh = 0x8727f40}
        a = <incomplete type>
        found_starttime = 0
        found_chanid = 0
        found_infile = 1
        update_index = 1
        pginfo = (ProgramInfo *) 0x8759408
        transcode = (class Transcode *) 0x875ac20
        result = -1078615568
        exitcode = 56
(gdb) 
