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

Semantic Analysis Out of Memory when testing std.zig #10465

Closed
iacore opened this issue Dec 31, 2021 · 1 comment
Closed

Semantic Analysis Out of Memory when testing std.zig #10465

iacore opened this issue Dec 31, 2021 · 1 comment
Labels
bug Observed behavior contradicts documented or intended behavior

Comments

@iacore
Copy link
Contributor

iacore commented Dec 31, 2021

Zig Version

0.10.0-dev.40+303bad998

Steps to Reproduce

  1. Use a machine with only 2GiB of memory
  2. Clone and enter zig repository
  3. run zig test lib/std/std.zig --zig-lib-dir lib

It's possible to test each package individually, but not together. It seems like Zig does not garbage collect in "Semantic Analysis [...]" phase.

Expected Behavior

The command should work without using too much memory

Actual Behavior

zig being killed by kernel for out of memory

@iacore iacore added the bug Observed behavior contradicts documented or intended behavior label Dec 31, 2021
@Vexu
Copy link
Member

Vexu commented Dec 31, 2021

Duplicate of #6485, stage2 handles resource usage better but is not ready for use yet.

@Vexu Vexu closed this as completed Dec 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior
Projects
None yet
Development

No branches or pull requests

2 participants