Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#6223 closed defect (fixed)

mythtv-setup crashes randomly while doing a channel scan

Reported by: mortalmatt Owned by: Janne Grunau
Priority: major Milestone: 0.22
Component: MythTV - General Version: head
Severity: medium Keywords:
Cc: Ticket locked: no


The following patch fixes a crash in ScanStreamData::DeleteCachedTable?().

The first call to ATSCStreamData::DeleteCachedTable?() can delete the PSIPTable object. The remaining code will then operate on an invalid object resulting in undefined behaviour and segmentation faults.

The fix introduces a boolean return value for all DeleteCacheTable?() methods which indicates where an object got deleted (true) or not (false). This way the caller at least knows what happened and can react properly.

Attachments (1)

mythtv-fixDeleteCachedTable.diff (7.2 KB) - added by mortalmatt 12 years ago.

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by mortalmatt

comment:1 Changed 12 years ago by stuartm

Milestone: unknown0.22
Owner: changed from Isaac Richards to janneg
Status: newassigned

comment:2 Changed 12 years ago by Janne Grunau

Resolution: fixed
Status: assignedclosed

(In [19937]) Fix deleting PSIP tables in scanstreamdata. Closes #6223

patch by mortalmatt

comment:3 Changed 12 years ago by Janne Grunau

Owner: changed from janneg to Janne Grunau
Note: See TracTickets for help on using tickets.