staticanalysis / data-race-test

Automatically exported from code.google.com/p/data-race-test
0 stars 0 forks source link

Go: incorrect stack for object allocated during init #81

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
For the object
var DefaultServeMux = NewServeMux()
declared at pkg/net/http/server.go:842
I've got the following stack:
  Location 0xf84007b540 is 0 bytes inside a block starting at 0xf84007b540 of size 32 allocated by T0 from heap:
    #0   
    #1  net/http.init src/pkg/net/http/chunked.go:3269
    #2  net/http/httptest.init src/pkg/net/http/httptest/server.go:173
    #3  websocket.init src/pkg/websocket/websocket_test.go:274
    #4  main.init src/pkg/websocket/_testmain.go:39
    #5  runtime.main src/pkg/runtime/proc.c:233
(chunked.go contains 170 lines total)

Original issue reported on code.google.com by dvyu...@google.com on 16 Jan 2012 at 11:56

GoogleCodeExporter commented 9 years ago
It has mostly been corrected but some frames still may be lost

Original comment by mpime...@google.com on 16 Jan 2012 at 4:27