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

Issue 269003: Fix a crash in Logger::LogCompiledFunctions due to a presence of scripts with disposed source. (Closed)

Created:
11 years, 2 months ago by mnaganov (inactive)
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Fix a crash in Logger::LogCompiledFunctions due to a presence of scripts with disposed source. When starting JS profiling under Chromium, a map from function addresses to function names is created. During it, for sourceful scripts, an attempt to access script source is made. This can cause a crash, if a source is an external string, which already has been disposed. We had a similar problem in the past with DebugGetLoadedScripts. BUG=http://crbug.com/23768 TEST=test-log/Issue23768 Committed: http://code.google.com/p/v8/source/detail?r=3027

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fixed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -44 lines) Patch
M src/debug.cc View 2 chunks +1 line, -17 lines 0 comments Download
M src/log.cc View 1 1 chunk +23 lines, -27 lines 0 comments Download
M src/objects.h View 1 chunk +4 lines, -0 lines 0 comments Download
M src/objects-inl.h View 1 chunk +14 lines, -0 lines 0 comments Download
M test/cctest/test-log.cc View 1 1 chunk +44 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
mnaganov (inactive)
11 years, 2 months ago (2009-10-07 09:37:30 UTC) #1
Søren Thygesen Gjesse
http://codereview.chromium.org/269003/diff/1/3 File src/log.cc (right): http://codereview.chromium.org/269003/diff/1/3#newcode1099 Line 1099: AssertNoAllocation no_alloc; I suggest you move AssertNoAllocation no_alloc; ...
11 years, 2 months ago (2009-10-07 10:55:55 UTC) #2
mnaganov (inactive)
http://codereview.chromium.org/269003/diff/1/3 File src/log.cc (right): http://codereview.chromium.org/269003/diff/1/3#newcode1099 Line 1099: AssertNoAllocation no_alloc; On 2009/10/07 10:55:55, Søren Gjesse wrote: ...
11 years, 2 months ago (2009-10-07 11:40:51 UTC) #3
Søren Thygesen Gjesse
11 years, 2 months ago (2009-10-07 12:18:53 UTC) #4
LGTM

Powered by Google App Engine
This is Rietveld 408576698