Skip to content

cmd/gc: potentially invalid DWARF in Go binaries #7704

@alberts

Description

@alberts
What does 'go version' print?

tip

What steps reproduce the problem?

git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
cd linux/tools/perf
make
go test -c net/http

this works:

/path/to/perf probe -x /path/to/perf --line show_line_range

this segfaults the perf tool:

/path/to/perf probe -x /path/to/http.test --line findrunnable

this usually happened due to bad DWARF info.

What should have happened instead?

print source code of function.

Please provide any additional information below.

GDB backtrace here:

https://groups.google.com/d/msg/golang-dev/N9BHbxZtMRc/SPtt4pmdZqoJ

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions