Closed shaselle closed 2 months ago
@shaselle thanks for reporting the issue. Apparently there is a problem with on-demand paging of the program file, and we are working on a fix. In the meantime, you can get going by disabling on-demand paging, i.e. using a configuration file (named e.g. config.json) with the following contents:
{
"ManifestPassthrough": {
"static_map_program": "t"
}
}
and then passing that file to the ops run
command by adding -c config.json
to your command line.
@francescolavra thanks for your helpful reply and work towards fixing this issue. Disabling on-demand paging workaround is working as expected. Let me know when you need me to do more testing on my end as soon as the fix is available.
Much appreciated.
The on-demand paging issue in solved in https://github.com/nanovms/nanos/pull/2032.
If you want to try out the kernel with this fix, you can do it by adding --nanos-version 747cea9
to your ops run
command line.
I can confirm,
running Dart standalone executable with --nanos-version 747cea9
, works as expected without disabling on-demand paging.
Hello! I am currently trying to create a dart server image. Both
ops run
andops pkg
are failing with a message that I haven't seen previously.Context
I have run a standalone dart server before as a proof of concept; but its been a while. And as seen in this now resolved dart related issue: Dart has worked well with
nano
, andops
before.I seem to be running into the same error message on Ubuntu 24.04 and Debian 12. It does not matter what my app is all about. I have trimmed it down to a helloworld with zero dependencies except the Dart language.
This is happening on all current dart channels, stable, beta, and dev of Dartlang v3.4.4.
Step by step
I have tried this simple dart program:
test.dart
Then compile test.dart.
Tried running with a both simple
I get the following error
Am I missing something?
My system
ops profile
Not that it matters but, the same dart program runs okay on Docker, but I get the same error even with ops pkg fromDocker. The only dart language related error I can see is an old issue that has been fixed and closed, and predates my last working test. runtime/vm/os_thread_linux.cc:234: error: pthread error: 22 (Invalid argument) #24169