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

Main sdk release crash on Ubuntu wsl #54587

Closed
goodperson9 opened this issue Jan 11, 2024 · 9 comments
Closed

Main sdk release crash on Ubuntu wsl #54587

goodperson9 opened this issue Jan 11, 2024 · 9 comments
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash.

Comments

@goodperson9
Copy link

$ curl -o package.zip --insecure https://storage.googleapis.com/dart-archive/channels/main/raw/latest/sdk/dartsdk-linux-x64-release.zip

$ unzip package.zip

$ cd dart-sdk/bin

$ ./dart
../../runtime/bin/snapshot_utils.cc: 151: error: Failed to memory map snapshot: /dart-sdk/bin/snapshots/dartdev.dart.snapshot

version=3.4.0-edge.0a543b7a7777b74453522a8f817bab8264e631dd (main) on "linux_x64"
pid=47, thread=50, isolate_group=(nil)((nil)), isolate=(nil)((nil))
os=linux, arch=x64, comp=no, sim=no
isolate_instructions=0, vm_instructions=7fe7da7a8740
fp=7fe7d3b0fb80, sp=7fe7d3b0fa48, pc=7fe7da9b10ec
pc 0x00007fe7da9b10ec fp 0x00007fe7d3b0fb80 dart::Profiler::DumpStackTrace+0x7c
pc 0x00007fe7da7a8934 fp 0x00007fe7d3b0fc60 dart::Assert::Fail+0x84
pc 0x00007fe7da7874e7 fp 0x00007fe7d3b0fd00 dart::bin::Snapshot::TryReadAppSnapshot+0x287
pc 0x00007fe7da78b479 fp 0x00007fe7d3b0fd90 dart::bin::CreateIsolateGroupAndSetup+0x1e9
pc 0x00007fe7da78862c fp 0x00007fe7d3b0fe10 dart::bin::DartDevIsolate::DartDevRunner::RunCallback+0x6c
pc 0x00007fe7da88d6c2 fp 0x00007fe7d3b0fe50 dart::bin::ThreadStart+0x52
-- End of DumpStackTrace
Aborted (core dumped)

@parlough parlough added area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash. labels Jan 11, 2024
@parlough
Copy link
Member

Thanks for reporting this! Just in case it's helpful for those that take a look at the issue, could you provide your WSL and Kernel version information? I'm not sure what information it provides, but wsl --version might provide some helpful details. Thanks :)

Commit reference: 0a543b7

@goodperson9
Copy link
Author

could you provide your WSL and Kernel version information?

Ubuntu 22.04.3 LTS

$ uname -r
4.4.0-19041-Microsoft

@parlough
Copy link
Member

\cc @rmacnak-google

@mraleph
Copy link
Member

mraleph commented Jan 11, 2024

I am pretty sure this is caused by microsoft/WSL#7569 - we did not actually change our code to work around this issue. I will make a CL for that.

@mraleph
Copy link
Member

mraleph commented Jan 11, 2024

This should fix it.

@athomas how hard would it be to setup some smoke testing under WSL on one of the bots? I don't mean running the whole test suite - but at least some simple tests.

@aam
Copy link
Contributor

aam commented Jan 11, 2024

@goodperson9 do you have same issue with WSL2?

There was another issue with WSL1 (vs WSL2) - #46643 which was closed without being addressed due to the fact that WSL2 is recommended over WSL1.

@a-siva
Copy link
Contributor

a-siva commented Jan 12, 2024

This should fix it.

Is this fix a cherry pick candidate?

@mraleph
Copy link
Member

mraleph commented Jan 12, 2024

@a-siva maybe, I am not sure. We don't get all that many reports around WSL 1 so maybe it is not worth cherry picking it.

@aam
Copy link
Contributor

aam commented Jan 13, 2024

@goodperson9 do you have same issue with WSL2?

Just tried dart-sdk 3.4.0-7.0.dev (before mraleph's fix) on WSL2 and it works fine. So the issue seems to be WSL1 only.

:~/p/dart-sdk/dart-sdk/bin$ ./dart --version
Dart SDK version: 3.4.0-7.0.dev (dev) (Fri Jan 5 20:03:29 2024 -0800) on "linux_x64"
:~/p/dart-sdk/dart-sdk/bin$ uname -r
5.15.137.3-microsoft-standard-WSL2
:~/p/dart-sdk/dart-sdk/bin$ ./dart
A command-line utility for Dart development.

Usage: dart <command|dart-file> [arguments]

Global options:
-v, --verbose               Show additional command output.
    --version               Print the Dart SDK version.
    --enable-analytics      Enable analytics.
    --disable-analytics     Disable analytics.
    --suppress-analytics    Disallow analytics for this `dart *` run without changing the analytics configuration.
-h, --help                  Print this usage information.

Available commands:
  analyze    Analyze Dart code in a directory.
  compile    Compile Dart to various formats.
  create     Create a new Dart project.
  devtools   Open DevTools (optionally connecting to an existing application).
  doc        Generate API documentation for Dart projects.
  fix        Apply automated fixes to Dart source code.
  format     Idiomatically format Dart source code.
  info       Show diagnostic information about the installed tooling.
  pub        Work with packages.
  run        Run a Dart program.
  test       Run tests for a project.

Run "dart help <command>" for more information about a command.
See https://dart.dev/tools/dart-tool for detailed documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash.
Projects
None yet
Development

No branches or pull requests

5 participants