[mythtv-commits] Ticket #10933: [PATCH] Prevent a SEGV in MpegRecorder::run when encoding is stopped

MythTV noreply at mythtv.org
Mon Jul 23 17:44:31 UTC 2012


#10933: [PATCH] Prevent a SEGV in MpegRecorder::run when encoding is stopped
---------------------------------------+-------------------------------
     Reporter:  Lawrence Rust <lvr@…>  |      Owner:  danielk
         Type:  Patch - Bug Fix        |     Status:  new
     Priority:  minor                  |  Milestone:  unknown
    Component:  MythTV - Recording     |    Version:  Unspecified
     Severity:  medium                 |   Keywords:  MpegRecorder SEGV
Ticket locked:  0                      |
---------------------------------------+-------------------------------
 If the current video source is a demo recorder and liveTV is exited then
 the BE aborts with a SEGV:

 {{{
 Program terminated with signal 11, Segmentation fault.
 0  0xb67f4038 in MpegRecorder::run (this=0x8aa3b00) at
 mpegrecorder.cpp:1028
 1028                    FD_SET(readfd, &rdset);
 (gdb) bt
 0  0xb67f4038 in MpegRecorder::run (this=0x8aa3b00) at
 mpegrecorder.cpp:1028
 1  0xb5e186e0 in MThread::run (this=0x8a62060) at mthread.cpp:319
 2  0xb5e18d34 in MThreadInternal::run (this=0x88cd100) at mthread.cpp:79
 3  0xb3b772e0 in QThreadPrivate::start (arg=0x88cd100)
     at thread/qthread_unix.cpp:266
 4  0xb3af9e99 in start_thread (arg=0xa0f39b70) at pthread_create.c:304
 5  0xb39359ee in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
 (gdb) print readfd
 $1 = -1
 }}}

 This is the result of MpegRecorder::StopEncoding closing 'readfd' and
 setting it to -1.

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/10933>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list