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
ldc 1.35.0+ crashes #4523
Comments
Thanks for the report. |
Hmm, I can't reproduce any problem after 10 serial attempts: $ for i in {1..10}; do /c/temp/ldc2-8399e47c-windows-multilib/bin/ldc2 -c -d-debug -cov -g -unittest -w --oq -i -Isource source/argparse/package.d -vcolumns && echo success || echo failure; done
success
success
success
success
success
success
success
success
success
success I've seen that the peak RAM is about 6.4 GB; maybe you're running too low? Although failing frontend assertions (and different ones!) because of insufficient memory don't seem to make a lot of sense. |
It's not reproducible in 100% of cases even on my laptop but I was managed to start dustmite - hope it will get some results. |
Note that the Windows GHA runners have 7 GB of RAM, so that's very close: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources |
Could you try cmd?
I have enough RAM to hold 6.4GB :) |
Nope, I don't see any point. I have used a cmd shell before the bash loop, for one or two successful runs. Also checked it here on Linux, no problems whatsoever. |
Interesting... I'll take s closer look at it. On another side, it doesn't fail on Linux with same 7GB RAM - seems I'm lucky there 😅 |
DustMite is still running (it's at "depth 14" step) and I observed few things:
|
Have you tried another box? We at Symmetry are using a build which is very close to v1.35.0, and this implies that we of course don't see any such weird issues. |
I have the only my laptop and GitHub runners. The main problem is that ldc fails on GH and only on Windows. BTW 1.34.0 works fine there. |
I'm pretty sure that the GHA issues on Windows are because of insufficient RAM. v1.35 came with slightly increased memory usage, about 5% at Symmetry IIRC. Have you seen failing assertions for the CI runners too, or just crashes with segfaults etc.? |
My CI runners are GitHub runners. Short update on the issue: dustmite is still running (I'll leave it running till Monday and then just drop that effort if it's not done) One more observation: I started ldc2 (1.35.0) and dmd(2.105.3) under valgrind on Ubuntu WSL using the following code: void main()
{
} Result of
Result from
Is it expected that ldc has so much memory errors? |
Dustmite was able to reach out a conclusion.
|
That's a frontend ICE, happening with DMD on Linux too - I've tested v2.100-2.105 (failing for all of these). So most likely not what you wanted, but nevertheless showing a general frontend problem. Please file upstream. |
ldc started crashing on Windows after 1.35.0 release (nightly build is as well). Crash happens in different places and some times compilation is successful.
Getting the code to reproduce the issue:
git clone https://github.com/andrey-zherikov/argparse cd argparse git checkout 2.x
Running ldc:
Result (crash output is truncated):
The text was updated successfully, but these errors were encountered: