runtime: access faults to memory mapped files on windows can't be caught by using SetPanicOnFault #58457
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
OS-Windows
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?windows/amd64
What did you do?
Memory map a file on an external disk (using CreateFileMapping / MapViewOfFile)
Call debug.SetPanicOnFault(true)
Eject the external disk
Try to read from the memory map
What did you expect to see?
The read should cause a panic since the access fails.
What did you see instead?
The runtime faults (
Exception 0xc0000006 0x0 ...
) instead of panicing, thus preventing the user from recovering from this error.The text was updated successfully, but these errors were encountered: