X-Git-Url: https://git.ralfj.de/web.git/blobdiff_plain/6f4875da5761e6771ee37fcf39527900b8689968..5a688568dc1005440079571380694ecaf1170971:/personal/_posts/2025-07-24-memory-safety.md?ds=sidebyside diff --git a/personal/_posts/2025-07-24-memory-safety.md b/personal/_posts/2025-07-24-memory-safety.md index ad38e76..6d20f9e 100644 --- a/personal/_posts/2025-07-24-memory-safety.md +++ b/personal/_posts/2025-07-24-memory-safety.md @@ -70,6 +70,7 @@ If you run this program (e.g. on the [Go playground](https://go.dev/play/p/SC-o_ panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x2a pc=0x468863] ``` +This is a segfault, not a normal Go panic, so something has gone horribly wrong. Note that the address that caused the segfault is `0x2a`, the hex representation of 42. What is happening here?