Try terminating the client using XKillClient and seeing if we can find any races with Client shutdown.
de7407d test/dri2-race: Add a set of races against Client death
test/dri2-race.c | 191 ++++++++++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 187 insertions(+), 4 deletions(-)
Upstream: cgit.freedesktop.org