a bit cleaner version (but still with an infinite loop)
tested with FreeCAD – test case:
- start spacenavd daemon without .Xauthority so it accepts only domain socket connection but not X11
- run freecad
- 3D mouse will not work
- run LD_PRELOAD=./spacenav-lib-hack/build/Debug/src/libspnav-lib-hack.so freecad
- 3D mouse will work
# There migth be memory leaks ouside our program in shared libraries.
# We want to ignore them and focus on leaks in our code.
# To use this ignore list, run with:
# LSAN_OPTIONS=suppressions=asan-ignore.txt
# In Netbeans it should be set in the project properties / Run / Environment
# Would ignore all memory leaks:
# leak:.*
# Ignore particular libraries:
leak:/lib/x86_64-linux-gnu/libdbus-1.so
leak:/usr/lib/x86_64-linux-gnu/libfontconfig.so