Opened 18 years ago
Closed 18 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)
Changed 18 years ago by
Attachment: | 8233.backtrace added |
---|
comment:1 Changed 18 years ago by
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
Changed 18 years ago by
Attachment: | mythbackend-8233.segfault.patch added |
---|
Bandaid to prevent mythbackend from a segfault
comment:2 Changed 18 years ago by
Owner: | changed from Isaac Richards to danielk |
---|---|
Version: | → head |
comment:3 Changed 18 years ago by
comment:4 Changed 18 years ago by
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