Created attachment 120611 [details] Source code to replicate the issue SUMMARY If you try to run a virtual function on a deleted object, valgrind starts allocating massive amounts of memory before running into a system-wide OOM STEPS TO REPRODUCE 1. Compile the attached code 2. Run under valgrind OBSERVED RESULT Code is ran, an error is optionally reported and valgrind exits EXPECTED RESULT Valgrind starts allocating massive amounts of memory, never exits. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Linux-5.1.5-1-default OpenSUSE Tumbleweed
Turns out it was caused by thread sanitizer which I forgot was on.