v8/test
Andreas Haas eb131dcc7b [wasm] Disable asan for memory_copy_wrapper
The function {memory_copy_wrapper} is called directly from WebAssembly.
Before calling {memory_copy_wrapper} we do not reset the
tread-in-wasm flag. On asan builds on Windows this causes the problem
observed in the crash report.

My theory is the following: asan on Windows uses exceptions to allocate
shadow memory lazily. When {memory_copy_wrapper} accesses memory, asan
causes an exception to allocate shadow memory. This exception is first
caught by the WebAssembly trap handler, which resets the
thread-in-wasm flag but then does not handle the exception because it
cannot find a proper landing pad. Asan then handles the exception and
continues execution. However. the thread-in-wasm flag is not set
anymore. A later check of the thread-in-wasm flag then fails.

This CL disables asan for {memory_copy_wrapper} and thereby fixes the
problem. As indicated above, another solution would be to reset and set
the thread-in-wasm flag before and after the call to the C function,
respectively. However, we do not do that for other uses of direct calls
to C.

R=binji@chromium.org

Bug: chromium:952342
Change-Id: I2adb2eccf2ac25be58392d21f8f43a04414c7811
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1584326
Reviewed-by: Michael Starzinger <mstarzinger@chromium.org>
Commit-Queue: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#61040}
2019-04-26 11:21:21 +00:00
..
benchmarks [test] Skip and mark slow tests 2019-04-26 08:27:19 +00:00
cctest Revert "[csa] verify skipped write-barriers in MemoryOptimizer" 2019-04-26 10:03:33 +00:00
common [wasm-hints] Add Tests for Compilation Hints 2019-04-18 10:34:42 +00:00
debugger Redirect BytecodeArray pointers on stack when clearing DebugInfo 2019-04-11 13:01:44 +00:00
fuzzer [wasm] Use engine's allocator consistently 2019-04-03 14:33:30 +00:00
inspector Reland "[wasm] Add stack guard for logging code" 2019-04-17 10:10:25 +00:00
intl [test] Skip and mark slow tests 2019-04-26 08:27:19 +00:00
js-perf-test [test] Remove duplicated traces from the JSTests3 config 2019-04-25 18:28:45 +00:00
memory [snapshot] Remove the builtins snapshot 2018-10-31 10:18:28 +00:00
message [ast] Refactor resolution of private names 2019-04-09 23:45:14 +00:00
mjsunit [wasm] Disable asan for memory_copy_wrapper 2019-04-26 11:21:21 +00:00
mkgrokdump Revert "[heap] Skip ro-space from heap iterators, add CombinedHeapIterator." 2019-04-12 16:38:00 +00:00
mozilla [test] Skip and mark slow tests 2019-04-26 08:27:19 +00:00
preparser [test] Don't test jitless without embedded-builtins 2019-02-26 14:33:01 +00:00
test262 Remove always-true --harmony-string-matchall runtime flag 2019-04-25 10:46:05 +00:00
torque [torque] add references to HeapObject fields. 2019-04-11 14:11:18 +00:00
unittests Remove --win64-unwinding-info flag and always generate unwind info on Win/x64 2019-04-25 15:56:55 +00:00
wasm-js [testrunner] handle timeout param in file 2019-02-27 17:49:17 +00:00
wasm-spec-tests [wasm][bulk-memory] Check segment bounds lazily 2019-04-16 22:43:11 +00:00
webkit [test] Test more wasm variants 2019-04-09 13:41:52 +00:00
BUILD.gn [cctest] Enable shared linking for cctest 2019-04-09 12:12:19 +00:00
OWNERS Make tmrts an infra OWNER 2019-02-15 09:02:24 +00:00