Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Issue 7748024: Add some instrumentation to catch the source of a potential double-free. (Closed)

Created:
9 years, 4 months ago by eroman
Modified:
9 years, 4 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Add some instrumentation to catch the source of a potential double-free. It saves the stack trace where initial deletion happened from. In the case where the deletion was initiated by DeleteSoon(), we will show the stacktrace for the caller of that function (rather than the actual deletion stacktrace from running the task). BUG=94179 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98540

Patch Set 1 #

Patch Set 2 : alias the liveness token too #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -2 lines) Patch
M content/plugin/npobject_stub.h View 1 2 chunks +19 lines, -0 lines 0 comments Download
M content/plugin/npobject_stub.cc View 1 2 chunks +62 lines, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
eroman
I tested this on a local Release build but base::debug::StackTrace() doesn't seem to be working. ...
9 years, 4 months ago (2011-08-26 19:14:27 UTC) #1
darin (slow to review)
LGTM... good luck!!
9 years, 4 months ago (2011-08-26 19:25:53 UTC) #2
eroman
FYI: the reason base::debug::StackTrace() is not working from release builds is due to frame pointer ...
9 years, 4 months ago (2011-08-26 20:42:05 UTC) #3
commit-bot: I haz the power
9 years, 4 months ago (2011-08-27 02:41:15 UTC) #4
Change committed as 98540

Powered by Google App Engine
This is Rietveld 408576698