Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panic in agent v3.20.3 #636

Closed
koenpunt opened this issue Feb 1, 2023 · 7 comments
Closed

Panic in agent v3.20.3 #636

koenpunt opened this issue Feb 1, 2023 · 7 comments
Labels

Comments

@koenpunt
Copy link

koenpunt commented Feb 1, 2023

Description

Updating to v3.20.3 results in the following panic on both my Mac and containerized in kubernetes:

K8s:

[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x471223]

goroutine 6 [running]:
runtime.throw({0xa48484?, 0xc0001e17c0?})
	/usr/local/go/src/runtime/panic.go:1047 +0x5d fp=0xc0000c0d80 sp=0xc0000c0d50 pc=0x43669d
runtime.sigpanic()
	/usr/local/go/src/runtime/signal_unix.go:819 +0x369 fp=0xc0000c0dd0 sp=0xc0000c0d80 pc=0x44c329
sync.(*Pool).pin(0x0)
	/usr/local/go/src/sync/pool.go:204 +0x23 fp=0xc0000c0de8 sp=0xc0000c0dd0 pc=0x471223
sync.(*Pool).Get(0x0)
	/usr/local/go/src/sync/pool.go:131 +0x25 fp=0xc0000c0e20 sp=0xc0000c0de8 pc=0x470f85
github.com/newrelic/go-agent/internal.compress({0xc000028ac0, 0x19, 0x20}, 0x0)
	/go/pkg/mod/github.com/newrelic/go-agent@v3.20.3+incompatible/internal/compress.go:13 +0x71 fp=0xc0000c0eb8 sp=0xc0000c0e20 pc=0x7806b1
github.com/newrelic/go-agent/internal.collectorRequestInternal({0xc00002c0b0, 0xae}, {{0xa32b96, 0xa}, {0xa3abd0, 0x16}, {0x0, 0x0}, {0xc000028ac0, 0x19, ...}, ...}, ...)
	/go/pkg/mod/github.com/newrelic/go-agent@v3.20.3+incompatible/internal/collector.go:136 +0x9c fp=0xc0000c10f8 sp=0xc0000c0eb8 pc=0x77e57c
github.com/newrelic/go-agent/internal.CollectorRequest({{0xa32b96, 0xa}, {0xa3abd0, 0x16}, {0x0, 0x0}, {0xc000028ac0, 0x19, 0x20}, 0x0, ...}, ...)
	/go/pkg/mod/github.com/newrelic/go-agent@v3.20.3+incompatible/internal/collector.go:193 +0x347 fp=0xc0000c1298 sp=0xc0000c10f8 pc=0x77f347
github.com/newrelic/go-agent/internal.ConnectAttempt({0xaffae0, 0xc000114000}, {0x0, 0x0}, 0x0, {{0xc00002a056, 0x28}, 0xc0001d9440, {0xb03280, 0xc000023140}, ...})
	/go/pkg/mod/github.com/newrelic/go-agent@v3.20.3+incompatible/internal/collector.go:270 +0x2d8 fp=0xc0000c14e0 sp=0xc0000c1298 pc=0x77fc78
github.com/newrelic/go-agent.(*app).connectRoutine(0xc00004d400)
	/go/pkg/mod/github.com/newrelic/go-agent@v3.20.3+incompatible/internal_app.go:126 +0x185 fp=0xc0000c1fc8 sp=0xc0000c14e0 pc=0x7b0745
github.com/newrelic/go-agent.newApp.func2()
	/go/pkg/mod/github.com/newrelic/go-agent@v3.20.3+incompatible/internal_app.go:377 +0x26 fp=0xc0000c1fe0 sp=0xc0000c1fc8 pc=0x7b26c6
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0000c1fe8 sp=0xc0000c1fe0 pc=0x466c41
created by github.com/newrelic/go-agent.newApp
	/go/pkg/mod/github.com/newrelic/go-agent@v3.20.3+incompatible/internal_app.go:377 +0x77c

goroutine 1 [IO wait]:
runtime.gopark(0xd0?, 0x20?, 0x0?, 0x4d?, 0xc0000c4ce8?)
	/usr/local/go/src/runtime/proc.go:363 +0xd6 fp=0xc0000c4c78 sp=0xc0000c4c58 pc=0x4392b6
runtime.netpollblock(0xd0?, 0xe83880?, 0x0?)
	/usr/local/go/src/runtime/netpoll.go:526 +0xf7 fp=0xc0000c4cb0 sp=0xc0000c4c78 pc=0x431dd7
internal/poll.runtime_pollWait(0x7f4635997a58, 0x72)
	/usr/local/go/src/runtime/netpoll.go:305 +0x89 fp=0xc0000c4cd0 sp=0xc0000c4cb0 pc=0x4618e9
internal/poll.(*pollDesc).wait(0xc000191480?, 0x4?, 0x0)
	/usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x32 fp=0xc0000c4cf8 sp=0xc0000c4cd0 pc=0x4caa12
internal/poll.(*pollDesc).waitRead(...)
	/usr/local/go/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Accept(0xc000191480)
	/usr/local/go/src/internal/poll/fd_unix.go:614 +0x234 fp=0xc0000c4d90 sp=0xc0000c4cf8 pc=0x4cfc94
net.(*netFD).accept(0xc000191480)
	/usr/local/go/src/net/fd_unix.go:172 +0x35 fp=0xc0000c4e48 sp=0xc0000c4d90 pc=0x5cbc15
net.(*TCPListener).accept(0xc0000102e8)
	/usr/local/go/src/net/tcpsock_posix.go:142 +0x28 fp=0xc0000c4e78 sp=0xc0000c4e48 pc=0x5e1e28
net.(*TCPListener).Accept(0xc0000102e8)
	/usr/local/go/src/net/tcpsock.go:288 +0x3d fp=0xc0000c4ea8 sp=0xc0000c4e78 pc=0x5e0ffd
net/http.(*onceCloseListener).Accept(0xb025f0?)
	<autogenerated>:1 +0x2a fp=0xc0000c4ec0 sp=0xc0000c4ea8 pc=0x6ef84a
net/http.(*Server).Serve(0xc0001fe960, {0xb01f28, 0xc0000102e8})
	/usr/local/go/src/net/http/server.go:3070 +0x385 fp=0xc0000c4ff0 sp=0xc0000c4ec0 pc=0x6cad65
net/http.(*Server).ListenAndServe(0xc0001fe960)
	/usr/local/go/src/net/http/server.go:2999 +0x7d fp=0xc0000c5020 sp=0xc0000c4ff0 pc=0x6ca99d
main.main()
	/app/server.go:126 +0xc17 fp=0xc0000c5f80 sp=0xc0000c5020 pc=0x92c6f7
runtime.main()
	/usr/local/go/src/runtime/proc.go:250 +0x212 fp=0xc0000c5fe0 sp=0xc0000c5f80 pc=0x438ef2
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0000c5fe8 sp=0xc0000c5fe0 pc=0x466c41

goroutine 2 [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	/usr/local/go/src/runtime/proc.go:363 +0xd6 fp=0xc000048fb0 sp=0xc000048f90 pc=0x4392b6
runtime.goparkunlock(...)
	/usr/local/go/src/runtime/proc.go:369
runtime.forcegchelper()
	/usr/local/go/src/runtime/proc.go:302 +0xad fp=0xc000048fe0 sp=0xc000048fb0 pc=0x43914d
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc000048fe8 sp=0xc000048fe0 pc=0x466c41
created by runtime.init.6
	/usr/local/go/src/runtime/proc.go:290 +0x25

goroutine 3 [GC sweep wait]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	/usr/local/go/src/runtime/proc.go:363 +0xd6 fp=0xc000049790 sp=0xc000049770 pc=0x4392b6
runtime.goparkunlock(...)
	/usr/local/go/src/runtime/proc.go:369
runtime.bgsweep(0x0?)
	/usr/local/go/src/runtime/mgcsweep.go:278 +0x8e fp=0xc0000497c8 sp=0xc000049790 pc=0x424dce
runtime.gcenable.func1()
	/usr/local/go/src/runtime/mgc.go:178 +0x26 fp=0xc0000497e0 sp=0xc0000497c8 pc=0x419a86
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0000497e8 sp=0xc0000497e0 pc=0x466c41
created by runtime.gcenable
	/usr/local/go/src/runtime/mgc.go:178 +0x6b

goroutine 4 [GC scavenge wait]:
runtime.gopark(0xc000066000?, 0xafcb00?, 0x1?, 0x0?, 0x0?)
	/usr/local/go/src/runtime/proc.go:363 +0xd6 fp=0xc000049f70 sp=0xc000049f50 pc=0x4392b6
runtime.goparkunlock(...)
	/usr/local/go/src/runtime/proc.go:369
runtime.(*scavengerState).park(0xe82fe0)
	/usr/local/go/src/runtime/mgcscavenge.go:389 +0x53 fp=0xc000049fa0 sp=0xc000049f70 pc=0x422e73
runtime.bgscavenge(0x0?)
	/usr/local/go/src/runtime/mgcscavenge.go:617 +0x45 fp=0xc000049fc8 sp=0xc000049fa0 pc=0x423445
runtime.gcenable.func2()
	/usr/local/go/src/runtime/mgc.go:179 +0x26 fp=0xc000049fe0 sp=0xc000049fc8 pc=0x419a26
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc000049fe8 sp=0xc000049fe0 pc=0x466c41
created by runtime.gcenable
	/usr/local/go/src/runtime/mgc.go:179 +0xaa

goroutine 17 [finalizer wait]:
runtime.gopark(0x0?, 0xc000048670?, 0x2b?, 0x6f?, 0xc000048770?)
	/usr/local/go/src/runtime/proc.go:363 +0xd6 fp=0xc000048628 sp=0xc000048608 pc=0x4392b6
runtime.goparkunlock(...)
	/usr/local/go/src/runtime/proc.go:369
runtime.runfinq()
	/usr/local/go/src/runtime/mfinal.go:180 +0x10f fp=0xc0000487e0 sp=0xc000048628 pc=0x418b8f
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0000487e8 sp=0xc0000487e0 pc=0x466c41
created by runtime.createfing
	/usr/local/go/src/runtime/mfinal.go:157 +0x45

goroutine 5 [runnable]:
github.com/newrelic/go-agent.newApp.func1()
	/go/pkg/mod/github.com/newrelic/go-agent@v3.20.3+incompatible/internal_app.go:376 fp=0xc0000447e0 sp=0xc0000447d8 pc=0x7b2700
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0000447e8 sp=0xc0000447e0 pc=0x466c41
created by github.com/newrelic/go-agent.newApp
	/go/pkg/mod/github.com/newrelic/go-agent@v3.20.3+incompatible/internal_app.go:376 +0x738

goroutine 7 [select]:
runtime.gopark(0xc0000b3f90?, 0x2?, 0x80?, 0x40?, 0xc0000b3e94?)
	/usr/local/go/src/runtime/proc.go:363 +0xd6 fp=0xc0000b3d18 sp=0xc0000b3cf8 pc=0x4392b6
runtime.selectgo(0xc0000b3f90, 0xc0000b3e90, 0xe82ee0?, 0x0, 0xc00004d400?, 0x1)
	/usr/local/go/src/runtime/select.go:328 +0x7bc fp=0xc0000b3e58 sp=0xc0000b3d18 pc=0x44875c
github.com/newrelic/go-agent.runSampler(0xc00004d400, 0x0?)
	/go/pkg/mod/github.com/newrelic/go-agent@v3.20.3+incompatible/internal_app.go:290 +0x226 fp=0xc0000b3fc0 sp=0xc0000b3e58 pc=0x7b1c66
github.com/newrelic/go-agent.newApp.func3()
	/go/pkg/mod/github.com/newrelic/go-agent@v3.20.3+incompatible/internal_app.go:379 +0x30 fp=0xc0000b3fe0 sp=0xc0000b3fc0 pc=0x7b2670
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0000b3fe8 sp=0xc0000b3fe0 pc=0x466c41
created by github.com/newrelic/go-agent.newApp
	/go/pkg/mod/github.com/newrelic/go-agent@v3.20.3+incompatible/internal_app.go:379 +0x7d0

goroutine 8 [chan receive]:
runtime.gopark(0xc00004b690?, 0xc00004b6e8?, 0xd1?, 0x5a?, 0xc00004b6e8?)
	/usr/local/go/src/runtime/proc.go:363 +0xd6 fp=0xc00004b6b8 sp=0xc00004b698 pc=0x4392b6
runtime.chanrecv(0xc00006a5a0, 0x0, 0x1)
	/usr/local/go/src/runtime/chan.go:583 +0x49b fp=0xc00004b748 sp=0xc00004b6b8 pc=0x406cdb
runtime.chanrecv1(0xc00006a5a0?, 0xc00004b7c0?)
	/usr/local/go/src/runtime/chan.go:442 +0x18 fp=0xc00004b770 sp=0xc00004b748 pc=0x4067d8
main.main.func2()
	/app/server.go:114 +0x7c fp=0xc00004b7e0 sp=0xc00004b770 pc=0x92c83c
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc00004b7e8 sp=0xc00004b7e0 pc=0x466c41
created by main.main
	/app/server.go:111 +0xc0a

goroutine 9 [select, locked to thread]:
runtime.gopark(0xc00004bfa8?, 0x2?, 0xae?, 0x4b?, 0xc00004bfa4?)
	/usr/local/go/src/runtime/proc.go:363 +0xd6 fp=0xc00004be18 sp=0xc00004bdf8 pc=0x4392b6
runtime.selectgo(0xc00004bfa8, 0xc00004bfa0, 0x0?, 0x0, 0x0?, 0x1)
	/usr/local/go/src/runtime/select.go:328 +0x7bc fp=0xc00004bf58 sp=0xc00004be18 pc=0x44875c
runtime.ensureSigM.func1()
	/usr/local/go/src/runtime/signal_unix.go:991 +0x1b0 fp=0xc00004bfe0 sp=0xc00004bf58 pc=0x44c7d0
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc00004bfe8 sp=0xc00004bfe0 pc=0x466c41
created by runtime.ensureSigM
	/usr/local/go/src/runtime/signal_unix.go:974 +0xbd

goroutine 10 [syscall]:
runtime.notetsleepg(0x0?, 0x0?)
	/usr/local/go/src/runtime/lock_futex.go:236 +0x34 fp=0xc00023a7a0 sp=0xc00023a768 pc=0x40c0d4
os/signal.signal_recv()
	/usr/local/go/src/runtime/sigqueue.go:152 +0x2f fp=0xc00023a7c0 sp=0xc00023a7a0 pc=0x46376f
os/signal.loop()
	/usr/local/go/src/os/signal/signal_unix.go:23 +0x19 fp=0xc00023a7e0 sp=0xc00023a7c0 pc=0x7e5ef9
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc00023a7e8 sp=0xc00023a7e0 pc=0x466c41
created by os/signal.Notify.func1.1
	/usr/local/go/src/os/signal/signal.go:151 +0x2

MacOS:

fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x104a3fcb4]

goroutine 36 [running]:
runtime.throw({0x104e9ec8c?, 0x1400011b030?})
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/panic.go:1047 +0x40 fp=0x14000152d40 sp=0x14000152d10 pc=0x104a06080
runtime.sigpanic()
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/signal_unix.go:819 +0x1e4 fp=0x14000152d70 sp=0x14000152d40 pc=0x104a1c4e4
sync.(*Pool).pin(0x0)
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/sync/pool.go:204 +0x24 fp=0x14000152da0 sp=0x14000152d80 pc=0x104a3fcb4
sync.(*Pool).Get(0x0)
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/sync/pool.go:131 +0x20 fp=0x14000152de0 sp=0x14000152da0 pc=0x104a3fa30
github.com/newrelic/go-agent/internal.compress({0x1400014a200, 0x19, 0x20}, 0x0)
	/Users/koenpunt/go/pkg/mod/github.com/newrelic/go-agent@v3.20.3+incompatible/internal/compress.go:13 +0x44 fp=0x14000152e80 sp=0x14000152de0 pc=0x104cf1cb4
github.com/newrelic/go-agent/internal.collectorRequestInternal({0x14000158160, 0xae}, {{0x104e896fd, 0xa}, {0x104e91628, 0x16}, {0x0, 0x0}, {0x1400014a200, 0x19, ...}, ...}, ...)
	/Users/koenpunt/go/pkg/mod/github.com/newrelic/go-agent@v3.20.3+incompatible/internal/collector.go:136 +0x88 fp=0x140001530d0 sp=0x14000152e80 pc=0x104cf0268
github.com/newrelic/go-agent/internal.CollectorRequest({{0x104e896fd, 0xa}, {0x104e91628, 0x16}, {0x0, 0x0}, {0x1400014a200, 0x19, 0x20}, 0x0, ...}, ...)
	/Users/koenpunt/go/pkg/mod/github.com/newrelic/go-agent@v3.20.3+incompatible/internal/collector.go:193 +0x27c fp=0x14000153270 sp=0x140001530d0 pc=0x104cf0dcc
github.com/newrelic/go-agent/internal.ConnectAttempt({0x105063b20, 0x1400020e000}, {0x0, 0x0}, 0x0, {{0x14000024116, 0x28}, 0x1400028d950, {0x105067140, 0x1400018f180}, ...})
	/Users/koenpunt/go/pkg/mod/github.com/newrelic/go-agent@v3.20.3+incompatible/internal/collector.go:270 +0x204 fp=0x140001534c0 sp=0x14000153270 pc=0x104cf14e4
github.com/newrelic/go-agent.(*app).connectRoutine(0x140002aa800)
	/Users/koenpunt/go/pkg/mod/github.com/newrelic/go-agent@v3.20.3+incompatible/internal_app.go:126 +0x13c fp=0x14000153fb0 sp=0x140001534c0 pc=0x104d1bd6c
github.com/newrelic/go-agent.newApp.func2()
	/Users/koenpunt/go/pkg/mod/github.com/newrelic/go-agent@v3.20.3+incompatible/internal_app.go:377 +0x28 fp=0x14000153fd0 sp=0x14000153fb0 pc=0x104d1d718
runtime.goexit()
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/asm_arm64.s:1172 +0x4 fp=0x14000153fd0 sp=0x14000153fd0 pc=0x104a363d4
created by github.com/newrelic/go-agent.newApp
	/Users/koenpunt/go/pkg/mod/github.com/newrelic/go-agent@v3.20.3+incompatible/internal_app.go:377 +0x634

goroutine 1 [runnable]:
syscall.fcntl(0x8?, 0x2?, 0x1?)
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/syscall/zsyscall_darwin_arm64.go:318 +0xe0 fp=0x14000156b50 sp=0x14000156b50 pc=0x104a45930
syscall.CloseOnExec(...)
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/syscall/exec_unix.go:104
net.sysSocket(0x140002ce240?, 0x30?, 0x14000156c38?)
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/net/sys_cloexec.go:25 +0xc0 fp=0x14000156bb0 sp=0x14000156b50 pc=0x104b70ef0
net.(*ipStackCapabilities).probe(0x105411410)
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/net/ipsock_posix.go:28 +0x34 fp=0x14000156cb0 sp=0x14000156bb0 pc=0x104b68954
net.(*ipStackCapabilities).probe-fm()
	<autogenerated>:1 +0x28 fp=0x14000156cd0 sp=0x14000156cb0 pc=0x104b7e4f8
sync.(*Once).doSlow(0x0?, 0x0?)
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/sync/once.go:74 +0x104 fp=0x14000156d30 sp=0x14000156cd0 pc=0x104a3f864
sync.(*Once).Do(...)
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/sync/once.go:65
net.supportsIPv4map()
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/net/ipsock.go:55 +0x54 fp=0x14000156d60 sp=0x14000156d30 pc=0x104b66ea4
net.favoriteAddrFamily({0x104e84378?, 0x1050664b0?}, {0x105067a68, 0x140002ce240}, {0x0, 0x0}, {0x104e860cb?, 0x1400019c890?})
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/net/ipsock_posix.go:121 +0x14c fp=0x14000156d80 sp=0x14000156d60 pc=0x104b68dac
net.internetSocket({0x1050664b0, 0x14000122000}, {0x104e84378, 0x3}, {0x105067a68, 0x140002ce240}, {0x0, 0x0}, 0x14000156ec8?, 0x104a21884?, ...)
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/net/ipsock_posix.go:141 +0x70 fp=0x14000156e10 sp=0x14000156d80 pc=0x104b68f00
net.(*sysListener).listenTCP(0x14000156f48, {0x1050664b0?, 0x14000122000?}, 0x104e860cb?)
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/net/tcpsock_posix.go:171 +0x6c fp=0x14000156e90 sp=0x14000156e10 pc=0x104b7310c
net.(*ListenConfig).Listen(0x14000156fc8, {0x1050664b0, 0x14000122000}, {0x104e84378, 0x3}, {0x1400019c8a0, 0x5})
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/net/dial.go:638 +0x1c4 fp=0x14000156f80 sp=0x14000156e90 pc=0x104b56644
net.Listen({0x104e84378?, 0x140001ea2b8?}, {0x1400019c8a0?, 0x104e831e8?})
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/net/dial.go:711 +0x54 fp=0x14000156fe0 sp=0x14000156f80 pc=0x104b56ed4
net/http.(*Server).ListenAndServe(0x140002b6960)
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/net/http/server.go:2995 +0x5c fp=0x14000157010 sp=0x14000156fe0 pc=0x104c4e73c
main.main()
	/Users/koenpunt/Developer/koenpunt/kakhiel-graphql-go/server.go:126 +0xaf0 fp=0x14000157f70 sp=0x14000157010 pc=0x104e831f0
runtime.main()
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/proc.go:250 +0x24c fp=0x14000157fd0 sp=0x14000157f70 pc=0x104a085fc
runtime.goexit()
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/asm_arm64.s:1172 +0x4 fp=0x14000157fd0 sp=0x14000157fd0 pc=0x104a363d4

goroutine 2 [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/proc.go:363 +0xe4 fp=0x1400005cfa0 sp=0x1400005cf80 pc=0x104a089c4
runtime.goparkunlock(...)
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/proc.go:369
runtime.forcegchelper()
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/proc.go:302 +0xac fp=0x1400005cfd0 sp=0x1400005cfa0 pc=0x104a0885c
runtime.goexit()
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/asm_arm64.s:1172 +0x4 fp=0x1400005cfd0 sp=0x1400005cfd0 pc=0x104a363d4
created by runtime.init.6
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/proc.go:290 +0x24

goroutine 3 [GC sweep wait]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/proc.go:363 +0xe4 fp=0x1400005d770 sp=0x1400005d750 pc=0x104a089c4
runtime.goparkunlock(...)
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/proc.go:369
runtime.bgsweep(0x0?)
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/mgcsweep.go:278 +0xa4 fp=0x1400005d7b0 sp=0x1400005d770 pc=0x1049f4f34
runtime.gcenable.func1()
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/mgc.go:178 +0x28 fp=0x1400005d7d0 sp=0x1400005d7b0 pc=0x1049e94f8
runtime.goexit()
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/asm_arm64.s:1172 +0x4 fp=0x1400005d7d0 sp=0x1400005d7d0 pc=0x104a363d4
created by runtime.gcenable
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/mgc.go:178 +0x74

goroutine 4 [GC scavenge wait]:
runtime.gopark(0x1400007c000?, 0x104f52578?, 0x1?, 0x0?, 0x0?)
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/proc.go:363 +0xe4 fp=0x1400005df50 sp=0x1400005df30 pc=0x104a089c4
runtime.goparkunlock(...)
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/proc.go:369
runtime.(*scavengerState).park(0x1053e0f00)
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/mgcscavenge.go:389 +0x5c fp=0x1400005df80 sp=0x1400005df50 pc=0x1049f2eec
runtime.bgscavenge(0x0?)
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/mgcscavenge.go:617 +0x44 fp=0x1400005dfb0 sp=0x1400005df80 pc=0x1049f3494
runtime.gcenable.func2()
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/mgc.go:179 +0x28 fp=0x1400005dfd0 sp=0x1400005dfb0 pc=0x1049e9498
runtime.goexit()
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/asm_arm64.s:1172 +0x4 fp=0x1400005dfd0 sp=0x1400005dfd0 pc=0x104a363d4
created by runtime.gcenable
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/mgc.go:179 +0xb8

goroutine 18 [finalizer wait]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/proc.go:363 +0xe4 fp=0x14000058580 sp=0x14000058560 pc=0x104a089c4
runtime.goparkunlock(...)
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/proc.go:369
runtime.runfinq()
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/mfinal.go:180 +0x120 fp=0x140000587d0 sp=0x14000058580 pc=0x1049e8720
runtime.goexit()
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/asm_arm64.s:1172 +0x4 fp=0x140000587d0 sp=0x140000587d0 pc=0x104a363d4
created by runtime.createfing
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/mfinal.go:157 +0x84

goroutine 35 [select]:
runtime.gopark(0x1400006bf50?, 0x5?, 0x1?, 0x0?, 0x1400006bdbe?)
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/proc.go:363 +0xe4 fp=0x1400006bc30 sp=0x1400006bc10 pc=0x104a089c4
runtime.selectgo(0x1400006bf50, 0x1400006bdb4, 0x0?, 0x0, 0x0?, 0x1)
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/select.go:328 +0x688 fp=0x1400006bd50 sp=0x1400006bc30 pc=0x104a18838
github.com/newrelic/go-agent.(*app).process(0x140002aa800)
	/Users/koenpunt/go/pkg/mod/github.com/newrelic/go-agent@v3.20.3+incompatible/internal_app.go:196 +0x10c fp=0x1400006bfb0 sp=0x1400006bd50 pc=0x104d1c38c
github.com/newrelic/go-agent.newApp.func1()
	/Users/koenpunt/go/pkg/mod/github.com/newrelic/go-agent@v3.20.3+incompatible/internal_app.go:376 +0x28 fp=0x1400006bfd0 sp=0x1400006bfb0 pc=0x104d1d778
runtime.goexit()
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/asm_arm64.s:1172 +0x4 fp=0x1400006bfd0 sp=0x1400006bfd0 pc=0x104a363d4
created by github.com/newrelic/go-agent.newApp
	/Users/koenpunt/go/pkg/mod/github.com/newrelic/go-agent@v3.20.3+incompatible/internal_app.go:376 +0x5f0

goroutine 37 [runnable]:
github.com/newrelic/go-agent/internal.GetSample({0xc0eed0eb84831b08?, 0x865ec4?, 0x1053e0e00?}, {0x105067000, 0x140002aa800})
	/Users/koenpunt/go/pkg/mod/github.com/newrelic/go-agent@v3.20.3+incompatible/internal/sampler.go:28 +0x23c fp=0x1400012be40 sp=0x1400012be40 pc=0x104d01d8c
github.com/newrelic/go-agent.runSampler(0x140002aa800, 0x0?)
	/Users/koenpunt/go/pkg/mod/github.com/newrelic/go-agent@v3.20.3+incompatible/internal_app.go:287 +0x48 fp=0x1400012bfb0 sp=0x1400012be40 pc=0x104d1cd08
github.com/newrelic/go-agent.newApp.func3()
	/Users/koenpunt/go/pkg/mod/github.com/newrelic/go-agent@v3.20.3+incompatible/internal_app.go:379 +0x34 fp=0x1400012bfd0 sp=0x1400012bfb0 pc=0x104d1d6b4
runtime.goexit()
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/asm_arm64.s:1172 +0x4 fp=0x1400012bfd0 sp=0x1400012bfd0 pc=0x104a363d4
created by github.com/newrelic/go-agent.newApp
	/Users/koenpunt/go/pkg/mod/github.com/newrelic/go-agent@v3.20.3+incompatible/internal_app.go:379 +0x684

goroutine 38 [chan receive]:
runtime.gopark(0x140001b4698?, 0x140001b4688?, 0xd8?, 0x46?, 0x104d4e3ac?)
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/proc.go:363 +0xe4 fp=0x140001b46a0 sp=0x140001b4680 pc=0x104a089c4
runtime.chanrecv(0x14000380000, 0x0, 0x1)
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/chan.go:583 +0x454 fp=0x140001b4730 sp=0x140001b46a0 pc=0x1049d7174
runtime.chanrecv1(0x14000380000?, 0x140001b47b8?)
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/chan.go:442 +0x14 fp=0x140001b4760 sp=0x140001b4730 pc=0x1049d6ce4
main.main.func2()
	/Users/koenpunt/Developer/koenpunt/kakhiel-graphql-go/server.go:114 +0x74 fp=0x140001b47d0 sp=0x140001b4760 pc=0x104e83314
runtime.goexit()
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/asm_arm64.s:1172 +0x4 fp=0x140001b47d0 sp=0x140001b47d0 pc=0x104a363d4
created by main.main
	/Users/koenpunt/Developer/koenpunt/kakhiel-graphql-go/server.go:111 +0xae8

goroutine 50 [runnable, locked to thread]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/proc.go:363 +0xe4 fp=0x140001ae690 sp=0x140001ae670 pc=0x104a089c4
runtime.chansend(0x1400038a000, 0x140001ae78b, 0x1, 0x2?)
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/chan.go:259 +0x43c fp=0x140001ae720 sp=0x140001ae690 pc=0x1049d63bc
runtime.chansend1(0x14000000003?, 0x140001ae78c?)
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/chan.go:145 +0x18 fp=0x140001ae750 sp=0x140001ae720 pc=0x1049d5f68
runtime.ensureSigM.func1()
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/signal_unix.go:1002 +0x13c fp=0x140001ae7d0 sp=0x140001ae750 pc=0x104a1c87c
runtime.goexit()
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/asm_arm64.s:1172 +0x4 fp=0x140001ae7d0 sp=0x140001ae7d0 pc=0x104a363d4
created by runtime.ensureSigM
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/signal_unix.go:974 +0xf4

goroutine 66 [runnable]:
os/signal.loop()
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/os/signal/signal_unix.go:21 fp=0x140001b2fd0 sp=0x140001b2fd0 pc=0x104d4e8c0
runtime.goexit()
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/runtime/asm_arm64.s:1172 +0x4 fp=0x140001b2fd0 sp=0x140001b2fd0 pc=0x104a363d4
created by os/signal.Notify.func1.1
	/opt/homebrew/Cellar/go/1.19.1/libexec/src/os/signal/signal.go:151 +0x2c

v3.20.2 works fine.

Steps to Reproduce

Expected Behavior

NR Diag results

Your Environment

Reproduction case

Additional context

@koenpunt koenpunt added the bug label Feb 1, 2023
@iamemilio
Copy link
Contributor

Can you tell us more about how you were using the agent when this happened or provide a generic reproducer. That will help us understand this problem more accurately.

@iamemilio
Copy link
Contributor

Please also tell us what version of Go you are using.

@rittneje
Copy link
Contributor

rittneje commented Feb 4, 2023

/go/pkg/mod/github.com/newrelic/go-agent@v3.20.3+incompatible/internal/compress.go:13 +0x71 fp=0xc0000c0eb8 sp=0xc0000c0e20 pc=0x7806b1

@koenpunt Based on this part of your stack trace, it looks like you did not install this module correctly. It got installed as "incompatible", which means you are actually using the old v2 code from the v3.20.3 tag. Please fix your go.mod file to say this:

github.com/newrelic/go-agent/v3 v3.20.3

You'll also need to fix your imports, and you'll probably want to clean up your go.sum file too.

@Ak-x
Copy link

Ak-x commented Feb 7, 2023

@koenpunt can you review @rittneje 's response and validate if that is related to your issue?

@iamemilio
Copy link
Contributor

We are considering this resolved. Please re-open this ticket if this resolution does not fix your issue.

@koenpunt
Copy link
Author

Thank for your responses, haven't had the time to validate because of holidays.

@koenpunt
Copy link
Author

koenpunt commented Mar 6, 2023

It was indeed installing an old version of the module. Fixed it now. Thanks @rittneje.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants