debug icon indicating copy to clipboard operation
debug copied to clipboard

Workaround for `panic: weird mapping Exec`

Open bozaro opened this issue 4 years ago • 5 comments

Workaround for errors like:

panic: weird mapping Exec

goroutine 1 [running]:
golang.org/x/debug/internal/gocore.(*Process).readSpans(0xc0003322c0, 0xc0003322c0, 0xa58f780, 0xc00e328d20, 0xc00fa6c000, 0x4b, 0x80)
	/home/bozaro/github/debug/internal/gocore/process.go:316 +0x304e
golang.org/x/debug/internal/gocore.(*Process).readHeap(0xc0003322c0)
	/home/bozaro/github/debug/internal/gocore/process.go:272 +0x77b
golang.org/x/debug/internal/gocore.Core(0xc00016e000, 0x40, 0x0, 0x0)
	/home/bozaro/github/debug/internal/gocore/process.go:157 +0x2c4
main.readCore(0xc000167d50, 0xc000167ce0, 0x783174, 0xc00011edc0)
	/home/bozaro/github/debug/cmd/viewcore/main.go:265 +0xd2
main.runRead(0xc51f60, 0xc000064de0, 0x1, 0x1)
	/home/bozaro/github/debug/cmd/viewcore/main.go:719 +0x34
github.com/spf13/cobra.(*Command).execute(0xc51f60, 0xc000064da0, 0x1, 0x1, 0xc51f60, 0xc000064da0)
	/home/bozaro/go/pkg/mod/github.com/spf13/[email protected]/command.go:766 +0x29d
github.com/spf13/cobra.(*Command).ExecuteC(0xc507a0, 0x8c0862, 0x1, 0xc000167f00)
	/home/bozaro/go/pkg/mod/github.com/spf13/[email protected]/command.go:852 +0x2ea
github.com/spf13/cobra.(*Command).Execute(...)
	/home/bozaro/go/pkg/mod/github.com/spf13/[email protected]/command.go:800
main.main()
	/home/bozaro/github/debug/cmd/viewcore/main.go:243 +0x104

Dump was generated by binary compiled with Go 1.13.9.

bozaro avatar Jul 03 '20 06:07 bozaro

This PR (HEAD: de2d4983120245d040656bba009b1b5deaaabb4a) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/debug/+/240898 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off) See the Wiki page for more info

gopherbot avatar Jul 03 '20 06:07 gopherbot

Message from Keith Randall:

Patch Set 1:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/240898. After addressing review feedback, remember to publish your drafts!

gopherbot avatar Jul 03 '20 15:07 gopherbot

Message from Artem Navrotskiy:

Patch Set 1:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/240898. After addressing review feedback, remember to publish your drafts!

gopherbot avatar Jul 05 '20 20:07 gopherbot

Message from Bryan Boreham:

Patch Set 1:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/240898. After addressing review feedback, remember to publish your drafts!

gopherbot avatar May 29 '21 16:05 gopherbot

Message from Daniel Martí:

Patch Set 1: Trust+1

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/240898. After addressing review feedback, remember to publish your drafts!

gopherbot avatar Nov 18 '21 16:11 gopherbot