Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Stack trace incorrect in go 1.12 #180

Closed
uberbo opened this issue Jan 3, 2019 · 2 comments
Closed

Stack trace incorrect in go 1.12 #180

uberbo opened this issue Jan 3, 2019 · 2 comments
Milestone

Comments

@uberbo
Copy link

uberbo commented Jan 3, 2019

Simplest way to reproduce:

package main

import (
	"fmt"
	"github.com/pkg/errors"
)

func main() {
	fmt.Printf("%+v\n", errors.New("fail fast"))
}

Output:

Wrong file name for main.main and includes skipPleaseUseCallersFrames:

fail fast
main.main
	/gocode/src/github.com/pkg/errors/errors.go:104
runtime.skipPleaseUseCallersFrames
	/sdk/go1.12beta1/src/runtime/asm.s:40
runtime.main
	/sdk/go1.12beta1/src/runtime/proc.go:200
runtime.goexit
	/sdk/go1.12beta1/src/runtime/asm_amd64.s:1337

Using

go version go1.12beta1 darwin/amd64

Expected output

fail fast
main.main
	/gocode/src/playground/go12betapkgerrors/main.go:9
runtime.main
	/usr/local/Cellar/go/1.11.4/libexec/src/runtime/proc.go:201
runtime.goexit
	/usr/local/Cellar/go/1.11.4/libexec/src/runtime/asm_amd64.s:1333

Related: golang/go#29526 (comment)

@davecheney
Copy link
Member

davecheney commented Jan 4, 2019 via email

@davecheney davecheney added this to the 0.9 milestone Jan 5, 2019
@davecheney
Copy link
Member

Fixed in #183

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

No branches or pull requests

2 participants