Skip to content

cgo panic in main·*Prog·loadDebugInfo #43

@gopherbot

Description

@gopherbot

by changsijay:

What steps will reproduce the problem?
./all.bash


What is the expected output? What do you see instead?
expected: 
0 known bugs; 0 unexpected bugs
I saw:
panic PC=0x4007fc38
throw+0x46 /home/csj/go/src/pkg/runtime/runtime.c:74
    throw(0x80c5403, 0x4007fc70)
runtime·mapaccess1+0x6c /home/csj/go/src/pkg/runtime/hashmap.c:769
    runtime·mapaccess1(0x40047780, 0x400405e0)
main·*Prog·loadDebugInfo+0xd83 /home/csj/go/src/cmd/cgo/gcc.go:164
    main·*Prog·loadDebugInfo(0x400475a0, 0x56)
main·main+0x36a /home/csj/go/src/cmd/cgo/main.go:66
    main·main()
mainstart+0xf /home/csj/go/src/pkg/runtime/386/asm.s:81
    mainstart()
goexit /home/csj/go/src/pkg/runtime/proc.c:135
    goexit()
make: *** [file.cgo1.go] Error 2


What is your $GOOS?  $GOARCH?
GOOS=linux
GOARCH=386

Which revision are you sync'ed to?  (hg log -l 1)
changeset:   3977:a522a4541e0e

Please provide any additional information below.
gcc --version
gcc (GCC) 4.4.2

but ~/bin already has the compiler in it, and I compile hello world passed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions