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/compile: internal compiler error: textual export format request #16820

Closed
martisch opened this issue Aug 21, 2016 · 3 comments
Closed

cmd/compile: internal compiler error: textual export format request #16820

martisch opened this issue Aug 21, 2016 · 3 comments
Milestone

Comments

@martisch
Copy link
Contributor

  1. What version of Go are you using (go version)?
    go version devel +6a393dc Sun Aug 21 16:49:48 2016 +0000 darwin/amd64
  2. What did you do?

compile files with flags such as "-m -m" that call e.g. Nconv(n, FmtSharp)

go build -gcflags="-m -m" main.go
  1. What did you expect to see?

some debug output and normal exit

  1. What did you see instead?

internal compiler error: textual export format request

goroutine 1 [running]:
runtime/debug.Stack(0x0, 0x0, 0x0)
/Users/martisch/Documents/development/go/go/src/runtime/debug/stack.go:24 +0x79
cmd/compile/internal/gc.Fatalf(0x6408de, 0x1d, 0x0, 0x0, 0x0)
/Users/martisch/Documents/development/go/go/src/cmd/compile/internal/gc/subr.go:165 +0x248
cmd/compile/internal/gc.setfmode(0xc4203ff6e8, 0xc4203d2ce8, 0xc4203ff6d0)
/Users/martisch/Documents/development/go/go/src/cmd/compile/internal/gc/fmt.go:117 +0xda
cmd/compile/internal/gc.Nconv(0xc4203ee480, 0x4, 0x24, 0xc42002a7b0)
/Users/martisch/Documents/development/go/go/src/cmd/compile/internal/gc/fmt.go:1658 +0x47
cmd/compile/internal/gc.caninl(0xc4203ee3f0)
/Users/martisch/Documents/development/go/go/src/cmd/compile/internal/gc/inl.go:151 +0x4a3
cmd/compile/internal/gc.Main.func1(0xc42002a798, 0x1, 0x1, 0xc4203ff900)
/Users/martisch/Documents/development/go/go/src/cmd/compile/internal/gc/main.go:442 +0x5c
cmd/compile/internal/gc.(*bottomUpVisitor).visit(0xc4203ff9c0, 0xc4203ee3f0, 0xc4203e1680)
/Users/martisch/Documents/development/go/go/src/cmd/compile/internal/gc/esc.go:106 +0x2ad
cmd/compile/internal/gc.visitBottomUp(0xc42002a778, 0x1, 0x1, 0x697b58)
/Users/martisch/Documents/development/go/go/src/cmd/compile/internal/gc/esc.go:62 +0xd6
cmd/compile/internal/gc.Main()
/Users/martisch/Documents/development/go/go/src/cmd/compile/internal/gc/main.go:446 +0x26c6
cmd/compile/internal/amd64.Main()
/Users/martisch/Documents/development/go/go/src/cmd/compile/internal/amd64/galign.go:93 +0x2fa
main.main()
/Users/martisch/Documents/development/go/go/src/cmd/compile/main.go:33 +0x2a3

cc @griesemer @mdempsky

To fix extended debug output should we rather change all the call sites of Nconv and others to not use FmtSharp anymore or make the fmt.go functions ignore the FmtSharp flag for now.

@griesemer
Copy link
Contributor

@martisch Hm, yes, that code is gone. Perhaps prematurely.It may be ok to just ignore FmtSharp.

@gopherbot
Copy link

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

@quentinmit quentinmit added this to the Go1.8 milestone Aug 22, 2016
@gopherbot
Copy link

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

@golang golang locked and limited conversation to collaborators Aug 23, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants