id summary reporter owner description type status priority milestone component version severity resolution keywords cc mlocked 13412 Valgrind error in threadedfilewriter Klaas de Waal Klaas de Waal "Running mythbackend with valgrind gives the following error message: {{{ ==14156== Conditional jump or move depends on uninitialised value(s) ==14156== at 0x72CC8A3: ThreadedFileWriter::DiskLoop() (threadedfilewriter.cpp:455) .... ==14156== Uninitialised value was created by a heap allocation ==14156== at 0x4838E86: operator new(unsigned long) (vg_replace_malloc.c:344) ==14156== by 0x667A50E: FileRingBuffer::FileRingBuffer(QString const&, bool, bool, int) (fileringbuffer.cpp:72) }}} This is line 455 of threadedfilewriter.cpp: {{{ if (!m_flush && (mwte < 250) && (m_totalBufferUse < kMinWriteSize)) }}} The problem is caused by m_flush; this class member is not initialized when a new instance of ThreadedFileWriter is created.\\ The fix is to add initialization of m_flush in threadedfilewriter.h.\\ Patch is attached. " Patch - Bug Fix closed minor 31.0 MythTV - General Master Head medium fixed TFW uninitialized memory Stuart Auchterlonie gigem 0