forked from NixOS/nix
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
determinate-nix crashed while printing stack trace
sudo darwin-rebuild switch --flake .#aya
building the system configuration...
warning: Git tree '/Users/kamov/nix' has uncommitted changes
warning: Using 'builtins.toFile' to create a file named 'options.json' that references the store path '/nix/store/wdqrnd6fkxdsf4xn2kkfa8f42shfw0i3-source' without a proper context. The resulting file will not have a correct store reference, so this is unreliable and may stop working in the future.
error:
… while calling the 'derivationStrict' builtin
at «nix-internal»/derivation-internal.nix:37:12:
36|
37| strict = derivationStrict drvAttrs;
| ^
38|
… while evaluating derivation 'darwin-system-25.11.688427b'
whose name attribute is located at «github:NixOS/nixpkgs/09eb77e»/pkgs/stdenv/generic/make-derivation.nix:541:13
… while evaluating attribute 'activationScript' of derivation 'darwin-system-25.11.688427b'
at «github:nix-darwin/nix-darwin/688427b»/modules/system/default.nix:89:7:
88|
89| activationScript = cfg.activationScripts.script.text;
| ^
90|
… while evaluating the option `system.activationScripts.script.text':
… while evaluating definitions from `/nix/store/p4mpsb9k521jz1mxrh8kmgvgmmxms6zh-source/modules/system/activation-scripts.nix':
… while evaluating the option `system.activationScripts.postActivation.text':
… while evaluating definitions from `/nix/store/jn1kpxsc7wdhdwngrqngdi4whqc4vycb-source/nix-darwin':
… while evaluating the option `home-manager.users.kamov.home.extraBuilderCommands':
… while evaluating definitions from `/nix/store/jn1kpxsc7wdhdwngrqngdi4whqc4vycb-source/modules/launchd/default.nix':
… while evaluating the option `home-manager.users.kamov.launchd.agents.syncthing-init.config.ProgramArguments':
… while evaluating definitions from `/nix/store/jn1kpxsc7wdhdwngrqngdi4whqc4vycb-source/modules/services/syncthing.nix':
… while evaluating the option `home-manager.users.kamov.services.syncthing.settings.folders.workspace.devices."[definition 1-entry 1]".encryptionPasswordFile':
… while evaluating definitions from `/nix/store/1wv496lsadk25s5w98f7bgbb60gi2b8c-source/home/kamov':
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: attribute '"syncthing/workspace"' missing
at /Users/kamov/nix/util/default.nix:106:42:
105| # we grab the password file specifically for *this* peer
106| encryptionPasswordFile = config.sops.secrets.${devices.${peerName}.encrypted}.path;
| ^
107| } else
Determinate Nix crashed. This is a bug. Please report this at https://github.com/DeterminateSystems/nix-src/issues with the following information included:
Exception: std::__1::system_error: mutex lock failed: Invalid argument
Stack trace:
0# nix::(anonymous namespace)::onTerminate() in /nix/store/z59zm01pjwzil2qkvv0s4ibk54risy9a-determinate-nix-3.14.0/bin/nix
1# std::__terminate(void (*)()) in /nix/store/sg5gfy9cj0991jbd4xfyrl21rmqib9r2-libcxx-19.1.7/lib/libc++abi.1.0.dylib
2# __cxa_get_exception_ptr in /nix/store/sg5gfy9cj0991jbd4xfyrl21rmqib9r2-libcxx-19.1.7/lib/libc++abi.1.0.dylib
3# __cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*) in /nix/store/sg5gfy9cj0991jbd4xfyrl21rmqib9r2-libcxx-19.1.7/lib/libc++abi.1.0.dylib
4# std::__1::__throw_system_error[abi:ne190107](std::__1::error_code, char const*) in /nix/store/sg5gfy9cj0991jbd4xfyrl21rmqib9r2-libcxx-19.1.7/lib/libc++.1.0.dylib
5# std::__1::__throw_system_error[abi:ne190107](std::__1::error_code, char const*) in /nix/store/sg5gfy9cj0991jbd4xfyrl21rmqib9r2-libcxx-19.1.7/lib/libc++.1.0.dylib
6# std::__1::mutex::try_lock() in /nix/store/sg5gfy9cj0991jbd4xfyrl21rmqib9r2-libcxx-19.1.7/lib/libc++.1.0.dylib
7# nix::signalHandlerThread(unsigned int) in /nix/store/jvyghb4h4i2lxf72mhw6rl804yl6m9zb-determinate-nix-util-3.14.0/lib/libnixutil.2.32.4.dylib
8# void* std::__1::__thread_proxy[abi:fe190107]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, void (*)(unsigned int), unsigned int>>(void*) in /nix/store/jvyghb4h4i2lxf72mhw6rl804yl6m9zb-determinate-nix-util-3.14.0/lib/libnixutil.2.32.4.dylib
9# _pthread_start in /usr/lib/system/libsystem_pthread.dylib
make: *** [aya] Error 134
Metadata
> uname -a
Darwin aya 25.1.0 Darwin Kernel Version 25.1.0: Mon Oct 20 19:32:56 PDT 2025; root:xnu-12377.41.6~2/RELEASE_ARM64_T8132 arm64
Determinate Nixd daemon version: 3.14.0
Determinate Nixd client version: 3.14.0
You are running the latest version of Determinate Nix.
The following features are enabled:
* lazy-trees
nix (Determinate Nix 3.14.0) 2.32.4
Additional context
I can't redo this crash by rerunning the same command with the same config, so I am adding only this stack trace in case it might be useful for debugging.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working