I keep getting this crash no matter which go program I try to run

I’ve been trying to get back into Go for some backend server work. So I started with the default starter program again and I keep getting an error. The code is being run is here:

package main

import "fmt"

func main() {
    fmt.Printf("Hello, world\n")
}

No matter which go program I try to run it always throws this exception and prints the following dump:

go run hello.go
Exception 0xc0000005 0x0 0x7ffdb0e10fff 0x1ac65b20000
PC=0x1ac65b20000

runtime: unknown pc 0x1ac65b20000
stack: frame={sp:0x799f3fe550, fp:0x0} stack=[0x0,0x799f3ffc30)
000000799f3fe450:  000000799f3fe498  000000799f3fe4c0
000000799f3fe460:  000000799f3fe488  000000799f3fe480
000000799f3fe470:  000000799f3fe484  000001ac5f001140
000000799f3fe480:  0000000000000000  0000000000000000
000000799f3fe490:  0000000000000000  0000000000000005
000000799f3fe4a0:  000000799f3fe5e8  00007ffdae93b3df
000000799f3fe4b0:  000001ac5edc3240  00007ffdb0c4345e
000000799f3fe4c0:  00007ffdb0c100e8  000001ac5ee063c0
000000799f3fe4d0:  00007ffdae93b3d9  000000799f3fe520
000000799f3fe4e0:  004f0044004e0049  0053005c00530057
000000799f3fe4f0:  000001ac5edc3240  0000000000000000
000000799f3fe500:  000001ac5edf3ec0  006c006400050005
000000799f3fe510:  00007ffdae93b3d9  0000000000000000
000000799f3fe520:  00007ffd00000000  00007ffdb0c100e8
000000799f3fe530:  0000000000000000  0000000000000000
000000799f3fe540:  0000000000000001  00007ffdb0c42513
000000799f3fe550: <000001ac00000001  0000000000000000
000000799f3fe560:  0000000000000000  000000799f3fe658
000000799f3fe570:  0000000000000000  0000000000000000
000000799f3fe580:  0000000000000000  0000000000000000
000000799f3fe590:  000001ac5ee063c0  00007ffdb0d61180
000000799f3fe5a0:  000001ac5edc3240  00007ffdb0d637a0
000000799f3fe5b0:  000000000000097d  00007ffdadaeccd8
000000799f3fe5c0:  00007ffdadaea148  00007ffdb0d611a8
000000799f3fe5d0:  00007ffdb0d73fcf  00007ffdadae0000
000000799f3fe5e0:  00007ffdb0d65d94  00007ffdb0c64c60
000000799f3fe5f0:  0000000000000000  0000000000000000
000000799f3fe600:  0000000000000000  0000000000000000
000000799f3fe610:  000001ac5ee076c0  0000000000000040
000000799f3fe620:  0000000000000003  00007ffdb0d7a3f0
000000799f3fe630:  0000000000000001  000000799f3fe900
000000799f3fe640:  000001ac5edf3ec0  00007ffdb0c6eb58
runtime: unknown pc 0x1ac65b20000
stack: frame={sp:0x799f3fe550, fp:0x0} stack=[0x0,0x799f3ffc30)
000000799f3fe450:  000000799f3fe498  000000799f3fe4c0
000000799f3fe460:  000000799f3fe488  000000799f3fe480
000000799f3fe470:  000000799f3fe484  000001ac5f001140
000000799f3fe480:  0000000000000000  0000000000000000
000000799f3fe490:  0000000000000000  0000000000000005
000000799f3fe4a0:  000000799f3fe5e8  00007ffdae93b3df
000000799f3fe4b0:  000001ac5edc3240  00007ffdb0c4345e
000000799f3fe4c0:  00007ffdb0c100e8  000001ac5ee063c0
000000799f3fe4d0:  00007ffdae93b3d9  000000799f3fe520
000000799f3fe4e0:  004f0044004e0049  0053005c00530057
000000799f3fe4f0:  000001ac5edc3240  0000000000000000
000000799f3fe500:  000001ac5edf3ec0  006c006400050005
000000799f3fe510:  00007ffdae93b3d9  0000000000000000
000000799f3fe520:  00007ffd00000000  00007ffdb0c100e8
000000799f3fe530:  0000000000000000  0000000000000000
000000799f3fe540:  0000000000000001  00007ffdb0c42513
000000799f3fe550: <000001ac00000001  0000000000000000
000000799f3fe560:  0000000000000000  000000799f3fe658
000000799f3fe570:  0000000000000000  0000000000000000
000000799f3fe580:  0000000000000000  0000000000000000
000000799f3fe590:  000001ac5ee063c0  00007ffdb0d61180
000000799f3fe5a0:  000001ac5edc3240  00007ffdb0d637a0
000000799f3fe5b0:  000000000000097d  00007ffdadaeccd8
000000799f3fe5c0:  00007ffdadaea148  00007ffdb0d611a8
000000799f3fe5d0:  00007ffdb0d73fcf  00007ffdadae0000
000000799f3fe5e0:  00007ffdb0d65d94  00007ffdb0c64c60
000000799f3fe5f0:  0000000000000000  0000000000000000
000000799f3fe600:  0000000000000000  0000000000000000
000000799f3fe610:  000001ac5ee076c0  0000000000000040
000000799f3fe620:  0000000000000003  00007ffdb0d7a3f0
000000799f3fe630:  0000000000000001  000000799f3fe900
000000799f3fe640:  000001ac5edf3ec0  00007ffdb0c6eb58
rax     0x7ffdadaed87c
rbx     0x7ffdadaed87a
rcx     0x41
rdi     0xffffffffffbadd11
rsi     0x0
rbp     0x7ffdadb1a100
rsp     0x799f3fe550
r8      0x0
r9      0x0
r10     0x0
r11     0x97c
r12     0xc000007a
r13     0x0
r14     0x7ffdadaed87c
r15     0x7ffdb0c10000
rip     0x1ac65b20000
rflags  0x10202
cs      0x33
fs      0x53
gs      0x2b

Has anybody else experienced this? Or have any suggestion as to what I can do to fix this issue I’m having?

What operating system, what version of go, how did you install go?

It’s Windows 10.
Version 1.16.2 of Go.
I installed via the msi downloaded from the go website.

As an additional update it throws the exception even if I use -buildmode=exe. And it also seems to cause issues with my network card as well (everything gets slower)

Do you use any privacy or anti virus software? Or a personal firewall?

If you do, please try disabling them, and then try doing something in Go again.

Hey I disabled my antivirus software and the issue disappeared. I also opened an issue on GitHub and got pointed to this issue: runtime: Go randomly crashes on Windows with no stack trace, just “unknown pc” and memory/registry dump · Issue #40878 · golang/go (github.com) about Webroot AV (the AV I have) being the culprit. So I’ll have to search for a new AV software now. Thanks for your help!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.