Opened 13 years ago
Closed 13 years ago
Last modified 13 years ago
#10933 closed Patch - Bug Fix (fixed)
[PATCH] Prevent a SEGV in MpegRecorder::run when encoding is stopped
| Reported by: | Owned by: | danielk | |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.26 |
| Component: | MythTV - Recording | Version: | Master Head |
| Severity: | medium | Keywords: | MpegRecorder SEGV |
| Cc: | Ticket locked: | no |
Description
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.
Attachments (1)
Change History (3)
by , 13 years ago
| Attachment: | 0001-libmythtv-Prevent-a-SEGV-in-MpegRecorder-run-when-en.patch added |
|---|
comment:1 by , 13 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:2 by , 13 years ago
| Milestone: | unknown → 0.26 |
|---|---|
| Version: | Unspecified → Master Head |
Note:
See TracTickets
for help on using tickets.

In 661a1ddd71cfe5b24df72cd4585749a43af2f103/mythtv: