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

Follow up on why the release action failed on macOS (0.6.13) #2912

Closed
ggreif opened this issue Nov 19, 2021 · 4 comments
Closed

Follow up on why the release action failed on macOS (0.6.13) #2912

ggreif opened this issue Nov 19, 2021 · 4 comments

Comments

@ggreif
Copy link
Contributor

ggreif commented Nov 19, 2021

We had a hiccup with the macOS-sided release action on GitHub. It failed with

copying path '/nix/store/0x2lxbjgbfddmgq4wpwbxza90jdmvmhp-nixpkgs-mozilla-src' from 'https://ic-hs-test.cachix.org'...
/Users/runner/work/_temp/fd74e0ed-0437-4954-91c1-4a4641c4fb61.sh: line 2:  2796 Segmentation fault: 11  nix-build --max-jobs 1 --argstr releaseVersion 0.6.13 -A moc -A mo-ide -A mo-doc -A js.moc -A js.moc_interpreter
Error: Process completed with exit code 139.

See https://github.com/dfinity/motoko/runs/4264083664.

So a quick-fix was installed: #2911.

We have to find out where the problem lies and how to fix it for good.

We could also run the building part of the release action (without the upload) on each master branch build to get an early warning next time.

@ggreif
Copy link
Contributor Author

ggreif commented Nov 19, 2021

#2913 was created to debug things a bit more. The build reliably fails on macOS with nix-2.4, GC_DONT_GC: 1 is needed. (It just has to be present, the value seems to not matter.)

@ggreif
Copy link
Contributor Author

ggreif commented Nov 20, 2021

I have locally just upgraded to nix-2.4 on this Mac. I get:

[nix-shell:~/motoko]$ nix-build -A moc -A mo-ide -A mo-doc -A js.moc -A js.moc_interpreter
Segmentation fault: 11

So we have a repro. Prefixing the command with env GC_DONT_GC=1 makes the problem go away.

It also goes away if I reduce the 5 attributes to any 4 :-)

Running nix-instantiate -A moc -A mo-ide -A mo-doc -A js.moc -A js.moc_interpreter also works.

@ggreif
Copy link
Contributor Author

ggreif commented Nov 20, 2021

$ nix --version
nix (Nix) 2.4

@ggreif
Copy link
Contributor Author

ggreif commented Jun 8, 2022

$ nix --version
nix (Nix) 2.8.1

The repro recipe seems to work okay.

GC_DONT_GC is eliminated.

Closing.

@ggreif ggreif closed this as completed Jun 8, 2022
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