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

Issue 14988005: Fixed bug in vm/benchmark_test.h (Closed)

Created:
7 years, 7 months ago by kustermann
Modified:
7 years, 7 months ago
Reviewers:
siva, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Fixed bug in vm/benchmark_test.h The Benchmark objects were marked as 'const', but Benchmark::CreateIsolate writes to 'Benchmark::isolate_'. This was not discovered so far, since GCC places the global Benchmark objects into a read-write section. It turns out that clang is able to create the const Benchmark objects at compile time and puts them into a read-only section of the ELF file (it probably inlines the constructor). Thus, at runtime Benchmark::CreateIsolate tries to write to a read-only address and crashes with a SEGV. R=iposva@google.com Committed: https://code.google.com/p/dart/source/detail?r=22415

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M runtime/vm/benchmark_test.h View 1 chunk +1 line, -1 line 1 comment Download

Messages

Total messages: 4 (0 generated)
kustermann
7 years, 7 months ago (2013-05-06 13:37:27 UTC) #1
Ivan Posva
LGTM -ip https://codereview.chromium.org/14988005/diff/1/runtime/vm/benchmark_test.h File runtime/vm/benchmark_test.h (right): https://codereview.chromium.org/14988005/diff/1/runtime/vm/benchmark_test.h#newcode90 runtime/vm/benchmark_test.h:90: Dart_Isolate isolate_; isolate_ is just the first ...
7 years, 7 months ago (2013-05-06 14:44:31 UTC) #2
kustermann
Committed patchset #1 manually as r22415 (presubmit successful).
7 years, 7 months ago (2013-05-06 14:49:30 UTC) #3
kustermann
7 years, 7 months ago (2013-05-06 15:13:37 UTC) #4
Message was sent while issue was closed.
On 2013/05/06 14:49:30, kustermann wrote:
> Committed patchset #1 manually as r22415 (presubmit successful).

Thank you.

Now the our clang 'vm-linux-release' builder on FYI is green (see:
http://build.chromium.org/p/client.dart.fyi/builders/vm-linux-release/builds/105).

We'll probably switch to clang on our vm builders on the main waterfall soonish
:-)

Powered by Google App Engine
This is Rietveld 408576698