From b077301a223ae05058c5a21d72acc8f91af9022c Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Fri, 9 Jul 2021 22:22:59 -0400 Subject: [PATCH] i965: Explicitly abort instead of exiting on batch failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This avoids a deadlock condition when registered atexit handlers attempt to acquire a mutex, but the program was going to exit with an error anyway Reviewed-by: Marcin Ĺšlusarz Reviewed-by: Rohan Garg Part-of: --- src/mesa/drivers/dri/i965/brw_batch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_batch.c b/src/mesa/drivers/dri/i965/brw_batch.c index 989aef01cd6..c3c1267b0ad 100644 --- a/src/mesa/drivers/dri/i965/brw_batch.c +++ b/src/mesa/drivers/dri/i965/brw_batch.c @@ -862,7 +862,7 @@ submit_batch(struct brw_context *brw, int in_fence_fd, int *out_fence_fd) if (ret != 0) { fprintf(stderr, "i965: Failed to submit batchbuffer: %s\n", strerror(-ret)); - exit(1); + abort(); } return ret;