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: say where the memory block was allocated #6690

Open
dvyukov opened this issue Oct 30, 2013 · 5 comments
Open

runtime/race: say where the memory block was allocated #6690

dvyukov opened this issue Oct 30, 2013 · 5 comments

Comments

@dvyukov
Copy link
Member

dvyukov commented Oct 30, 2013

C++ ThreadSanitizer describes where the memory involved in report was allocated:
http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/lit_tests/malloc_stack.cc?revision=187875&;view=markup

It would be useful to do the same for Go.

C++ ThreadSanitizer can also pronounce the name of the global (if the race in on
global). Look if it's possible in Go.
@rsc
Copy link
Contributor

rsc commented Nov 27, 2013

Comment 1:

Labels changed: added go1.3maybe.

@rsc
Copy link
Contributor

rsc commented Dec 4, 2013

Comment 2:

Labels changed: added release-none, removed go1.3maybe.

@rsc
Copy link
Contributor

rsc commented Dec 4, 2013

Comment 3:

Labels changed: added repo-main.

@gopherbot
Copy link

CL https://golang.org/cl/19958 mentions this issue.

@dvyukov
Copy link
Member Author

dvyukov commented Oct 10, 2016

Current state: https://golang.org/cl/19958 is too complex, we need to prototype an approach with threading of PC through allocation functions. It may lead to much simpler code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants