You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.
Seems similar to #85 but without a build.rs script.
I've been trying to chase down NixOS/nixpkgs#162795 for months -- using nix for a reproducible Rust environment, I've been getting frequent Killed: 9 (SIGKILL) on M1 Mac.
In short, I've just discovered that if I remove the following from ~/.cargo/config.toml , the crashes instantly resolve:
In my case, it seemed specific to rust 1.58.1 (the latest stable in nixpkgs) + zld, which is why I closed the nixpkgs issue earlier.
However, today I started again running into a rust project frequently crashing on cargo test with Killed: 9 (SIGKILL):
$ cargo test Compiling anyhow v1.0.51 Compiling d11 v0.1.0 (/Users/n8henrie/git/aoc21-rust/d11) Finished test [unoptimized + debuginfo] target(s) in 1.64s Running unittests (/Users/n8henrie/git/aoc21-rust/target/debug/deps/d11-81afa5d4bfa2234e)error: test failed, to rerun pass '--bin d11'Caused by: process didn't exit successfully: `/Users/n8henrie/git/aoc21-rust/target/debug/deps/d11-81afa5d4bfa2234e` (signal: 9, SIGKILL: kill)
$ cargo --versioncargo 1.60.0 (d1fd9fe2c 2022-03-01)
$ zld -v@(#)PROGRAM:zld PROJECT:zld-BUILD 13:50:05 Aug 23 2021configured to support archs: i386 x86_64 x86_64h armv6 armv7 armv7s armv7m armv7k arm64LTO support using: LLVM version 13.1.6, (clang-1316.0.21.2.3) (static support for 23, runtime is 28)TAPI support using: Apple TAPI version 13.1.6 (tapi-1316.0.7.3)
Once I disabled zld, everything is working fine again.
I notice that #85 mentions some codesigning concerns; my nixpkgs issue also revealed some potential codesigning issues according to Console.app: NixOS/nixpkgs#162795 (comment)
from that repo, uses nix-develop -i to enter a pretty well isolated build environment
runs ./crashme.sh, I imagine they can reproduce the crash
Afterwards, remove the zld-relevant lines from ~/.cargo/confg and re-run ./crashme.sh and the crash is resolved.
This is not a nix issue, I just thought its reproducible build environments might be helpful context for reproducibility (which is already going to be tough without access to an M1 mac).
The issue I encountered today was in https://github.com/n8henrie/aoc21-rust, specifically the d11 crate -- I was not using nix for this, it's a pretty simple crate with minimal external dependencies, and the crash was very frequent, resolved temporarily with a cargo clean, and resolved after removing zld from my ~/.cargo/config; I hope that the nix context doesn't muddy the waters too much.
The text was updated successfully, but these errors were encountered:
Seems similar to #85 but without a
build.rs
script.I've been trying to chase down NixOS/nixpkgs#162795 for months -- using
nix
for a reproducible Rust environment, I've been getting frequentKilled: 9 (SIGKILL) on M1 Mac
.In short, I've just discovered that if I remove the following from
~/.cargo/config.toml
, the crashes instantly resolve:In my case, it seemed specific to rust
1.58.1
(the latest stable in nixpkgs) + zld, which is why I closed the nixpkgs issue earlier.However, today I started again running into a rust project frequently crashing on
cargo test
withKilled: 9 (SIGKILL)
:Once I disabled
zld
, everything is working fine again.I notice that #85 mentions some codesigning concerns; my nixpkgs issue also revealed some potential codesigning issues according to
Console.app
: NixOS/nixpkgs#162795 (comment)Here's the repo I'm using for debugging and reproducing the issue: https://github.com/n8henrie/killed-9-example
On an M1 mac, if one
~/.cargo/config
nix-develop -i
to enter a pretty well isolated build environment./crashme.sh
, I imagine they can reproduce the crashAfterwards, remove the zld-relevant lines from
~/.cargo/confg
and re-run./crashme.sh
and the crash is resolved.This is not a
nix
issue, I just thought its reproducible build environments might be helpful context for reproducibility (which is already going to be tough without access to an M1 mac).The issue I encountered today was in https://github.com/n8henrie/aoc21-rust, specifically the
d11
crate -- I was not usingnix
for this, it's a pretty simple crate with minimal external dependencies, and the crash was very frequent, resolved temporarily with acargo clean
, and resolved after removingzld
from my~/.cargo/config
; I hope that thenix
context doesn't muddy the waters too much.The text was updated successfully, but these errors were encountered: