Skip to content

Intermittent segfault when running DevTools tests #9377

@elliette

Description

@elliette

Parent issue: #9357

The DevTools integration tests are frequently failing with a segfault error (not always at the same place).

Example 1:

https://github.com/flutter/devtools/actions/runs/16842077851/job/47715187854?pr=9376

===== CRASH =====
si_signo=Segmentation fault: 11(11), si_code=SEGV_ACCERR(2), si_addr=0x0
./tool/ci/bots.sh: line 96: 11605 Abort trap: 6           dart run integration_test/run_tests.dart --test-app-device=cli --headless --shard="$SHARD"
stack trace
+ command flutter pub get
+ flutter pub get
Resolving dependencies in `/Users/runner/work/devtools/devtools`...
Downloading packages...
  _fe_analyzer_shared 85.0.0 (87.0.0 available)
  analyzer 7.7.1 (8.1.0 available)
  build 2.5.4 (3.0.1 available)
  build_resolvers 2.5.4 (3.0.1 available)
  build_runner 2.5.4 (2.6.1 available)
  build_runner_core 9.1.2 (9.2.1 available)
  characters 1.4.0 (1.4.1 available)
  dart_style 3.1.1 (3.1.2 available)
  flutter_lints 5.0.0 (6.0.0 available)
  intl 0.19.0 (0.20.2 available)
  json_rpc_2 3.0.3 (4.0.0 available)
  lints 5.1.1 (6.0.0 available)
  material_color_utilities 0.11.1 (0.13.0 available)
  mockito 5.4.6 (5.5.0 available)
  protobuf 3.1.0 (4.1.1 available)
! source_gen 2.0.0 (overridden) (3.0.0 available)
  unified_analytics 7.0.2 (8.0.5 available)
  vm_service_protos 1.0.0 (2.0.0 available)
Got dependencies in `/Users/runner/work/devtools/devtools`!
18 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
+ echo 'Preparing to run integration tests. Warning: if you see the exception '\''Web Driver Command WebDriverCommandType.screenshot failed while waiting for driver side'\'', this is a known issue and likely means that the golden image check failed (see https://github.com/flutter/flutter/issues/118470). Look at the summary of the Github Actions run to see if golden image failures have been uploaded (this only happens once all checks have completed). Download these goldens and update them in the codebase to apply the updates.'
Preparing to run integration tests. Warning: if you see the exception 'Web Driver Command WebDriverCommandType.screenshot failed while waiting for driver side', this is a known issue and likely means that the golden image check failed (see https://github.com/flutter/flutter/issues/118470). Look at the summary of the Github Actions run to see if golden image failures have been uploaded (this only happens once all checks have completed). Download these goldens and update them in the codebase to apply the updates.
+ '[' dart-cli = flutter ']'
+ '[' dart-cli = flutter-web ']'
+ '[' dart-cli = dart-cli ']'
+ dart run integration_test/run_tests.dart --test-app-device=cli --headless --shard=1/1

===== CRASH =====
si_signo=Segmentation fault: 11(11), si_code=SEGV_ACCERR(2), si_addr=0x0
./tool/ci/bots.sh: line 96: 11605 Abort trap: 6           dart run integration_test/run_tests.dart --test-app-device=cli --headless --shard="$SHARD"

Example 2:

https://github.com/flutter/devtools/actions/runs/16842077851/job/47715187841?pr=9376

===== CRASH =====
si_signo=Segmentation fault: 11(11), si_code=SEGV_ACCERR(2), si_addr=0x0
/Users/runner/work/devtools/devtools/tool/ci/../../tool/bin/dt: line 19:  3169 Abort trap: 6           "$SCRIPT_DIR/../flutter-sdk/bin/dart" run "$SCRIPT_DIR/dt.dart" "$@"
stack trace
+ command flutter pub get
+ flutter pub get
Resolving dependencies in `/Users/runner/work/devtools/devtools`...
Downloading packages..
/Users/runner/work/devtools/devtools/packages/devtools_test > /Users/runner/work/devtools/devtools/tool/flutter-sdk/bin/flutter pub get
Resolving dependencies in `/Users/runner/work/devtools/devtools`...
Downloading packages...
  _fe_analyzer_shared 85.0.0 (87.0.0 available)
  analyzer 7.7.1 (8.1.0 available)
  build 2.5.4 (3.0.1 available)
  build_resolvers 2.5.4 (3.0.1 available)
  build_runner 2.5.4 (2.6.1 available)
  build_runner_core 9.1.2 (9.2.1 available)
  characters 1.4.0 (1.4.1 available)
  dart_style 3.1.1 (3.1.2 available)
  flutter_lints 5.0.0 (6.0.0 available)
  intl 0.19.0 (0.20.2 available)
  json_rpc_2 3.0.3 (4.0.0 available)
  lints 5.1.1 (6.0.0 available)
  material_color_utilities 0.11.1 (0.13.0 available)
  mockito 5.4.6 (5.5.0 available)
  protobuf 3.1.0 (4.1.1 available)
! source_gen 2.0.0 (overridden) (3.0.0 available)
  unified_analytics 7.0.2 (8.0.5 available)
  vm_service_protos 1.0.0 (2.0.0 available)
Got dependencies in `/Users/runner/work/devtools/devtools`!
18 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
++ dt generate-code

===== CRASH =====
si_signo=Segmentation fault: 11(11), si_code=SEGV_ACCERR(2), si_addr=0x0
/Users/runner/work/devtools/devtools/tool/ci/../../tool/bin/dt: line 19:  3169 Abort trap: 6           "$SCRIPT_DIR/../flutter-sdk/bin/dart" run "$SCRIPT_DIR/dt.dart" "$@"

Example 3:

https://github.com/flutter/devtools/actions/runs/16839711340/job/47707960692?pr=9375

===== CRASH =====
si_signo=Segmentation fault: 11(11), si_code=SEGV_ACCERR(2), si_addr=0x0
ProcessException: Failed with exit code: -6. 
  Command: /Users/runner/work/devtools/devtools/tool/flutter-sdk/bin/dart run build_runner build --delete-conflicting-outputs
stack trace
4 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
  tool...
/Users/runner/work/devtools/devtools/tool > /Users/runner/work/devtools/devtools/tool/flutter-sdk/bin/flutter pub get
Resolving dependencies in `/Users/runner/work/devtools/devtools`...
Downloading packages...
  _fe_analyzer_shared 85.0.0 (87.0.0 available)
  analyzer 7.7.1 (8.1.0 available)
  build 2.5.4 (3.0.1 available)
  build_resolvers 2.5.4 (3.0.1 available)
  build_runner 2.5.4 (2.6.1 available)
  build_runner_core 9.1.2 (9.2.1 available)
  characters 1.4.0 (1.4.1 available)
  dart_style 3.1.1 (3.1.2 available)
  flutter_lints 5.0.0 (6.0.0 available)
  intl 0.19.0 (0.20.2 available)
  json_rpc_2 3.0.3 (4.0.0 available)
  lints 5.1.1 (6.0.0 available)
  material_color_utilities 0.11.1 (0.13.0 available)
  mockito 5.4.6 (5.5.0 available)
  protobuf 3.1.0 (4.1.1 available)
! source_gen 2.0.0 (overridden) (3.0.0 available)
  unified_analytics 7.0.2 (8.0.5 available)
  vm_service_protos 1.0.0 (2.0.0 available)
Got dependencies in `/Users/runner/work/devtools/devtools`!
18 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
Running build_runner build for devtools_app...
/Users/runner/work/devtools/devtools/packages/devtools_app > /Users/runner/work/devtools/devtools/tool/flutter-sdk/bin/dart run build_runner build --delete-conflicting-outputs
  Generating the build script.
  Compiling the build script.
W Configuring `build_web_compilers:entrypoint` in target `devtools_app:devtools_app` but this is not a known Builder.
  Reading the asset graph.
  Creating the asset graph.
  Doing initial build cleanup.
  Updating the asset graph.
  Building, full build because builders changed.
  0s stager:stagerAppBuilder on 12 inputs; test/test_infra/scenes/cpu_profiler/default.dart
W SDK language version 3.10.0 is newer than `analyzer` language version 3.9.0. Run `flutter packages upgrade`.
  36s stager:stagerAppBuilder on 12 inputs: 1 output; spent 21s analyzing, 8s sdk, 4s resolving, 2s reading; test/test_infra/scenes/hello.dart
  40s stager:stagerAppBuilder on 12 inputs: 5 output; spent 23s analyzing, 8s sdk, 6s resolving, 2s reading; test/test_infra/scenes/scene_test_extensions.dart
  41s stager:stagerAppBuilder on 12 inputs: 7 output, 5 no-op; spent 24s analyzing, 8s sdk, 6s resolving, 2s reading
  Running the post build.
  Writing the asset graph.
  Built with build_runner in 44s; wrote 7 outputs.
Running build_runner build for devtools_test...
/Users/runner/work/devtools/devtools/packages/devtools_test > /Users/runner/work/devtools/devtools/tool/flutter-sdk/bin/dart run build_runner build --delete-conflicting-outputs

===== CRASH =====
si_signo=Segmentation fault: 11(11), si_code=SEGV_ACCERR(2), si_addr=0x0
ProcessException: Failed with exit code: -6. 
  Command: /Users/runner/work/devtools/devtools/tool/flutter-sdk/bin/dart run build_runner build --delete-conflicting-outputs

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1high priority issues at the top of the work list, actively being worked on.testing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions