Compile with ARC/ORC and `-d:useMalloc` and ask Valgrind. GDB usually reports some problem long after the actual corruption occured and is mostly worthless IME.
- Problems debugging an app made with the wxpython library importe... phoenix27
- Problems debugging an app made with the wxpython library im... Araq