[mythtv] Random backend crashes.

Daniel Kristjansson danielk at cuymedia.net
Fri Mar 10 17:36:07 UTC 2006


On Fri, 2006-03-10 at 17:25 +0000, Stuart Auchterlonie wrote:
> I've been having these random backend crashes
> and so have a few other people.
> 
> Finally managed to catch one in the debugger.

> Further digging reveals that the it is fact the pes_alloc call on the previous
> line that is returning garbage. as the pesdataSize is 931 (not 932 as per the
> pes header, but thats another story), pes_alloc ends up calling get_4096_block
> which returns the nonsense.
> 
> free4096.empty() is true
> this first address is the one that corresponds to the bad address causing
> the segfault.

I don't see any problem on reading get_4096_block(), except maybe we
don't check if the malloc succeeds. Maybe you can add some debugging
to the function to see where the problem occurs in get_4096_block()..

-- Daniel



More information about the mythtv-dev mailing list