Valgrind

Introduction
Valgrind is an instrumentation framework for building dynamic analysis tools. There are Valgrind tools that can automatically detect many memory management and threading bugs, and profile your programs in detail. This wiki page will document using valgrind to detect memory management issues withing FreeCAD.

Prerequisites

 * Linux or macOS (supported platforms)
 * Valgrind (installed through a package manager or manually)
 * Relatively powerful machine
 * Ample RAM and hard disk space

Discussion

 * Forum thread discussion

Related

 * gcc address santizers are another option. Apparently the error message output is very clear.