Skip to content

Instantly share code, notes, and snippets.

@erubboli
Created July 10, 2012 11:54
Show Gist options
  • Save erubboli/3082880 to your computer and use it in GitHub Desktop.
Save erubboli/3082880 to your computer and use it in GitHub Desktop.
2012/07/10 13:53:52 http: panic serving [::1]:49542: runtime error: invalid memory address or nil pointer dereference
/usr/local/go/src/pkg/net/http/server.go:576 (0x512b1)
_func_003: buf.Write(debug.Stack())
/private/tmp/bindist454984655/go/src/pkg/runtime/proc.c:1443 (0x10b22)
/private/tmp/bindist454984655/go/src/pkg/runtime/runtime.c:128 (0x115ee)
/private/tmp/bindist454984655/go/src/pkg/runtime/thread_darwin.c:418 (0x1475e)
/Users/erubboli/projects/go/ggp/src/cache/cache.go:28 (0x27dcd)
Cache.Get: defer resp.Body.Close()
/Users/erubboli/projects/go/ggp/src/cache/cache.go:19 (0x27c6c)
Cache.ServeHTTP: fmt.Println(cache.Get(url))
/usr/local/go/src/pkg/net/http/server.go:656 (0x4513f)
(*conn).serve: handler.ServeHTTP(w, w.req)
/private/tmp/bindist454984655/go/src/pkg/runtime/proc.c:271 (0xec28)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment