Skip to content

More leak fixes in tests, reported by ASan

Pekka Paalanen requested to merge pq/weston:mr/less-leaks2 into main

Another series fixing ASan reported leaks in the tests. The final goal is to be able to turn ASan leak checks on in CI.

There is also one commit that turns down the verbosity of subsurface-test.

After these fixes, we still have the failing tests:

  • drm-smoke (SKIP), @leandrohrb might look into this
  • devices, actually relies on leaking, but I already started looking into it
  • xwayland, which may be facing a rewrite by @mvlad

All these fixes have been found by configuring the Weston build with -Db_sanitize=address, and debugging individual tests with

$ ASAN_OPTIONS=fast_unwind_on_malloc=0,malloc_context_size=50 \
LSAN_OPTIONS=suppressions=/home/pq/git/weston/.gitlab-ci/leak-sanitizer.supp \
./tests/test-devices
Edited by Pekka Paalanen

Merge request reports