Skip to content

Instantly share code, notes, and snippets.

@reiddraper
Created December 27, 2010 17:49
Show Gist options
  • Save reiddraper/756351 to your computer and use it in GitHub Desktop.
Save reiddraper/756351 to your computer and use it in GitHub Desktop.
reid-air:go_server_test reid$ ./http_server
panic: runtime error: invalid memory address or nil pointer dereference
panic PC=0x42de40
runtime.panic+0xb2 /Users/reid/Documents/repos/clones/go/src/pkg/runtime/proc.c:1028
runtime.panic(0xacee8, 0x47c6b0)
runtime.panicstring+0x69 /Users/reid/Documents/repos/clones/go/src/pkg/runtime/runtime.c:86
runtime.panicstring(0x1eb354, 0x4d4000)
runtime.sigpanic+0x144 /Users/reid/Documents/repos/clones/go/src/pkg/runtime/darwin/thread.c:460
runtime.sigpanic()
runtime.mapaccess2+0x9 /Users/reid/Documents/repos/clones/go/src/pkg/runtime/hashmap.c:830
runtime.mapaccess2(0x0, 0x47c6e4)
main.*Application·Route+0x3c /Users/reid/Documents/repos/masters/go_server_test/http_server.go:31
main.*Application·Route(0x4290a0, 0x47c6e4, 0x1, 0x0, 0x0, ...)
main.serve+0xe7 /Users/reid/Documents/repos/masters/go_server_test/http_server.go:59
main.serve(0x4b6ec0, 0x429178, 0x44bbd0, 0x4290a0, 0x4b6ec0, ...)
main.ServeApplication+0x17f /Users/reid/Documents/repos/masters/go_server_test/http_server.go:72
main.ServeApplication(0x44bbd0, 0x4290a0, 0x84adc, 0x5, 0x4290a0, ...)
main.main+0x66 /Users/reid/Documents/repos/masters/go_server_test/http_server.go:78
main.main()
runtime.mainstart+0xf /Users/reid/Documents/repos/clones/go/src/pkg/runtime/amd64/asm.s:77
runtime.mainstart()
runtime.goexit /Users/reid/Documents/repos/clones/go/src/pkg/runtime/proc.c:146
runtime.goexit()
goroutine 2 [3]:
runtime.entersyscall+0x28 /Users/reid/Documents/repos/clones/go/src/pkg/runtime/proc.c:567
runtime.entersyscall()
syscall.Syscall6+0x5 /Users/reid/Documents/repos/clones/go/src/pkg/syscall/asm_darwin_amd64.s:38
syscall.Syscall6()
syscall.kevent+0x76 /Users/reid/Documents/repos/clones/go/src/pkg/syscall/zsyscall_darwin_amd64.go:383
syscall.kevent(0x6, 0x0, 0x0, 0x44fdc8, 0xa, ...)
syscall.Kevent+0x97 /Users/reid/Documents/repos/clones/go/src/pkg/syscall/syscall_bsd.go:391
syscall.Kevent(0x6, 0x0, 0x0, 0x44fdc8, 0xa0000000a, ...)
net.*pollster·WaitFD+0x126 /Users/reid/Documents/repos/clones/go/src/pkg/net/fd_darwin.go:87
net.*pollster·WaitFD(0x44fdc0, 0x0, 0x72, 0x0, 0x0, ...)
net.*pollServer·Run+0xa3 /Users/reid/Documents/repos/clones/go/src/pkg/net/fd.go:207
net.*pollServer·Run(0x463700, 0x0)
runtime.goexit /Users/reid/Documents/repos/clones/go/src/pkg/runtime/proc.c:146
runtime.goexit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment