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

runtime: unexpected return pc for runtime.gopark called from 0x4 #51707

Open
neo-hu opened this issue Mar 16, 2022 · 3 comments
Open

runtime: unexpected return pc for runtime.gopark called from 0x4 #51707

neo-hu opened this issue Mar 16, 2022 · 3 comments
Labels
NeedsInvestigation
Milestone

Comments

@neo-hu
Copy link

@neo-hu neo-hu commented Mar 16, 2022

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

$ go version
go version go1.16.2

Does this issue reproduce with the latest release?

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

crash report
Mar 16 19:54:41 netpm bgpd: runtime: unexpected return pc for runtime.gopark called from 0x4
Mar 16 19:54:41 netpm bgpd: stack: frame={sp:0xc00a686dc0, fp:0xc00a686de0} stack=[0xc00a686800,0xc00a687000)
Mar 16 19:54:41 netpm bgpd: 000000c00a686cc0: 000000000179a560 0000000000485425 
Mar 16 19:54:41 netpm bgpd: 000000c00a686cd0: 0000000000000004 01000000004432ca
Mar 16 19:54:41 netpm bgpd: 000000c00a686ce0: 00007f6e341365a0 0000000000485425 
Mar 16 19:54:41 netpm bgpd: 000000c00a686cf0: 0000000000000004 00007f6e65a8e3c8
Mar 16 19:54:41 netpm bgpd: 000000c00a686d00: 0000000000000030 000000c00510ed30
Mar 16 19:54:41 netpm bgpd: 000000c00a686d10: 000000000048505c  00000000017347c0
Mar 16 19:54:41 netpm bgpd: 000000c00a686d20: 000000c000404200 0000000000000004
Mar 16 19:54:41 netpm bgpd: 000000c00a686d30: 000000c00510ed58 00000000004e9431 
Mar 16 19:54:41 netpm bgpd: 000000c00a686d40: 00000000017347c0 0000000000ecb6c0
Mar 16 19:54:41 netpm bgpd: 000000c00a686d50: 000000c0096fa0d0 000000c00510edb0
Mar 16 19:54:41 netpm bgpd: 000000c00a686d60: 00000000004e998b  000000c0096fa0d0
Mar 16 19:54:41 netpm bgpd: 000000c00a686d70: 000000c008a9c040 0000000000000021
Mar 16 19:54:41 netpm bgpd: 000000c00a686d80: 000000c00b0c21b0 00000000004f7e99 
Mar 16 19:54:41 netpm bgpd: 000000c00a686d90: 000000c000498135 0000000000ee85b3
Mar 16 19:54:41 netpm bgpd: 000000c00a686da0: 0000000000000004 0000000000000004
Mar 16 19:54:41 netpm bgpd: 000000c00a686db0: 000000c00510ee18 0000000000538353 
Mar 16 19:54:41 netpm bgpd: 000000c00a686dc0: <000000c0013ee090 0000000000ee85b3
Mar 16 19:54:41 netpm bgpd: 000000c00a686dd0: 0000000000000004 !0000000000000004
Mar 16 19:54:41 netpm bgpd: 000000c00a686de0: >0000000000000000 0000000000000000
Mar 16 19:54:41 netpm bgpd: 000000c00a686df0: 00000000004f7e99  0000000000000004
Mar 16 19:54:41 netpm bgpd: 000000c00a686e00: 0000000000ee85b3 0000000000000005
Mar 16 19:54:41 netpm bgpd: 000000c00a686e10: 0000000000000005 000000c00510ee58
Mar 16 19:54:41 netpm bgpd: 000000c00a686e20: 00000000005381f1  000000c000147270
Mar 16 19:54:41 netpm bgpd: 000000c00a686e30: 000000c0013ee090 0000000000d465c0
Mar 16 19:54:41 netpm bgpd: 000000c00a686e40: 0000000000ff5550 0000000000000000
Mar 16 19:54:41 netpm bgpd: 000000c00a686e50: 0000000000000000 000000c00510f3d8
Mar 16 19:54:41 netpm bgpd: 000000c00a686e60: 0000000000536466  000000c0013ee090
Mar 16 19:54:41 netpm bgpd: 000000c00a686e70: 000000c0013ee00a 0000000000000000
Mar 16 19:54:41 netpm bgpd: 000000c00a686e80: 0000000000000000 0000000000d465c0
Mar 16 19:54:41 netpm bgpd: 000000c00a686e90: 0000000000ff5550 0000000000000019
Mar 16 19:54:41 netpm bgpd: 000000c00a686ea0: 00000000004cafa5  000000c00052e1f4
Mar 16 19:54:41 netpm bgpd: 000000c00a686eb0: 0000000000000001 0000000000000000
Mar 16 19:54:41 netpm bgpd: 000000c00a686ec0: 00000000000000a8 0000000000000008
Mar 16 19:54:41 netpm bgpd: 000000c00a686ed0: 0000000000000000 0000000000000000
Mar 16 19:54:41 netpm bgpd: fatal error: unknown caller pc
Mar 16 19:54:41 netpm bgpd: runtime: pointer 0xc020a8a640 to unallocated span span.base()=0xc0082e4000 span.limit=0xc0082e5fe0 span.state=0
Mar 16 19:54:41 netpm bgpd: runtime: found in object at *(0xc00a67eeb0+0x8)
Mar 16 19:54:41 netpm bgpd: object=0xc00a67eeb0 s.base()=0xc00a67e000 s.limit=0xc00a67ffe0 s.spanclass=14 s.elemsize=80 s.state=mSpanInUse
Mar 16 19:54:41 netpm bgpd: *(object+0) = 0x0
Mar 16 19:54:41 netpm bgpd: *(object+8) = 0xc020a8a640 <==
Mar 16 19:54:41 netpm bgpd: *(object+16) = 0x0
Mar 16 19:54:41 netpm bgpd: *(object+24) = 0x0
Mar 16 19:54:41 netpm bgpd: *(object+32) = 0x0
Mar 16 19:54:41 netpm bgpd: *(object+40) = 0x0
Mar 16 19:54:41 netpm bgpd: *(object+48) = 0x0
Mar 16 19:54:41 netpm bgpd: *(object+56) = 0x0
Mar 16 19:54:41 netpm bgpd: *(object+64) = 0x10000005b5d79df
Mar 16 19:54:41 netpm bgpd: *(object+72) = 0x0
Mar 16 19:54:41 netpm bgpd: fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

What did you do?

We don't use many "unsafe" libraries and CGO_ENABLED=0

@heschi heschi added the NeedsInvestigation label Mar 16, 2022
@heschi heschi added this to the Backlog milestone Mar 16, 2022
@heschi
Copy link
Contributor

@heschi heschi commented Mar 16, 2022

@dmitshur
Copy link
Contributor

@dmitshur dmitshur commented Mar 16, 2022

Thanks for the report. Is this an issue you're able to reproduce? Since Go 1.16.2 is no longer supported, it would help to know if this also happens with Go 1.18, 1.17.x or tip, and a sequence of steps to reproduce the problem.

Heschi, was this meant to be a CC to @​golang/runtime?

@heschi
Copy link
Contributor

@heschi heschi commented Mar 16, 2022

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

No branches or pull requests

3 participants