Opened 20 years ago
Closed 20 years ago
#793 closed defect (fixed)
mythbackend segfault at end of every recording (DVB)
| Reported by: | Owned by: | danielk | |
|---|---|---|---|
| Priority: | critical | Milestone: | unknown |
| Component: | mythtv | Version: | head |
| Severity: | high | Keywords: | |
| Cc: | Ticket locked: | no |
Description (last modified by )
I will attach a backtrace.
Attachments (3)
Change History (7)
by , 20 years ago
| Attachment: | 8233.backtrace added |
|---|
comment:1 by , 20 years ago
In
void DTVRecorder::BufferedWrite(const TSPacket &tspacket)
a call is made to
ringBuffer->Write(tspacket.data(), TSPacket::SIZE);
At the end of a recording, but ringBuffer == NULL.
Changing
ringBuffer->Write(tspacket.data(), TSPacket::SIZE);
To
if (ringBuffer)
ringBuffer->Write(tspacket.data(), TSPacket::SIZE);
will probably fix the segfault, but does this indicate a more serious problem?
thanks,
John
by , 20 years ago
| Attachment: | mythbackend-8233.segfault.patch added |
|---|
Bandaid to prevent mythbackend from a segfault
comment:2 by , 20 years ago
| Owner: | changed from to |
|---|---|
| Version: | → head |
comment:3 by , 20 years ago
comment:4 by , 20 years ago
| Description: | modified (diff) |
|---|---|
| Resolution: | → fixed |
| Status: | new → closed |
I'm closing this, I believe the underlying cause is fixed in [8237]. The DVBRecorder's ringbuffer was being set to NULL before the TeardownRecorder() call, now it should always be called after any TeardownRecorder() call.

Backtrace from 8233