[mythtv] [BT] of segfault related to LogoDetection

Oscar Carlsson oscar.carlsson at home.se
Thu Feb 19 10:58:26 EST 2004


Hello Development,

  here's  a  backtrace.  i'm  running  cvs  as of yesterday, before the two last
commits  from  isaac.  it  segfaults when a recording finishes it seems, when it
starts the logodetection.. (and NO, those shows where only recorded fo r testing
purposes,  i don't watch those ;) (those who got fucked yesterday, my girlfriend
watches tho.. she was pissed.. ah well :/ )backtrace:


mythtv at dragon mythtv $ gdb mythbackend
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
Starting program: /usr/local/bin/mythbackend
[New Thread 16384 (LWP 7474)]
Starting up as the master server.
[New Thread 32769 (LWP 7482)]
[New Thread 16386 (LWP 7483)]
[New Thread 32771 (LWP 7485)]
[New Thread 49156 (LWP 7486)]
[New Thread 65541 (LWP 7487)]
[New Thread 81926 (LWP 7488)]
2004-02-19 16:39:23 mythbackend version: 0.15.20040216-1 www.mythtv.org
2004-02-19 16:39:23 Enabled verbose msgs : important general
[New Thread 98311 (LWP 7489)]
2004-02-19 16:39:23 Found changes in the todo list.
[New Thread 114696 (LWP 7490)]
[New Thread 131081 (LWP 7491)]
[New Thread 147466 (LWP 7492)]
[New Thread 163851 (LWP 7493)]
2004-02-19 16:39:23 Started recording "Omaka systrar" on channel: 4 on cardid: 1, sourceid 1
2004-02-19 16:39:23 Started recording "Lois & Clark" on channel: 3 on cardid: 2, sourceid 1
[New Thread 180236 (LWP 7494)]
[New Thread 196621 (LWP 7495)]
2004-02-19 16:39:24 Changing from None to RecordingOnly
2004-02-19 16:39:24 Changing from None to RecordingOnly
[New Thread 213006 (LWP 7496)]
[New Thread 229391 (LWP 7497)]
2004-02-19 16:45:02 Changing from RecordingOnly to None
[New Thread 245776 (LWP 7644)]
2004-02-19 16:45:04 Started recording "That '70s show" on channel: 4 on cardid: 1, sourceid 1
[New Thread 262161 (LWP 7645)]
2004-02-19 16:45:04 Changing from None to RecordingOnly
2004-02-19 16:45:04 Found changes in the todo list.
[New Thread 278546 (LWP 7647)]
[New Thread 294931 (LWP 7648)]
Input #0, mpeg, from '/var/video/4_20040219163900_20040219164500.nuv':
  Stream #0.0: Video: mpeg2video, 720x576, 25.00 fps
  Stream #0.1: Audio: mp2, 48000 Hz, stereo, 384 kb/s

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 245776 (LWP 7644)]
CommDetect::SearchForLogo(NuppelVideoPlayer*, bool, bool) (this=0x44fb8938, nvp=0x44f0ead0, fullSpeed=false,
    verbose=false) at commercial_skip.cpp:1311
1311            nvp->GetFrame(1,true);
(gdb) where
#0  CommDetect::SearchForLogo(NuppelVideoPlayer*, bool, bool) (this=0x44fb8938, nvp=0x44f0ead0, fullSpeed=false,
    verbose=false) at commercial_skip.cpp:1311
#1  0x401af863 in NuppelVideoPlayer::FlagCommercials(bool, bool) (this=0x44f0ead0, showPercentage=false,
    fullSpeed=false) at NuppelVideoPlayer.cpp:3191
#2  0x402fc6b1 in TVRec::DoFlagCommercialsThread() (this=0x80d05c0) at tv_rec.cpp:2088
#3  0x402fc81d in TVRec::FlagCommercialsThread(void*) (param=0x80d05c0) at tv_rec.cpp:2105
#4  0x410c0f60 in pthread_start_thread () from /lib/libpthread.so.0
#5  0x410c1062 in pthread_start_thread_event () from /lib/libpthread.so.0
(gdb) bt
#0  CommDetect::SearchForLogo(NuppelVideoPlayer*, bool, bool) (this=0x44fb8938, nvp=0x44f0ead0, fullSpeed=false,
    verbose=false) at commercial_skip.cpp:1311
#1  0x401af863 in NuppelVideoPlayer::FlagCommercials(bool, bool) (this=0x44f0ead0, showPercentage=false,
    fullSpeed=false) at NuppelVideoPlayer.cpp:3191
#2  0x402fc6b1 in TVRec::DoFlagCommercialsThread() (this=0x80d05c0) at tv_rec.cpp:2088
#3  0x402fc81d in TVRec::FlagCommercialsThread(void*) (param=0x80d05c0) at tv_rec.cpp:2105
#4  0x410c0f60 in pthread_start_thread () from /lib/libpthread.so.0
#5  0x410c1062 in pthread_start_thread_event () from /lib/libpthread.so.0
(gdb) threat apply all bt full
Undefined command: "threat".  Try "help".
(gdb) thread apply all bt full

Thread 20 (Thread 294931 (LWP 7648)):
#0  0x41291ef6 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#1  0x00000000 in ?? ()
No symbol table info available.

Thread 19 (Thread 278546 (LWP 7647)):
#0  0x410c671b in read () from /lib/libpthread.so.0
No symbol table info available.
#1  0x4043e614 in __JCR_LIST__ () from /usr/local/lib/libmythtv-0.15.so.0
No symbol table info available.
#2  0x402ed5ea in SpawnEncode(void*) (param=0x44f0df60) at tv_rec.cpp:39
        nvr = (class RecorderBase *) 0x44f0df60
#3  0x410c0f60 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#4  0x410c1062 in pthread_start_thread_event () from /lib/libpthread.so.0
No symbol table info available.

Thread 18 (Thread 262161 (LWP 7645)):
#0  0x41291ef6 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#1  0x00000000 in ?? ()
No symbol table info available.

Thread 17 (Thread 245776 (LWP 7644)):
#0  CommDetect::SearchForLogo(NuppelVideoPlayer*, bool, bool) (this=0x44fb8938, nvp=0x44f0ead0, fullSpeed=false,
    verbose=false) at commercial_skip.cpp:1311
        secs = 10
        loops = 8
        maxLoops = 12
        loop = 0
        sampleSpacing = 1
        seekIncrement = 1500
        seekFrame = 1500
        endFrame = 1750
        counter = 0
        mask = {"\200X", "íD"}
#1  0x401af863 in NuppelVideoPlayer::FlagCommercials(bool, bool) (this=0x44f0ead0, showPercentage=false,
    fullSpeed=false) at NuppelVideoPlayer.cpp:3191
        comms_found = 0
        percentage = 0
        flagTime = {ds = 1092183455}
#2  0x402fc6b1 in TVRec::DoFlagCommercialsThread() (this=0x80d05c0) at tv_rec.cpp:2088
        program_info = (ProgramInfo *) 0x80ed0c8
---Type <return> to continue, or q <return> to quit---
        name = {static null = {static null = <same as static member of an already seen type>, d = 0x80a9df0,
    static shared_null = 0x80a9df0}, d = 0x80edf78, static shared_null = 0x80a9df0}
        commthread_db = (struct QSqlDatabase *) 0x80cc608
        filename = {static null = {static null = <same as static member of an already seen type>, d = 0x80a9df0,
    static shared_null = 0x80a9df0}, d = 0x44f01b20, static shared_null = 0x80a9df0}
        tmprbuf = (RingBuffer *) 0x44f0e8c0
        nvp = (NuppelVideoPlayer *) 0x44f0ead0
#3  0x402fc81d in TVRec::FlagCommercialsThread(void*) (param=0x80d05c0) at tv_rec.cpp:2105
        thetv = (TVRec *) 0x80d05c0
#4  0x410c0f60 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#5  0x410c1062 in pthread_start_thread_event () from /lib/libpthread.so.0
No symbol table info available.

Thread 15 (Thread 213006 (LWP 7496)):
#0  0x410c671b in read () from /lib/libpthread.so.0
No symbol table info available.
#1  0x4043e614 in __JCR_LIST__ () from /usr/local/lib/libmythtv-0.15.so.0
No symbol table info available.
#2  0x402ed5ea in SpawnEncode(void*) (param=0x80fbc28) at tv_rec.cpp:39
        nvr = (class RecorderBase *) 0x80fbc28
#3  0x410c0f60 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#4  0x410c1062 in pthread_start_thread_event () from /lib/libpthread.so.0
No symbol table info available.

Thread 14 (Thread 196621 (LWP 7495)):
#0  0x41291ef6 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#1  0x00000000 in ?? ()
No symbol table info available.

Thread 12 (Thread 163851 (LWP 7493)):
#0  0x410c3724 in __pthread_sigsuspend () from /lib/libpthread.so.0
No symbol table info available.
#1  0x410c3568 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0
No symbol table info available.
#2  0x410bff3b in pthread_cond_wait at GLIBC_2.0 () from /lib/libpthread.so.0
No symbol table info available.
#3  0x40ef1a8f in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/qt/3/lib/libqt-mt.so.3
No symbol table info available.
#4  0x0807b2d5 in ProcessRequestThread::run() (this=0x80e26b8) at mainserver.cpp:61
No locals.
#5  0x40c04a65 in QThreadInstance::start(void*) () from /usr/qt/3/lib/libqt-mt.so.3
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#6  0x410c0f60 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#7  0x410c1062 in pthread_start_thread_event () from /lib/libpthread.so.0
No symbol table info available.

Thread 11 (Thread 147466 (LWP 7492)):
#0  0x410c3724 in __pthread_sigsuspend () from /lib/libpthread.so.0
No symbol table info available.
#1  0x410c3568 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0
No symbol table info available.
#2  0x410bff3b in pthread_cond_wait at GLIBC_2.0 () from /lib/libpthread.so.0
No symbol table info available.
#3  0x40ef1a8f in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/qt/3/lib/libqt-mt.so.3
No symbol table info available.
#4  0x0807b2d5 in ProcessRequestThread::run() (this=0x80cc638) at mainserver.cpp:61
No locals.
#5  0x40c04a65 in QThreadInstance::start(void*) () from /usr/qt/3/lib/libqt-mt.so.3
No symbol table info available.
#6  0x410c0f60 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#7  0x410c1062 in pthread_start_thread_event () from /lib/libpthread.so.0
No symbol table info available.

Thread 10 (Thread 131081 (LWP 7491)):
#0  0x410c3724 in __pthread_sigsuspend () from /lib/libpthread.so.0
No symbol table info available.
#1  0x410c3568 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0
No symbol table info available.
#2  0x410bff3b in pthread_cond_wait at GLIBC_2.0 () from /lib/libpthread.so.0
No symbol table info available.
#3  0x40ef1a8f in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/qt/3/lib/libqt-mt.so.3
No symbol table info available.
#4  0x0807b2d5 in ProcessRequestThread::run() (this=0x80cca38) at mainserver.cpp:61
No locals.
#5  0x40c04a65 in QThreadInstance::start(void*) () from /usr/qt/3/lib/libqt-mt.so.3
No symbol table info available.
#6  0x410c0f60 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#7  0x410c1062 in pthread_start_thread_event () from /lib/libpthread.so.0
No symbol table info available.

Thread 9 (Thread 114696 (LWP 7490)):
#0  0x410c3724 in __pthread_sigsuspend () from /lib/libpthread.so.0
No symbol table info available.
#1  0x410c3568 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#2  0x410bff3b in pthread_cond_wait at GLIBC_2.0 () from /lib/libpthread.so.0
No symbol table info available.
#3  0x40ef1a8f in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/qt/3/lib/libqt-mt.so.3
No symbol table info available.
#4  0x0807b2d5 in ProcessRequestThread::run() (this=0x80d86d8) at mainserver.cpp:61
No locals.
#5  0x40c04a65 in QThreadInstance::start(void*) () from /usr/qt/3/lib/libqt-mt.so.3
No symbol table info available.
#6  0x410c0f60 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#7  0x410c1062 in pthread_start_thread_event () from /lib/libpthread.so.0
No symbol table info available.

Thread 8 (Thread 98311 (LWP 7489)):
#0  0x410c3724 in __pthread_sigsuspend () from /lib/libpthread.so.0
No symbol table info available.
#1  0x410c3568 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0
No symbol table info available.
#2  0x410bff3b in pthread_cond_wait at GLIBC_2.0 () from /lib/libpthread.so.0
No symbol table info available.
#3  0x40ef1a8f in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/qt/3/lib/libqt-mt.so.3
No symbol table info available.
#4  0x0807b2d5 in ProcessRequestThread::run() (this=0x80d8310) at mainserver.cpp:61
No locals.
#5  0x40c04a65 in QThreadInstance::start(void*) () from /usr/qt/3/lib/libqt-mt.so.3
No symbol table info available.
#6  0x410c0f60 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#7  0x410c1062 in pthread_start_thread_event () from /lib/libpthread.so.0
No symbol table info available.

Thread 7 (Thread 81926 (LWP 7488)):
#0  0x41291ef6 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#1  0x00000000 in ?? ()
No symbol table info available.

Thread 6 (Thread 65541 (LWP 7487)):
#0  0x41291ef6 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#1  0x00000000 in ?? ()
No symbol table info available.

Thread 5 (Thread 49156 (LWP 7486)):
---Type <return> to continue, or q <return> to quit---
#0  0x41291ef6 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#1  0x00000000 in ?? ()
No symbol table info available.

Thread 4 (Thread 32771 (LWP 7485)):
#0  0x41291ef6 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#1  0x00000000 in ?? ()
No symbol table info available.

Thread 3 (Thread 16386 (LWP 7483)):
#0  0x41291ef6 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 7482)):
#0  0x412b7f2a in poll () from /lib/libc.so.6
No symbol table info available.
#1  0x410c0b6e in __pthread_manager () from /lib/libpthread.so.0
No symbol table info available.
#2  0x410c0dba in __pthread_manager_event () from /lib/libpthread.so.0
No symbol table info available.

Thread 1 (Thread 16384 (LWP 7474)):
#0  0x412ba011 in select () from /lib/libc.so.6
No symbol table info available.
#1  0x410adcb4 in __JCR_LIST__ () from /usr/qt/3/lib/libqt-mt.so.3
No symbol table info available.
#2  0x40c24606 in QEventLoop::enterLoop() () from /usr/qt/3/lib/libqt-mt.so.3
No symbol table info available.
#3  0x40c244a8 in QEventLoop::exec() () from /usr/qt/3/lib/libqt-mt.so.3
No symbol table info available.
#4  0x40c115f1 in QApplication::exec() () from /usr/qt/3/lib/libqt-mt.so.3
No symbol table info available.
#5  0x0805e25a in main (argc=1, argv=0xbffff954) at main.cpp:503
        a = <incomplete type>
        logfile = {static null = {static null = <same as static member of an already seen type>, d = 0x80a9df0,
    static shared_null = 0x80a9df0}, d = 0x80b0ff8, static shared_null = 0x80a9df0}
        binname = {static null = {static null = <same as static member of an already seen type>, d = 0x80a9df0,
    static shared_null = 0x80a9df0}, d = 0x80b1030, static shared_null = 0x80a9df0}
        verboseString = {static null = {static null = <same as static member of an already seen type>, d = 0x80a9df0,
    static shared_null = 0x80a9df0}, d = 0x80b1070, static shared_null = 0x80a9df0}
        daemonize = false
---Type <return> to continue, or q <return> to quit---
        printsched = false
        nosched = false
        printexpire = false
        logfd = -1
        pidfs = <incomplete type>
        db = (struct QSqlDatabase *) 0x80b9340
        subthread = (struct QSqlDatabase *) 0x80b29c0
        expthread = (struct QSqlDatabase *) 0x80ba9b8
        transthread = (struct QSqlDatabase *) 0x80b97c8
        msdb = (struct QSqlDatabase *) 0x80b9e30
        port = 6543
        statusport = 6544
        myip = {static null = {static null = <same as static member of an already seen type>, d = 0x80a9df0,
    static shared_null = 0x80a9df0}, d = 0x80cc520, static shared_null = 0x80a9df0}
        masterip = {static null = {static null = <same as static member of an already seen type>, d = 0x80a9df0,
    static shared_null = 0x80a9df0}, d = 0x80be010, static shared_null = 0x80a9df0}
        ismaster = true
        runsched = true
        expdb = (struct QSqlDatabase *) 0x80ba9b8
        trandb = (struct QSqlDatabase *) 0x80b97c8
#6  0x411fedcc in __libc_start_main () from /lib/libc.so.6
No symbol table info available.
1311            nvp->GetFrame(1,true);
(gdb)
  

/Oscar



More information about the mythtv-dev mailing list