Closed
Description
When getting a stack overflow, say due to an endless recursion, the stack trace may only contain the top-most n stack frames, and eventually abruptly ends in something like: code.google.com/p/go.tools/go/types.WriteType(0x210de8bd0, 0x0, 0x221065d9f0, 0x210ea3bd0) /Users/gri/golib/src/code.google.com/p/go.tools/go/types/typestring.go:95 +0x803 fp=0x2251d142d0 code.google.com/p/go.tools/go/types.WriteType(0x210de8bd0, 0x0, 0x221065d900, 0x2112a7dc0) /Users/gri/golib/src/code.google.com/p/go.tools/go/types/typestring.go:104 +0x670 fp=0x2251d14468 created by testing.RunTests /Users/gri/go/src/pkg/testing/testing.go:471 +0x978 goroutine 16 [chan receive]: testing.RunTests(0x2f1680, 0x596ce0, 0x1a, 0x1a, 0x0) /Users/gri/go/src/pkg/testing/testing.go:472 +0x9a8 testing.Main(0x2f1680, 0x596ce0, 0x1a, 0x1a, 0x59ba80, ...) /Users/gri/go/src/pkg/testing/testing.go:403 +0x8c main.main() /var/folders/00/013yr000h01000cxqpysvccm0004gv/T/go-build006333714/code.google.com/p/go.tools/go/types/_test/_testmain.go:99 +0x9c exit status 2 If the stack frame on top of the one indicated via "created by testing.RunTests" is not the first one invoked, there should be some indication of that. For instance with ... as in: code.google.com/p/go.tools/go/types.WriteType(0x210de8bd0, 0x0, 0x221065d9f0, 0x210ea3bd0) /Users/gri/golib/src/code.google.com/p/go.tools/go/types/typestring.go:95 +0x803 fp=0x2251d142d0 code.google.com/p/go.tools/go/types.WriteType(0x210de8bd0, 0x0, 0x221065d900, 0x2112a7dc0) /Users/gri/golib/src/code.google.com/p/go.tools/go/types/typestring.go:104 +0x670 fp=0x2251d14468 ... created by testing.RunTests /Users/gri/go/src/pkg/testing/testing.go:471 +0x978 goroutine 16 [chan receive]: testing.RunTests(0x2f1680, 0x596ce0, 0x1a, 0x1a, 0x0) /Users/gri/go/src/pkg/testing/testing.go:472 +0x9a8 testing.Main(0x2f1680, 0x596ce0, 0x1a, 0x1a, 0x59ba80, ...) /Users/gri/go/src/pkg/testing/testing.go:403 +0x8c main.main() /var/folders/00/013yr000h01000cxqpysvccm0004gv/T/go-build006333714/code.google.com/p/go.tools/go/types/_test/_testmain.go:99 +0x9c exit status 2