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

dart2native executables don't work when found via path #39405

Closed
filiph opened this issue Nov 15, 2019 · 2 comments
Closed

dart2native executables don't work when found via path #39405

filiph opened this issue Nov 15, 2019 · 2 comments

Comments

@filiph
Copy link
Contributor

filiph commented Nov 15, 2019

An executable created with dart2native runs fine when started directly. For example:

$ ./path/to/executable
[...]

This runs okay. But when I put the executable into a directory which is in $PATH, and then run it from there, I get an error:

$ echo $PATH
[...]:/Users/filiph/bin:[...]
$ mv path/to/executable ~/bin/
$ executable
VM initialization failed: Invalid vm isolate snapshot seen

You can try this with the executables here.

Version / OS info:

  • Dart SDK Version (dart --version)
    • Dart VM version: 2.6.0 (Thu Oct 24 17:52:22 2019 +0200) on "macos_x64"
  • Whether you are using Windows, MacOSX, or Linux (if applicable)

/ cc @mit-mit

@filiph
Copy link
Contributor Author

filiph commented Nov 15, 2019

Actually, now that I think about it, the executable was created before 2.6.0. I'll try with the newest stable version.

@filiph
Copy link
Contributor Author

filiph commented Nov 15, 2019

Never mind! Re-compiling with 2.6.1 fixed this. The previous compilation happened before dart2native was stable. All good.

@filiph filiph closed this as completed Nov 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant