WIP: lib/tests: Add test for handling asserts in threads
Triggering an assert in a thread leads to calling siglongjmp to a
jmpbuf created from another thread (the main thread). That's undefined
behaviour and breaks all kinds of things.
Other issues with threads currently: Interleaved backtrace printing,
stack corruption because the longjmp succeeds in another thread and
continuing execution modifies the stack for the other threads that are
still running and triggering their asserts, no good automatic way of
propagating failures to main thread otherwise.
We probably need a whole framework for igt_thread á la igt_fork to
handle all that.
Signed-off-by:
Petri Latvala <petri.latvala@intel.com>
parent
7b7189e9
No related branches found
No related tags found
Pipeline #85326 failed
Stage: build-containers
Stage: build
Stage: test
Stage: containers
Stage: deploy
lib/tests/igt_threads.c
0 → 100644