Skip to content
Commit ad0ac818 authored by Petri Latvala's avatar Petri Latvala
Browse files

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: default avatarPetri Latvala <petri.latvala@intel.com>
parent 7b7189e9
Loading
Loading
Loading
Pipeline #85326 failed with stages
in 53 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment