Mesa (main): panfrost: Call abort() when aborting on fault

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 1 13:45:43 UTC 2021


Module: Mesa
Branch: main
Commit: 08a6608467acdff850db05025655b05b1b2c4348
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=08a6608467acdff850db05025655b05b1b2c4348

Author: Icecream95 <ixn at disroot.org>
Date:   Mon May 31 23:18:07 2021 +1200

panfrost: Call abort() when aborting on fault

The existing exit(EIO) wasn't getting trapped by debuggers.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11104>

---

 src/panfrost/lib/decode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/panfrost/lib/decode.c b/src/panfrost/lib/decode.c
index 65932804545..49898b959de 100644
--- a/src/panfrost/lib/decode.c
+++ b/src/panfrost/lib/decode.c
@@ -1150,7 +1150,7 @@ pandecode_abort_on_fault(mali_ptr jc_gpu_va)
                 /* Ensure the job is marked COMPLETE */
                 if (h.exception_status != 0x1) {
                         fprintf(stderr, "Incomplete job or timeout");
-                        exit(EIO);
+                        abort();
                 }
         } while ((jc_gpu_va = next_job));
 



More information about the mesa-commit mailing list