go-llvm/llgo

net/http build fails

quarnster opened this issue · 1 comments

$ llgo-build net/http
2013/09/26 16:44:31 building net/http
panic: runtime error: index out of range [recovered]
panic: /Users/quarnster/code/3rdparty/go/src/pkg/net/http/header.go:123:1: runtime error: index out of range [recovered]
panic: /Users/quarnster/code/3rdparty/go/src/pkg/net/http/header.go:123:1: runtime error: index out of range

goroutine 1 [running]:
runtime.panic(0x42a6ea0, 0xc210c3fe40)
/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, 0xc210c3fe40)
/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, 0x462b257)
/Users/quarnster/code/3rdparty/go/src/pkg/runtime/panic.c:248 +0x106
github.com/axw/llgo.(_compiler).VisitSelectStmt(0xc21004a160, 0xc210113d60)
/Users/quarnster/code/go/src/github.com/axw/llgo/channels.go:133 +0x2f14
github.com/axw/llgo.(_compiler).VisitStmt(0xc21004a160, 0x89168c0, 0xc210113d60)
/Users/quarnster/code/go/src/github.com/axw/llgo/stmt.go:928 +0x5a5
github.com/axw/llgo.(_compiler).VisitBlockStmt(0xc21004a160, 0xc210122030, 0x891f400)
/Users/quarnster/code/go/src/github.com/axw/llgo/stmt.go:73 +0x2b4
github.com/axw/llgo.(_compiler).buildFunction(0xc21004a160, 0xc210f1b6f0, 0x0, 0xc210c3fde0, 0xc2104b4600, ...)
/Users/quarnster/code/go/src/github.com/axw/llgo/decl.go:184 +0x1132
github.com/axw/llgo.(_compiler).VisitFuncDecl(0xc21004a160, 0xc210122090, 0xc210122090, 0xc210122090)
/Users/quarnster/code/go/src/github.com/axw/llgo/decl.go:230 +0x425
github.com/axw/llgo.(_compiler).VisitDecl(0xc21004a160, 0x8911860, 0xc210122090, 0x0, 0x0)
/Users/quarnster/code/go/src/github.com/axw/llgo/decl.go:443 +0x283
github.com/axw/llgo.(*compiler).Compile(0xc21004a160, 0xc21006a240, 0xc210112a80, 0x10, 0x10, ...)
/Users/quarnster/code/go/src/github.com/axw/llgo/compiler.go:291 +0x71d
main.compileFiles(0x8911630, 0xc21004a160, 0xc21000a080, 0x10, 0x10, ...)
/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/26 16:44:32 exit status 2

axw commented

llgo-build net/http completes successfully now.