Project

General

Profile

Crashing

Added by Tomas Matejicek over 12 years ago

My tvheadend is crashing badly.
Using 2.99.13.gcfa65.dirty, on Ubuntu 12.4 beta2

I can see this in error log: Unable to allocate 148224 bytes
The message comes from a fprintf in parse_mpeg2video() function
(parsers.c file), due to malloc() returning NULL for some reason.

I have 2GB free RAM and I am recording entire mux at 3 adapters
at the same time for 24 hours a day (yes that's huge).
Tvheadend crashes after several hours of recording.

It seems it's going this way:
ts_recv_packet1() -> ts_recv_packet0() -> parse_mpeg_ts() -> parse_mpeg2video() -> malloc gets NULL -> abort()

Why would it crash on malloc() is a mystery for me.
Is there any free() missing?
Could anybody skilled enough review the code?

Thank you!