go-llvm/llgo

llgo-build hash panics

quarnster opened this issue · 0 comments

$ llgo-build hash
2013/09/25 17:38:00 building hash
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
    panic: /Users/quarnster/code/3rdparty/go/src/pkg/hash/hash.go:11:1: runtime error: invalid memory address or nil pointer dereference [recovered]
    panic: /Users/quarnster/code/3rdparty/go/src/pkg/hash/hash.go:11:1: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x8 pc=0x40a7640]

goroutine 1 [running]:
runtime.panic(0x42a6ea0, 0xc210855bc0)
    /Users/quarnster/code/3rdparty/go/src/pkg/runtime/panic.c:266 +0xb6
github.com/axw/llgo.func·004()
    /Users/quarnster/code/go/src/github.com/axw/llgo/compiler.go:274 +0x87
runtime.panic(0x42a6ea0, 0xc210855bc0)
    /Users/quarnster/code/3rdparty/go/src/pkg/runtime/panic.c:248 +0x106
github.com/axw/llgo.func·006()
    /Users/quarnster/code/go/src/github.com/axw/llgo/decl.go:437 +0x2a0
runtime.panic(0x4286ea0, 0x462b939)
    /Users/quarnster/code/3rdparty/go/src/pkg/runtime/panic.c:248 +0x106
github.com/axw/llgo.(*TypeMap).nameRuntimeType(0xc21006e180, 0xc2100382a0, 0x0, 0x0)
    /Users/quarnster/code/go/src/github.com/axw/llgo/typemap.go:872 +0xa0
github.com/axw/llgo.(*TypeMap).makeRuntimeType(0xc21006e180, 0xc210855ba0, 0x12, 0x8910418, 0xc2100382a0, ...)
    /Users/quarnster/code/go/src/github.com/axw/llgo/typemap.go:495 +0x6e7
github.com/axw/llgo.(*TypeMap).toRuntime(0xc21006e180, 0x8910418, 0xc2100382a0, 0x0, 0x0)
    /Users/quarnster/code/go/src/github.com/axw/llgo/typemap.go:165 +0x117
github.com/axw/llgo.(*TypeMap).ToRuntime(0xc21006e180, 0x8910418, 0xc2100382a0, 0x8806238)
    /Users/quarnster/code/go/src/github.com/axw/llgo/typemap.go:157 +0x3b
github.com/axw/llgo.(*TypeMap).rtypeSlice(0xc21006e180, 0xc210052e00, 0xc2108570b0)
    /Users/quarnster/code/go/src/github.com/axw/llgo/typemap.go:727 +0xd6
github.com/axw/llgo.(*TypeMap).funcRuntimeType(0xc21006e180, 0xc2101643f0, 0x27, 0xc2100727e0, 0x880b5a8, ...)
    /Users/quarnster/code/go/src/github.com/axw/llgo/typemap.go:748 +0x367
github.com/axw/llgo.(*TypeMap).makeRuntimeType(0xc21006e180, 0xc2101643f0, 0x27, 0x89103a8, 0xc2100727e0, ...)
    /Users/quarnster/code/go/src/github.com/axw/llgo/typemap.go:487 +0x4f2
github.com/axw/llgo.(*TypeMap).toRuntime(0xc21006e180, 0x89103a8, 0xc2100727e0, 0x0, 0x0)
    /Users/quarnster/code/go/src/github.com/axw/llgo/typemap.go:165 +0x117
github.com/axw/llgo.(*TypeMap).ToRuntime(0xc21006e180, 0x89103a8, 0xc2100727e0, 0x3)
    /Users/quarnster/code/go/src/github.com/axw/llgo/typemap.go:157 +0x3b
github.com/axw/llgo.(*TypeMap).interfaceRuntimeType(0xc21006e180, 0xc2107eec40, 0x6f, 0xc210083200, 0x8804c98, ...)
    /Users/quarnster/code/go/src/github.com/axw/llgo/typemap.go:769 +0x3b4
github.com/axw/llgo.(*TypeMap).makeRuntimeType(0xc21006e180, 0xc2107eec40, 0x6f, 0x89103e0, 0xc210083200, ...)
    /Users/quarnster/code/go/src/github.com/axw/llgo/typemap.go:489 +0x584
github.com/axw/llgo.(*TypeMap).toRuntime(0xc21006e180, 0x89103e0, 0xc210083200, 0x0, 0x0)
    /Users/quarnster/code/go/src/github.com/axw/llgo/typemap.go:165 +0x117
github.com/axw/llgo.(*TypeMap).nameRuntimeType(0xc21006e180, 0xc21007f2a0, 0x0, 0x0)
    /Users/quarnster/code/go/src/github.com/axw/llgo/typemap.go:892 +0x755
github.com/axw/llgo.(*TypeMap).makeRuntimeType(0xc21006e180, 0xc2104d3d80, 0x16, 0x8910418, 0xc21007f2a0, ...)
    /Users/quarnster/code/go/src/github.com/axw/llgo/typemap.go:495 +0x6e7
github.com/axw/llgo.(*TypeMap).toRuntime(0xc21006e180, 0x8910418, 0xc21007f2a0, 0x0, 0x0)
    /Users/quarnster/code/go/src/github.com/axw/llgo/typemap.go:165 +0x117
github.com/axw/llgo.(*TypeMap).ToRuntime(0xc21006e180, 0x8910418, 0xc21007f2a0, 0xc210744490)
    /Users/quarnster/code/go/src/github.com/axw/llgo/typemap.go:157 +0x3b
github.com/axw/llgo.(*compiler).VisitGenDecl(0xc21004b160, 0xc21006c500)
    /Users/quarnster/code/go/src/github.com/axw/llgo/decl.go:405 +0x111
github.com/axw/llgo.(*compiler).VisitDecl(0xc21004b160, 0x8910818, 0xc21006c500, 0x0, 0x0)
    /Users/quarnster/code/go/src/github.com/axw/llgo/decl.go:445 +0x2fa
github.com/axw/llgo.(*compiler).Compile(0xc21004b160, 0xc210046ec0, 0xc2100002e0, 0x1, 0x1, ...)
    /Users/quarnster/code/go/src/github.com/axw/llgo/compiler.go:291 +0x71d
main.compileFiles(0x8910738, 0xc21004b160, 0xc21000a080, 0x1, 0x1, ...)
    /Users/quarnster/code/go/src/github.com/axw/llgo/llgo/llgo.go:116 +0x32e
main.main()
    /Users/quarnster/code/go/src/github.com/axw/llgo/llgo/llgo.go:272 +0x3b4

goroutine 3 [syscall]:
runtime.goexit()
    /Users/quarnster/code/3rdparty/go/src/pkg/runtime/proc.c:1396
2013/09/25 17:38:01 exit status 2