Die Probleme sehen mir ein bißchen größer aus, und vor allem im Bereich des PAT Filters.
(die ersten beiden IOCTLs wurden entfernt da sie nicht initialisiert ok sind (und mittendrinnen wurden auch einige entfernt um das 10.000 Zeichen limit nicht zu übersteigen):
https://pastebin.com/inurDVwX
==234899==
==234899== Invalid free() / delete / delete[] / realloc()
==234899== at 0x483D1CF: operator delete(void*, unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==234899== by 0x27D171: cListBase::Del(cListObject*, bool) (tools.c:2227)
==234899== by 0x22B3D6: cPatFilter::SwitchToNextPmtPid() (pat.c:410)
==234899== by 0x22CBE8: cPatFilter::Process(unsigned short, unsigned char, unsigned char const*, int) (pat.c:479)
==234899== by 0x244B55: cSectionHandler::Action() (sections.c:211)
==234899== by 0x26DDE4: cThread::StartThread(cThread*) (thread.c:301)
==234899== by 0x4B03608: start_thread (pthread_create.c:477)
==234899== by 0x5153292: clone (clone.S:95)
==234899== Address 0xee13bc0 is 0 bytes inside a block of size 32 free'd
==234899== at 0x483D1CF: operator delete(void*, unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==234899== by 0x27D171: cListBase::Del(cListObject*, bool) (tools.c:2227)
==234899== by 0x1EDF1E: SetStatus (filter.c:189)
==234899== by 0x1EDF1E: cFilter::SetStatus(bool) (filter.c:178)
==234899== by 0x22D21D: cPatFilter::SetStatus(bool) (pat.c:350)
==234899== by 0x24476A: cSectionHandler::SetStatus(bool) (sections.c:152)
==234899== by 0x1CC2B8: cDevice::SetChannel(cChannel const*, bool) (device.c:891)
==234899== by 0x1CC7C5: cDevice::SwitchChannel(cChannel const*, bool) (device.c:809)
==234899== by 0x1E845B: cEITScanner::Process() (eitscan.c:168)
==234899== by 0x1AA833: main (vdr.c:1519)
==234899== Block was alloc'd at
==234899== at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==234899== by 0x1EE488: cFilter::Add(unsigned short, unsigned char, unsigned char, bool) (filter.c:218)
==234899== by 0x22CBE8: cPatFilter::Process(unsigned short, unsigned char, unsigned char const*, int) (pat.c:479)
==234899== by 0x244B55: cSectionHandler::Action() (sections.c:211)
==234899== by 0x26DDE4: cThread::StartThread(cThread*) (thread.c:301)
==234899== by 0x4B03608: start_thread (pthread_create.c:477)
==234899== by 0x5153292: clone (clone.S:95)
==234899==
==234899== Invalid read of size 8
==234899== at 0x22B3DE: Next (tools.h:654)
==234899== by 0x22B3DE: Next (tools.h:665)
==234899== by 0x22B3DE: cPatFilter::SwitchToNextPmtPid() (pat.c:411)
==234899== by 0x22CBE8: cPatFilter::Process(unsigned short, unsigned char, unsigned char const*, int) (pat.c:479)
==234899== by 0x244B55: cSectionHandler::Action() (sections.c:211)
==234899== by 0x26DDE4: cThread::StartThread(cThread*) (thread.c:301)
==234899== by 0x4B03608: start_thread (pthread_create.c:477)
==234899== by 0x5153292: clone (clone.S:95)
==234899== Address 0x10 is not stack'd, malloc'd or (recently) free'd
==234899==
==234899==
==234899== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==234899== Access not within mapped region at address 0x10
==234899== at 0x22B3DE: Next (tools.h:654)
==234899== by 0x22B3DE: Next (tools.h:665)
==234899== by 0x22B3DE: cPatFilter::SwitchToNextPmtPid() (pat.c:411)
==234899== by 0x22CBE8: cPatFilter::Process(unsigned short, unsigned char, unsigned char const*, int) (pat.c:479)
==234899== by 0x244B55: cSectionHandler::Action() (sections.c:211)
==234899== by 0x26DDE4: cThread::StartThread(cThread*) (thread.c:301)
==234899== by 0x4B03608: start_thread (pthread_create.c:477)
==234899== by 0x5153292: clone (clone.S:95)
==234899== If you believe this happened as a result of a stack
==234899== overflow in your program's main thread (unlikely but
==234899== possible), you can try to increase the size of the
==234899== main thread stack using the --main-stacksize= flag.
==234899== The main thread stack size used in this run was 8388608.
==234899==
==234899== HEAP SUMMARY:
==234899== in use at exit: 85,790,583 bytes in 1,288,520 blocks
==234899== total heap usage: 2,467,507 allocs, 1,178,989 frees, 2,204,044,461 bytes allocated
==234899==
==234899== LEAK SUMMARY:
==234899== definitely lost: 20,056 bytes in 496 blocks
==234899== indirectly lost: 448 bytes in 14 blocks
==234899== possibly lost: 2,240 bytes in 7 blocks
==234899== still reachable: 85,767,839 bytes in 1,288,003 blocks
==234899== suppressed: 0 bytes in 0 blocks
==234899== Rerun with --leak-check=full to see details of leaked memory
==234899==
==234899== Use --track-origins=yes to see where uninitialised values come from
==234899== For lists of detected and suppressed errors, rerun with: -s
==234899== ERROR SUMMARY: 27 errors from 20 contexts (suppressed: 0 from 0)
Speicherzugriffsfehler (Speicherabzug geschrieben)
Display More
ist da irgendetwas bekannt?