dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.23k stars 1.57k forks source link

ffi_2/structs_test possibly broken by write-barrier elimination on dartk-android-release-arm #40926

Open sjindel-google opened 4 years ago

sjindel-google commented 4 years ago
/=========================================================\
| ffi_2/structs_test broke (Pass -> Crash, expected Pass) |
\=========================================================/

--- Command "vm_compile_to_kernel []" (took 916ms):
DART_CONFIGURATION=ReleaseAndroidARM /b/swarming/w/ir/pkg/vm/tool/gen_kernel --no-aot --platform=out/ReleaseAndroidARM/vm_platform_strong.dill -o /b/swarming/w/ir/out/ReleaseAndroidARM/generated_compilations/dartk/tests_ffi_2_structs_test/out.dill /b/swarming/w/ir/tests/ffi_2/structs_test.dart --packages=/b/swarming/w/ir/.packages -Ddart.developer.causal_async_stacks=true

exit code:
0

--- Command "adb_precompilation" (took 06.000115s):
Steps to push Dart VM and Dill file to an attached device. Uses (and requires) adb.

exit code:
-6

stdout:
Executing adb -s 07dafba113cc350e shell rm -Rf /data/local/tmp/testing/test ; echo AdbShellExitCode:  $?
Stdout:
AdbShellExitCode: 0
ExitCode: 0
Time: 0:00:00.086608

Executing adb -s 07dafba113cc350e shell mkdir -p /data/local/tmp/testing/test ; echo AdbShellExitCode:  $?
Stdout:
AdbShellExitCode: 0
ExitCode: 0
Time: 0:00:00.067091

Executing Skipped cached push
ExitCode: 0
Time: 0:00:00.000029

Executing adb -s 07dafba113cc350e push /b/swarming/w/ir/out/ReleaseAndroidARM/generated_compilations/dartk/tests_ffi_2_structs_test/out.dill /data/local/tmp/testing/test/out.dill
Stderr:
1172 KB/s (6023992 bytes in 5.018s)
ExitCode: 0
Time: 0:00:05.118572

Executing adb -s 07dafba113cc350e shell export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/data/local/tmp/testing/test;/data/local/tmp/testing/dart --android-log-to-stderr --deterministic --optimization-counter-threshold=50 --enable-inlining-annotations --ignore-unrecognized-flags --packages=/b/swarming/w/ir/.packages /data/local/tmp/testing/test/out.dill ; echo AdbShellExitCode:  $?
Stdout:
WARNING: linker: /data/local/tmp/testing/dart: unused DT entry: type 0x6ffffef5 arg 0x1b9c1c
WARNING: linker: /data/local/tmp/testing/dart: unused DT entry: type 0x6ffffffe arg 0x225474
WARNING: linker: /data/local/tmp/testing/dart: unused DT entry: type 0x6fffffff arg 0x3

===== CRASH =====
si_signo=Segmentation fault(11), si_code=1, si_addr=0x28
version=2.8.0-edge.eff1a9ff9706f2f6285668f6d0e2c44c42518aac (Mon Mar 9 14:37:27 2020 +0000) on "android_arm"
thread=10968, isolate=main(0xb4c92600)
isolate_instructions=b57e79c0, vm_instructions=b57e79c0
  pc 0xb5a4c398 fp 0xb3c7f008 /data/local/tmp/testing/dart+0x51e398
  pc 0xb5a4bba5 fp 0xb3c7f078 /data/local/tmp/testing/dart+0x51dba5
  pc 0xb5a44fad fp 0xb3c7f160 /data/local/tmp/testing/dart+0x516fad
  pc 0xb5a45963 fp 0xb3c7f180 dart::AllocationSinking::Optimize()
  pc 0xb5a5cb33 fp 0xb3c7f190 /data/local/tmp/testing/dart+0x52eb33
  pc 0xb5a5c2ef fp 0xb3c7f1e0 dart::CompilerPass::Run(dart::CompilerPassState*) const
  pc 0xb5a5c749 fp 0xb3c7f1f0 dart::CompilerPass::RunPipeline(dart::CompilerPass::PipelineMode, dart::CompilerPassState*)
  pc 0xb5aa6175 fp 0xb3c7f650 dart::CompileParsedFunctionHelper::Compile(dart::CompilationPipeline*)
  pc 0xb5aa66db fp 0xb3c7f838 /data/local/tmp/testing/dart+0x5786db
  pc 0xb5aa6bd7 fp 0xb3c7f880 dart::Compiler::CompileOptimizedFunction(dart::Thread*, dart::Function const&, int)
  pc 0xb599391b fp 0xb3c7f8e8 dart::DRT_OptimizeInvokedFunction(dart::NativeArguments)
-- End of DumpStackTrace
[exit     : sp(0) fp(0xb3c7f8fc) pc(0)]
[stub     : sp(0xb3c7f904) fp(0xb3c7f918) pc(0xb3f80e70)]
[dart     : sp(0xb3c7f920) fp(0xb3c7f974) pc(0xb2a4b8e4) dart:convert_Utf8Decoder_convert ]
[dart     : sp(0xb3c7f97c) fp(0xb3c7f9a8) pc(0xb2a4a804) dart:convert_Utf8Codec_decode ]
[dart     : sp(0xb3c7f9b0) fp(0xb3c7f9c8) pc(0xb2a48398) package:ffi/src/utf8.dart_Utf8_fromUtf8 ]
[dart     : sp(0xb3c7f9d0) fp(0xb3c7f9ec) pc(0xb2a40c4c) file:///b/swarming/w/ir/tests/ffi_2/structs_test.dart_::_testUtf8 ]
[dart     : sp(0xb3c7f9f4) fp(0xb3c7fa04) pc(0xb2a380b8) file:///b/swarming/w/ir/tests/ffi_2/structs_test.dart_::_main ]
[dart     : sp(0xb3c7fa0c) fp(0xb3c7fa24) pc(0xb2a37f00) file:///b/swarming/w/ir/tests/ffi_2/structs_test.dart_::_main_main ]
[dart     : sp(0xb3c7fa2c) fp(0xb3c7fa40) pc(0xb2a37cd4) dart:core__Closure@0150898_call ]
[dart     : sp(0xb3c7fa48) fp(0xb3c7fa64) pc(0xb2a36d68) dart:isolate_::__startIsolate@1026248_<anonymous closure> ]
[dart     : sp(0xb3c7fa6c) fp(0xb3c7fa84) pc(0xb2a369d4) dart:core__Closure@0150898_call ]
[dart     : sp(0xb3c7fa8c) fp(0xb3c7faa0) pc(0xb2a368d4) dart:isolate__RawReceivePortImpl@1026248__handleMessage@1026248 ]
[entry    : sp(0xb3c7faa8) fp(0xb3c7fb1c) pc(0xb3f80f40)]
Aborted
AdbShellExitCode: 134
ExitCode: -6
Time: 0:00:00.770960

--- Re-run this test:
python tools/test.py -n dartk-android-release-arm ffi_2/structs_test

/cc @mkustermann

sjindel-google commented 4 years ago

/cc @mraleph