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

Comments

@dvyukov
Copy link
Member

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

This comment has been minimized.

Copy link
Contributor

commented Nov 27, 2013

Comment 1:

Labels changed: added go1.3maybe.

@rsc

This comment has been minimized.

Copy link
Contributor

commented Dec 4, 2013

Comment 2:

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

@rsc

This comment has been minimized.

Copy link
Contributor

commented Dec 4, 2013

Comment 3:

Labels changed: added repo-main.

@rsc rsc added this to the Unplanned milestone Apr 10, 2015

@gopherbot

This comment has been minimized.

Copy link

commented Feb 26, 2016

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

@dvyukov

This comment has been minimized.

Copy link
Member Author

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
3 participants
You can’t perform that action at this time.