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: panic: First time we've seen filename #34520

ALTree opened this issue Sep 25, 2019 · 2 comments

cmd/compile: panic: First time we've seen filename #34520

ALTree opened this issue Sep 25, 2019 · 2 comments


Copy link

@ALTree ALTree commented Sep 25, 2019

$ gotip version
go version devel +8f5755e76e Wed Sep 25 07:05:18 2019 +0000 windows/amd64

The following program:

package p

func f() {
        for true {

Crashes the tip compiler with this error:

 $ gotip tool compile crash.go

panic: First time we've seen filename: "gofile..??"

goroutine 1 [running]:
cmd/internal/obj.(*Link).generateDebugLinesSymbol(0xc0002c2160, 0xc0003a22a0, 0xc0003a24d0)
        D:/users/ZZZZZ/alberto/other/temp/go/src/cmd/internal/obj/dwarf.go:42 +0xb4f
cmd/internal/obj.(*Link).populateDWARF(0xc0002c2160, 0xe36460, 0xc0002c22c0, 0xc0003a22a0, 0x0, 0x0)
        D:/users/ZZZZZ/alberto/other/temp/go/src/cmd/internal/obj/objfile.go:628 +0x323
cmd/internal/obj.Flushplist(0xc0002c2160, 0xc00008f638, 0xc00004e9e0, 0x0, 0x0)
        D:/users/ZZZZZ/alberto/other/temp/go/src/cmd/internal/obj/plist.go:112 +0x7df
        D:/users/ZZZZZ/alberto/other/temp/go/src/cmd/compile/internal/gc/gsubr.go:93 +0xc3
cmd/compile/internal/gc.compileSSA(0xc0002c22c0, 0x0)
        D:/users/ZZZZZ/alberto/other/temp/go/src/cmd/compile/internal/gc/pgen.go:323 +0x6a4
        D:/users/ZZZZZ/alberto/other/temp/go/src/cmd/compile/internal/gc/pgen.go:277 +0x33b
        D:/users/ZZZZZ/alberto/other/temp/go/src/cmd/compile/internal/gc/pgen.go:222 +0xc8
        D:/users/ZZZZZ/alberto/other/temp/go/src/cmd/compile/internal/gc/main.go:682 +0x3133
        D:/users/ZZZZZ/alberto/other/temp/go/src/cmd/compile/main.go:51 +0xb3

It compiles fine in go1.13.


This comment has been minimized.

Copy link
Member Author

@ALTree ALTree commented Sep 25, 2019

It appears that this started at ee3dded (cmd/compile: generate debug_lines in compiler).

cc @jeremyfaller


This comment has been minimized.

Copy link

@gopherbot gopherbot commented Oct 4, 2019

Change mentions this issue: test: add testcase for Issue 34520

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.