Improve access violation reporting on Windows
Summary: This patch is courtesy of @awson. Currently, whenever GHC catches a segfault on Windows, it simply reports the somewhat uninformative message `Segmentation fault/access violation in generated code`. This patch adds to the message the type of violation (read/write/dep) and location information, which should help debugging segfaults in the future. Fixes #13108. Test Plan: Build on Windows Reviewers: austin, erikd, bgamari, simonmar, Phyx Reviewed By: bgamari, Phyx Subscribers: awson, thomie, #ghc_windows_task_force Differential Revision: https://phabricator.haskell.org/D2969 GHC Trac Issues: #13108
Showing
- rts/win32/veh_excn.c 7 additions, 1 deletionrts/win32/veh_excn.c
- testsuite/tests/rts/all.T 9 additions, 3 deletionstestsuite/tests/rts/all.T
- testsuite/tests/rts/derefnull.stdout-i386-unknown-mingw32 1 addition, 1 deletiontestsuite/tests/rts/derefnull.stdout-i386-unknown-mingw32
- testsuite/tests/rts/derefnull.stdout-x86_64-unknown-mingw32 1 addition, 1 deletiontestsuite/tests/rts/derefnull.stdout-x86_64-unknown-mingw32
Loading
Please register or sign in to comment