-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Service Test flaky with runtime/vm/thread.cc:157: error: expected: !isolate->HasMutatorThread() #24224
Comments
Split from #24222 |
Managed to get a core dump of this happening on debug ia32. When examining it with gdb, isolate->mutator_thread_ is actually 0x0, which suggests there is a race between isolate entry/exit, i.e., the store of isolate->ClearMutatorThread() in Thread::ExitIsolate is not yet observed by the thread entering the same isolate. |
(gdb) bt (gdb) frame 4 |
... no other threads are doing anything interesting (anymore). |
Commited 01c1d2c. Let's watch the bots and see if this fixes it. It should. |
Closing. Please reopen if you see this again. |
From http://build.chromium.org/p/client.dart/builders/vm-linux-debug-ia32-be/builds/4843/steps/tests/logs/stdio :
FAILED: none-vm debug_ia32 service/pause_on_start_and_exit_test
Expected: Pass
Actual: RuntimeError
CommandOutput[vm]:
stdout:
** Launching out/DebugIA32/dart --trace-service --pause-isolates-on-start --pause-isolates-on-exit --error_on_bad_type --error_on_bad_override --ignore-unrecognized-flags --package-root=out/DebugIA32/packages/ --enable-vm-service:0 /mnt/data/b/build/slave/vm-linux-debug-ia32-be/build/sdk/runtime/observatory/tests/service/pause_on_start_and_exit_test.dart --testee-mode
vm-service: Booting dart:vmservice library.
vm-service: Registering running isolates.
vm-service: Isolate pause_on_start_and_exit_test.dart$main-743971132 743971132 registered.
** Signaled to run test queries on 57502
Observatory listening on http://127.0.0.1:57502
vm-service: Dropping event of type PauseStart (pause_on_start_and_exit_test.dart$main-743971132)
vm-service: starting stream 'Isolate'
vm-service: starting stream 'Debug'
vm-service: starting stream '_Graph'
Isolate vm-service processing service request getVM
Isolate vm-service processed service request getVM in 84 us.
Running pause_on_start_and_exit_test.dart [1/1]
Getting stream...
Subscribing...
Subscribed. Pause event is ServiceEvent(owner='isolates/743971132', kind='PauseStart')
Subscription cancelled.
Done waiting for pause event.
Isolate pause_on_start_and_exit_test.dart$main-743971132 processing service request getIsolate
Isolate pause_on_start_and_exit_test.dart$main-743971132 processed service request getIsolate in 1116 us.
Isolate pause_on_start_and_exit_test.dart$main-743971132 processing service request getIsolate
Isolate pause_on_start_and_exit_test.dart$main-743971132 processed service request getIsolate in 1131 us.
VM-VERBOSE: pause_on_start_and_exit_test.dart$main reloaded. pause event= ServiceEvent(owner='isolates/743971132', kind='PauseStart')
Resuming...
VM-VERBOSE: pause_on_start_and_exit_test.dart$main _onEvent ServiceEvent(owner='isolates/743971132', kind='Resume')
VM-VERBOSE: pause_on_start_and_exit_test.dart$main pause event ServiceEvent(owner='isolates/743971132', kind='Resume')
Isolate pause_on_start_and_exit_test.dart$main-743971132 processing service request resume
vm-service: Pushing event of type Resume to stream Debug (pause_on_start_and_exit_test.dart$main-743971132)
Isolate pause_on_start_and_exit_test.dart$main-743971132 processed service request resume in 60 us.
Hello
vm-service: Pushing event of type PauseExit to stream Debug (pause_on_start_and_exit_test.dart$main-743971132)
VM-VERBOSE: pause_on_start_and_exit_test.dart$main _onEvent ServiceEvent(owner='isolates/743971132', kind='PauseExit')
VM-VERBOSE: pause_on_start_and_exit_test.dart$main pause event ServiceEvent(owner='isolates/743971132', kind='PauseExit')
Received PauseExit
runtime/vm/thread.cc:157: error: expected: !isolate->HasMutatorThread()
** Killing script
stderr:
Unhandled exception:
Uncaught Error: Testee exited with -6
Stack Trace:
#0 _TestLauncher.launch.. (file:///mnt/data/b/build/slave/vm-linux-debug-ia32-be/build/sdk/runtime/observatory/tests/service/test_helper.dart:79:11)
#1 _RootZone.runUnary (dart:async/zone.dart:1165)
#2 _Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:502)
#3 _Future._propagateToListeners (dart:async/future_impl.dart:585)
#4 _Future._completeWithValue (dart:async/future_impl.dart:376)
#5 _Future._asyncComplete. (dart:async/future_impl.dart:430)
#6 _microtaskLoop (dart:async/schedule_microtask.dart:43)
#7 _microtaskLoopEntry (dart:async/schedule_microtask.dart:52)
#8 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:96)
#9 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:149)
#0 _rootHandleUncaughtError. (dart:async/zone.dart:894)
#1 _microtaskLoop (dart:async/schedule_microtask.dart:43)
#2 _microtaskLoopEntry (dart:async/schedule_microtask.dart:52)
#3 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:96)
#4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:149)
The text was updated successfully, but these errors were encountered: