You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build this
#include <stdio.h>
int main(int argc, char *argv[])
{
printf("hello\n");
}
C program, by gcc
gcc a.c
Then try to read its symbols with Go nm command:
# go tool nm a.exe
panic: runtime error: index out of range
goroutine 16 [running]:
runtime.panic(0x813bca0, 0x81f533c)
/root/go/root/src/pkg/runtime/panic.c:279 +0xd7
main.peSymbols(0x18434150, 0x0, 0x0, 0x0)
/root/go/root/src/cmd/nm/pe.go:27 +0x433
main.nm(0xbfb4c225, 0x5)
/root/go/root/src/cmd/nm/nm.go:129 +0x286
main.main()
/root/go/root/src/cmd/nm/nm.go:75 +0x133
goroutine 17 [runnable]:
runtime.MHeap_Scavenger()
/root/go/root/src/pkg/runtime/mheap.c:507
runtime.goexit()
/root/go/root/src/pkg/runtime/proc.c:1426
goroutine 18 [runnable]:
bgsweep()
/root/go/root/src/pkg/runtime/mgc0.c:1930
runtime.goexit()
/root/go/root/src/pkg/runtime/proc.c:1426
goroutine 19 [runnable]:
runfinq()
/root/go/root/src/pkg/runtime/mgc0.c:2548
runtime.goexit()
/root/go/root/src/pkg/runtime/proc.c:1426
# hg id
7be69c14d0f3 tip
a.exe also attached.
Alex
Attachments:
The text was updated successfully, but these errors were encountered: