NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
12.09k stars 1.47k forks source link

nix-instantiate --strict --xml segmentation fault on macos #2807

Open robx opened 5 years ago

robx commented 5 years ago
$ nix-instantiate --version
nix-instantiate (Nix) 2.2.2
$ nix-instantiate --strict --eval-only --xml -A haskellPackages.cassava /s/nixpkgs/ > /dev/null
trace: WARNING: `stdenv.isArm` is deprecated after 18.03. Please use `stdenv.isAarch32` instead
trace: lib.zip is deprecated, use lib.zipAttrsWith instead
trace: Warning: `showVal` is deprecated and will be removed in the next release, please use `traceSeqN`
trace: `mkStrict' is obsolete; use `mkOverride 0' instead.
trace: `lib.nixpkgsVersion` is deprecated, use `lib.version` instead!
Segmentation fault: 11
$ nix-instantiate --strict --eval-only -A haskellPackages.cassava /s/nixpkgs/ > /dev/null
trace: `lib.nixpkgsVersion` is deprecated, use `lib.version` instead!
trace: lib.zip is deprecated, use lib.zipAttrsWith instead
trace: `mkStrict' is obsolete; use `mkOverride 0' instead.
trace: types.optionSet is deprecated; use types.submodule instead
trace: `types.list` is deprecated; use `types.listOf` instead
trace: Warning: `showVal` is deprecated and will be removed in the next release, please use `traceSeqN`
trace: WARNING: `stdenv.isArm` is deprecated after 18.03. Please use `stdenv.isAarch32` instead
trace: WARNING: `stdenv.isArm` is deprecated after 18.03. Please use `stdenv.isAarch32` instead
error: i686 Linux package set can only be used with the x86 family.
$ nix-instantiate --eval-only --xml -A haskellPackages.cassava /s/nixpkgs/ > /dev/null

If I were to hazard a guess, the xml output doesn't handle an error/assert-induced abort gracefully. (Similar behaviour occurs with different packages.)

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info

stale[bot] commented 2 years ago

I closed this issue due to inactivity. → More info

robx commented 1 year ago

This still happens:

$ uname -a
Darwin ed 21.6.0 Darwin Kernel Version 21.6.0: Sat Jun 18 17:07:25 PDT 2022; root:xnu-8020.140.41~1/RELEASE_X86_64 x86_64
$ nix-instantiate --version
nix-instantiate (Nix) 2.8.1
$ cd /s/nixpkgs && git checkout 'master@{2019-05-14 18:30:00}' && git show
HEAD is now at a55c4f5f4dc Merge pull request #52165 from r-ryantm/auto-update/papirus-icon-theme
commit a55c4f5f4dcea4062d1428cefe4ae0e42523cc7c (HEAD)
Merge: 9d4cc31a169 614756aee35
Author: Vladyslav M <dywedir@pm.me>
Date:   Sat Dec 15 10:50:04 2018 +0200

    Merge pull request #52165 from r-ryantm/auto-update/papirus-icon-theme

    papirus-icon-theme: 20181007 -> 20181120

$ nix-instantiate --strict --eval-only --xml -A haskellPackages.cassava /s/nixpkgs/ > /dev/null
trace: WARNING: `stdenv.isArm` is deprecated after 18.03. Please use `stdenv.isAarch32` instead
trace: lib.zip is deprecated, use lib.zipAttrsWith instead
trace: Warning: `showVal` is deprecated and will be removed in the next release, please use `traceSeqN`
trace: `mkStrict' is obsolete; use `mkOverride 0' instead.
trace: `lib.nixpkgsVersion` is deprecated, use `lib.version` instead!
Segmentation fault: 11