Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#3225 closed patch (fixed)

mythcommflag segfault

Reported by: anonymous Owned by: cpinkham
Priority: minor Milestone: unknown
Component: mythtv Version: 0.20
Severity: medium Keywords:
Cc: Ticket locked: no

Description

mythcommflag recently segfaulted on a corrupt recording. Here's a snippet from gdb:

Program terminated with signal 11, Segmentation fault.
#0  0x0807b50a in ~ClassicCommDetector (this=0x8143a00) at ClassicCommDetector.cpp:188
188             delete sceneChangeDetector;
(gdb) where
#0  0x0807b50a in ~ClassicCommDetector (this=0x8143a00) at ClassicCommDetector.cpp:188
#1  0x08051ec2 in DoFlagCommercials (showPercentage=false, fullSpeed=true, inJobQueue=true, nvp=0x8106c48, 
    commDetectMethod=COMM_DETECT_ALL) at main.cpp:449
#2  0x0805401d in FlagCommercials (chanid=@0xbffac7bc, starttime=@0xbffac7b8) at main.cpp:595
#3  0x0805baec in main (argc=135545864, argv=0x0) at main.cpp:996

The attached patch should fix this.

Attachments (1)

CCD.patch (575 bytes) - added by cizek@… 13 years ago.

Download all attachments as: .zip

Change History (4)

Changed 13 years ago by cizek@…

Attachment: CCD.patch added

comment:1 Changed 13 years ago by cpinkham

Owner: changed from Isaac Richards to cpinkham

comment:2 Changed 12 years ago by cpinkham

Resolution: fixed
Status: newclosed

(In [13096]) Fix an unitialized variable that could lead to a segfault under certain circumstances. Patch by cizek.

Closes #3225.

comment:3 Changed 12 years ago by cpinkham

(In [13097]) Carry over [13096] from trunk.

Fix an unitialized variable that could lead to a segfault under certain circumstances. Patch by cizek.

References #3225.

Note: See TracTickets for help on using tickets.