cgo print stack line numbers

29 views
Skip to first unread message

bemi

unread,
Oct 19, 2010, 1:30:08 PM10/19/10
to golang-nuts
I am getting negative line numbers in print stack when calling panic()
from cgo module. Am I doing something wrong?, that seemed to work ok
in previous releases.

Thanks for any help with this.



panic PC=0xb7091ac4
runtime.panic+0xa9 /root/go/src/pkg/runtime/proc.c:1026
runtime.panic(0x80cc7c4, 0xb70698b0)
amk/bfile._func_001+0xc7 /root/amk/src/amk/bfile/bfile.cgo1.go:-605
amk/bfile._func_001(0xb70698e0, 0x804da78, 0xb7070500,
0xb70714e0)
runtime.panic+0xe9 /root/go/src/pkg/runtime/proc.c:1008
runtime.panic(0x80cc7c4, 0xb70698b0)
/root/amk/src/amk/util/_obj/amk/util.Panic+0x44 /root/amk/src/amk/util/
util.cgo1
.go:-26
/root/amk/src/amk/util/_obj/amk/util.Panic()
amk/bfile.NewBFileControl+0x539 /root/amk/src/amk/bfile/
bfile.cgo1.go:-579
amk/bfile.NewBFileControl(0x0, 0x9)
amk/bfile.testAll+0xa5 /root/amk/src/amk/bfile/bfile.cgo1.go:-129
amk/bfile.testAll(0xb708d3b0, 0x805f2cd)
amk/bfile.TestBFile+0x29 /root/amk/src/amk/bfile/bfile.cgo1.go:1
amk/bfile.TestBFile(0xb708d3b0, 0x0)
testing.tRunner+0x39 /root/go/src/pkg/testing/testing.go:132
testing.tRunner(0xb708d3b0, 0xb708d2a0, 0x0)
goexit /root/go/src/pkg/runtime/proc.c:146
goexit()

Andrew Gerrand

unread,
Oct 19, 2010, 5:55:31 PM10/19/10
to bemi, golang-nuts
This is a bug. Please open an issue on the tracker
http://code.google.com/p/go/issues/entry

There are already a couple of open bugs related to line numbers, but
this one looks different.

Reply all
Reply to author
Forward
0 new messages