New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 630935 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
gone, assign your bugs elsewhere :)
Closed: Jul 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: ----

Blocking:
issue 630930



Sign in to add a comment

mksnapshot for android is nondeterministic

Project Member Reported by stip@chromium.org, Jul 25 2016

Issue description

mksnapshot produces different results each time it is run:

$ fetch android
$ mkdir out/gn_Release_android
$ gn gen --args='target_os="android" use_goma=true is_debug=false' out/gn_Release_android
$ ninja -C out/gn_Release_android snapshot_blob.bin  -j 1000 -v
ninja: Entering directory `out/gn_Release_android'
[1/1] python ../../v8/tools/run.py ./clang_x86_v8_arm/mksnapshot --startup_src gen/v8/snapshot.cc --random-seed 314159265 --startup_blob snapshot_blob.bin

$ sha1sum out/gn_Release_android/snapshot_blob.bin
3a72d1625946d7d72af16509cddde35d9a050478  out/gn_Release_android/snapshot_blob.bin

$ rm out/gn_Release_android/snapshot_blob.bin
$ ninja -C out/gn_Release_android snapshot_blob.bin  -j 1000 -v
$ sha1sum out/gn_Release_android/snapshot_blob.bin 
6d993830187b2f991661a8d236b0a09e117c342b  out/gn_Release_android/snapshot_blob.bin
 

Comment 1 by stip@chromium.org, Jul 25 2016

Components: Infra>Client>Android

Comment 3 by stip@chromium.org, Jul 25 2016

(moved back here). This is caused by ASLR. Prepending mksnapshot with `setarch `uname -m` solves the issue.

Comment 4 by stip@chromium.org, Jul 25 2016

*setarch `uname -m` -R
Cc: yangguo@chromium.org

Comment 6 by stip@chromium.org, Jul 25 2016

Back to https://bugs.chromium.org/p/v8/issues/detail?id=5233 again, since the fix will be in v8.
Owner: stip@chromium.org
Status: Assigned (was: Untriaged)

Comment 8 by stip@chromium.org, Jul 26 2016

Status: Fixed (was: Assigned)
This has been fixed on the v8 side.

Sign in to add a comment