Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime/race: crash in racereadrangepc #5175

Closed
dvyukov opened this issue Apr 1, 2013 · 1 comment
Closed

runtime/race: crash in racereadrangepc #5175

dvyukov opened this issue Apr 1, 2013 · 1 comment

Comments

@dvyukov
Copy link
Member

dvyukov commented Apr 1, 2013

$ go test -race github.com/cznic/exp/dbm
crashed inside __tsan_read_range on shadow memory for address 0x7ECC00 which is:

00000000007c3da0 0000000000003ec0 b semtable
00000000007c7c60 0000000000005240 b bufferList
00000000007ccea0 0000000000010000 B github.com/cznic/exp/dbm.onePage
00000000007dcea0 0000000000010000 B github.com/cznic/exp/dbm.zeroPage
00000000007ecea0 B end
00000000007ecea0 B enoptrbss

I suspect it has something do to with the way we map shadow for globals, both address
and size are not rounded to page size:
runtime∕race·MapShadow(noptrdata, enoptrbss - noptrdata);
so unaligned ending ends up not mapped.
@dvyukov
Copy link
Member Author

dvyukov commented Apr 3, 2013

Comment 1:

This issue was closed by revision 12b7db3.

Status changed to Fixed.

@rsc rsc added this to the Go1.1 milestone Apr 14, 2015
@rsc rsc removed the go1.1 label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants