Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VM crash: 329: error: unreachable code #35588

alexmarkov opened this Issue Jan 7, 2019 · 0 comments


None yet
1 participant
Copy link

commented Jan 7, 2019

Seen 1 flaky VM crash on vm-kernel-win-product-x64 bot

  FAILED: dartk-vm product_x64 corelib_2/double_hash_code_test
  Expected: Pass
  Actual: Crash
  --- Command "vm" (took 01.000109s):
  set DART_CONFIGURATION=ProductX64 & set DART_SUPPRESS_WER=1 & set DART_CRASHPAD_HANDLER=C:\b\s\w\ir\out\ProductX64\crashpad_handler.exe & out\ProductX64\dart.exe --no_intrinsify --ignore-unrecognized-flags --packages=C:\b\s\w\ir\.packages C:\b\s\w\ir\tests\corelib_2\double_hash_code_test.dart
  exit code:
  isolate terminated by vm
  c:\b\s\w\ir\cache\builder\sdk\runtime\vm\ 329: error: unreachable code
  --- Re-run this test:
  python tools/ -n dartk-win-product-x64 corelib_2/double_hash_code_test

full log

It looks like regexp code does not handle unwind exceptions properly.
Created the following test to reproduce the crash reliably:

// VMOptions=--intrinsify
// VMOptions=--no_intrinsify

import "dart:isolate";
import "dart:async";
import "package:expect/expect.dart";

isomain1(replyPort) {
  final regexp = new RegExp('[ab]c');
  while(true) {
    Expect.equals(4, regexp.allMatches("acbcacbc").length);

void main() {
  for (int i = 0; i < 20; ++i) {
    ReceivePort reply = new ReceivePort();
    Isolate.spawn(isomain1, reply.sendPort).then((Isolate isolate) {
      new Timer(new Duration(milliseconds: 50), () {
        print('killing isolate $i');
        isolate.kill(priority: Isolate.immediate);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.