go: runtime: exception at unknown PC on Windows when using webroot anti-virus

What version of Go are you using (go version)?

$ go version 1.15 windows amd64

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\owner\AppData\Local\go-build
set GOENV=C:\Users\owner\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\owner\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\owner\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=c:\go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=c:\go\pkg\tool\windows_amd64
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\owner\AppData\Local\Temp\go-build564260466=/tmp/go-build -gno-record-gcc-switches

What did you do?

Windows did an update. I updated to go 1.15

windows 1904.450

I built and ran my code which has NOT changed. It appeared ok. Then intermittently got the runtime exception about unknown pc. I rebuilt, and ran with as: go run, go build, go build -ldflags=“-s -w” (my normal build) it SEEMED more likely to fail with -w. It SEEMED to work until the build with the -w flag, then again intermittently failed without any of the run/build approaches. Decided to eliminate my code to see if it was the env, or my pc memory.

So I wrote std HelloWorld.go and still intermittently got the issue.

Below is latest run of my code built with both flags, first run OK, Enter the cmd again and this time failure as shown below.

What did you expect to see?

$ ./mcpt.exe

mcpt version: 1.2.1 08/23/2020 Copyright 2020

Error: Either you forgot a required option, or you are a New User.

    New User -
            run: mcpt -help=tour
            or

            run: mcpt -help
            to review options

            or see the MCPT User Guide.

$ go version go version go1.15 windows/amd64

owner@Mr-Finn MINGW64 ~/TTT/NEW/MCPT $ go env set GOMOD= set CGO_CFLAGS=-g -O2 set CGO_CPPFLAGS= set CGO_CXXFLAGS=-g -O2 set CGO_FFLAGS=-g -O2 set CGO_LDFLAGS=-g -O2 set PKG_CONFIG=pkg-config set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\owner\AppData\Local\Temp\go-build280805674=/tmp/go-build -gno-record-gcc-switches

What did you see instead?

$ ./mcpt.exe Exception 0xc0000005 0x0 0x7ffa795d0fff 0xa50000 PC=0xa50000

runtime: unknown pc 0xa50000 stack: frame={sp:0x92e820, fp:0x0} stack=[0x0,0x92ff00) 000000000092e720: 000000000092e768 000000000092e790 000000000092e730: 000000000092e758 000000000092e750 000000000092e740: 000000000092e754 0000000000170000 000000000092e750: 0000000000000000 0000000000000000 000000000092e760: 0000000000000000 0000000000000005 000000000092e770: 000000000092e8b8 00007ffa76f29f38 000000000092e780: 0000000000ab42c0 00007ffa793f46ce 000000000092e790: 00007ffa793d00e8 0000000000af6b20 000000000092e7a0: 00007ffa76f29f32 000000000092e7f0 000000000092e7b0: 004f0044004e0049 0053005c00530057 000000000092e7c0: 0000000000ab42c0 0000000000000000 000000000092e7d0: 0000000000aeaf20 006c006400050005 000000000092e7e0: 00007ffa76f29f32 0000000000000000 000000000092e7f0: 00007ffa00000000 00007ffa793d00e8 000000000092e800: 0000000000000000 0000000000000000 000000000092e810: 0000000000000001 00007ffa793f3783 000000000092e820: <0000000000000001 0000000000000000 000000000092e830: 0000000000000000 000000000092e928 000000000092e840: 0000000000000000 0000000000000000 000000000092e850: 0000000000000000 0000000000000000 000000000092e860: 0000000000af6b20 00007ffa79520f00 000000000092e870: 0000000000ab42c0 00007ffa79523520 000000000092e880: 000000000000097d 00007ffa7697ccb8 000000000092e890: 00007ffa7697a148 00007ffa79520f28 000000000092e8a0: 00007ffa79533d4f 00007ffa76970000 000000000092e8b0: 00007ffa79525b14 00007ffa79450aa0 000000000092e8c0: 0000000000000000 0000000000000000 000000000092e8d0: 0000000000000000 0000000000000000 000000000092e8e0: 0000000000af5f40 0000000000000044 000000000092e8f0: 0000000000000003 00007ffa7953a3f0 000000000092e900: 0000000000000001 000000000092eb00 000000000092e910: 0000000000aeaf20 00007ffa79431448 runtime: unknown pc 0xa50000 stack: frame={sp:0x92e820, fp:0x0} stack=[0x0,0x92ff00) 000000000092e720: 000000000092e768 000000000092e790 000000000092e730: 000000000092e758 000000000092e750 000000000092e740: 000000000092e754 0000000000170000 000000000092e750: 0000000000000000 0000000000000000 000000000092e760: 0000000000000000 0000000000000005 000000000092e770: 000000000092e8b8 00007ffa76f29f38 000000000092e780: 0000000000ab42c0 00007ffa793f46ce 000000000092e790: 00007ffa793d00e8 0000000000af6b20 000000000092e7a0: 00007ffa76f29f32 000000000092e7f0 000000000092e7b0: 004f0044004e0049 0053005c00530057 000000000092e7c0: 0000000000ab42c0 0000000000000000 000000000092e7d0: 0000000000aeaf20 006c006400050005 000000000092e7e0: 00007ffa76f29f32 0000000000000000 000000000092e7f0: 00007ffa00000000 00007ffa793d00e8 000000000092e800: 0000000000000000 0000000000000000 000000000092e810: 0000000000000001 00007ffa793f3783 000000000092e820: <0000000000000001 0000000000000000 000000000092e830: 0000000000000000 000000000092e928 000000000092e840: 0000000000000000 0000000000000000 000000000092e850: 0000000000000000 0000000000000000 000000000092e860: 0000000000af6b20 00007ffa79520f00 000000000092e870: 0000000000ab42c0 00007ffa79523520 000000000092e880: 000000000000097d 00007ffa7697ccb8 000000000092e890: 00007ffa7697a148 00007ffa79520f28 000000000092e8a0: 00007ffa79533d4f 00007ffa76970000 000000000092e8b0: 00007ffa79525b14 00007ffa79450aa0 000000000092e8c0: 0000000000000000 0000000000000000 000000000092e8d0: 0000000000000000 0000000000000000 000000000092e8e0: 0000000000af5f40 0000000000000044 000000000092e8f0: 0000000000000003 00007ffa7953a3f0 000000000092e900: 0000000000000001 000000000092eb00 000000000092e910: 0000000000aeaf20 00007ffa79431448 rax 0x7ffa7697d85c rbx 0x7ffa7697d85a rcx 0x41 rdi 0xffffffffffbadd11 rsi 0x0 rbp 0x7ffa769a9f00 rsp 0x92e820 r8 0x0 r9 0x0 r10 0x0 r11 0x97c r12 0xc000007a r13 0x0 r14 0x7ffa7697d85c r15 0x7ffa793d0000 rip 0xa50000 rflags 0x10206 cs 0x33 fs 0x53 gs 0x2b

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 33 (5 by maintainers)

Most upvoted comments