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

cmd/link: gdb frame unwinding fails on architectures with a link register #14628

Closed
mundaym opened this issue Mar 3, 2016 · 1 comment

Comments

Projects
None yet
4 participants
@mundaym
Copy link
Member

commented Mar 3, 2016

gdb is not given enough information about the stack frame layout to unwind frames on at least ppc64 and s390x, and I assume other link register architectures.

My colleague @bryanpkc has written a CL addressing this that I will be uploading shortly.

Current behavior:

(gdb) bt
#0  runtime.mallocgc (size=360, typ=0x5dbce0, flags=0, ~r3=0xffffffff1d8)
    at /sandbox/munday/go/go-linux-ppc64-bootstrap/src/runtime/malloc.go:500
#1  0x00000000000c5ff0 in runtime.malg (stacksize=0, ~r1=0x0)
    at /sandbox/munday/go/go-linux-ppc64-bootstrap/src/runtime/proc.go:2614
#2  0x0000000020000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Desired behavior:

(gdb) bt
#0  runtime.mallocgc (size=360, typ=0x5dbce0, flags=0, ~r3=0xffffffff1d8)
    at /sandbox/munday/go/go-linux-ppc64-bootstrap/src/runtime/malloc.go:500
#1  0x000000000009cf50 in runtime.newobject (typ=0x5dbce0, ~r1=0xc000000000)
    at /sandbox/munday/go/go-linux-ppc64-bootstrap/src/runtime/malloc.go:781
#2  0x00000000000c5ff0 in runtime.malg (stacksize=32768, ~r1=0x873ca0)
    at /sandbox/munday/go/go-linux-ppc64-bootstrap/src/runtime/proc.go:2614
#3  0x00000000000b9354 in runtime.mpreinit (mp=0x874460)
    at /sandbox/munday/go/go-linux-ppc64-bootstrap/src/runtime/os1_linux.go:205
#4  0x00000000000bf3a8 in runtime.mcommoninit (mp=0x874460)
    at /sandbox/munday/go/go-linux-ppc64-bootstrap/src/runtime/proc.go:494
#5  0x00000000000beef0 in runtime.schedinit ()
    at /sandbox/munday/go/go-linux-ppc64-bootstrap/src/runtime/proc.go:434
#6  0x00000000000ef824 in runtime.rt0_go ()
    at /sandbox/munday/go/go-linux-ppc64-bootstrap/src/runtime/asm_ppc64x.s:72
#7  0x0000000000000000 in ?? ()
@gopherbot

This comment has been minimized.

Copy link

commented Mar 3, 2016

CL https://golang.org/cl/20193 mentions this issue.

@bradfitz bradfitz added this to the Unplanned milestone Apr 10, 2016

@gopherbot gopherbot closed this in 55154cf Apr 26, 2016

@golang golang locked and limited conversation to collaborators Apr 26, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.