nix-community / lorri

Your project’s nix-env [maintainer=@Profpatsch,@nyarly]
Apache License 2.0
677 stars 24 forks source link

lorri Crash Report #67

Closed jhh closed 2 years ago

jhh commented 3 years ago

Describe the bug Crash when running lorri self-upgrade on macOS.

To Reproduce Steps to reproduce the behavior:

  1. Fresh install of lorri on macOS per README, used nix-env -i lorri
  2. Create sample hello | figlet shell.nix, works fine.
  3. Run lorri self-upgrade, crash reported.

Expected behavior Upgrades without crashing

Metadata

Crash Report (report-2d792a6c-64a6-4ac4-95b3-8e7773c604c5.toml) ```toml name = 'lorri' operating_system = 'unix:OSX' crate_version = '1.5.0' explanation = ''' Panic occurred in file 'src/ops.rs' at line 820 ''' cause = ''' Failed to build the update! Exit { cmd: "\"nix-build\" \"--out-link\" \"/var/folders/0r/jlvd3gl574gd29fchxvd87lw0000gn/T/.tmpY3p0uz/result\" \"-A\" \"package\" \"--argstr\" \"type\" \"branch\" \"--argstr\" \"branch\" \"rolling-release\" \"--\" \"/Users/jeff/Library/Caches/com.github.nix-community.lorri.lorri.lorri/cas/a9146ec9593a3cbfad08b432f09c4a9e\"", status: Some( 100, ), logs: [ LogLine( "these 71 derivations will be built:", ), LogLine( " /nix/store/04dbjy491kqarxy3m956d8pcr8ajp772-structopt-derive-0.2.14.tar.gz.drv", ), LogLine( " /nix/store/0bf13cdb95iak8ki4yqmxsnzp1jl8f6h-rust_bit-vec-0.5.0.drv", ), LogLine( " /nix/store/0sk8wjflxydpc0rbqdfdb6wlsfd47jx6-serde_json-1.0.38.tar.gz.drv", ), LogLine( " /nix/store/0ykqhvnzh5pcmx681b5028lda056rssd-serde_derive-1.0.88.tar.gz.drv", ), LogLine( " /nix/store/fib1amippsc4xy6bydvznf21pqhckk98-spin-0.4.10.tar.gz.drv", ), LogLine( " /nix/store/iffhys7j8g11m1a30310b6nb0rc06ryc-rust_spin-0.4.10.drv", ), LogLine( " /nix/store/17z48qfjd29p5jpizp9mdqvlqp1a84j8-rust_lazy_static-1.2.0.drv", ), LogLine( " /nix/store/pf65ab93c03mzsclzgzpayvszpzq0zx5-rust_unicode-xid-0.1.0.drv", ), LogLine( " /nix/store/70qrx2ww4x2yvqqjrvjpplzmfdcrzi86-rust_proc-macro2-0.4.27.drv", ), LogLine( " /nix/store/31694bwrczprbqb017ww1vq1g5j8axmi-unicode-segmentation-1.2.1.tar.gz.drv", ), LogLine( " /nix/store/77dnl3gnr7dbjh23czqxhp94lakjwi2n-rust_unicode-segmentation-1.2.1.drv", ), LogLine( " /nix/store/gikmz9qcpfskmiv114jiswswp9mh9ymv-rust_heck-0.3.1.drv", ), LogLine( " /nix/store/ic37p6nmg1gyjxjs16f2i7sbywkmj7rg-rust_quote-0.6.11.drv", ), LogLine( " /nix/store/szn20g7ylcaxj8yfpazn4h0ar55im40f-syn-0.15.26.tar.gz.drv", ), LogLine( " /nix/store/j7q37siwcsk12lr37kxmar5g7l82zfw3-rust_syn-0.15.26.drv", ), LogLine( " /nix/store/1z7rxhqmhdjdwmxw3ydn3mrwkl00vrv6-rust_structopt-derive-0.2.14.drv", ), LogLine( " /nix/store/jw5cjgp97difa4kpdk266cjypwlhfpdi-rust_libc-0.2.55.drv", ), LogLine( " /nix/store/rpxwmmgn2hqgr2fh6ynzjvlrckwmn0d0-rust_bitflags-0.7.0.drv", ), LogLine( " /nix/store/xwmj0idrq4pkj7lgwk3b48l7phy34qi4-rust_fsevent-sys-0.1.6.drv", ), LogLine( " /nix/store/2085z29m75ilccblpqfslq8r434kqvy7-rust_fsevent-0.2.17.drv", ), LogLine( " /nix/store/brc9sf77sdnrzwzvv2cjmhvabvgppcm4-rust_cfg-if-0.1.6.drv", ), LogLine( " /nix/store/jk8gfif3gy4k0rf8pgpqvv06z8a6a5vy-rust_bitflags-1.0.4.drv", ), LogLine( " /nix/store/yi25winm2g6ql4icbz85xz8ifqrsky1d-rust_void-1.0.2.drv", ), LogLine( " /nix/store/2lj3hrw5b2n9djj871cyqj30g1p1i8ws-rust_nix-0.14.0.drv", ), LogLine( " /nix/store/2wfnp9zailldjsgy28dgdv91hz3pnh7k-rust_rand_os-0.1.2.drv", ), LogLine( " /nix/store/kj4x512ry3agnwfgb32fsnhkyfyibkvf-rust_unicode-width-0.1.5.drv", ), LogLine( " /nix/store/3318k39lx49pd6knlkzsffh6hplnmyb5-rust_textwrap-0.10.0.drv", ), LogLine( " /nix/store/8ra3ndnbkd51i7yvj4g8rj1bdwiqllv0-vec1-1.1.0.tar.gz.drv", ), LogLine( " /nix/store/3rircyjcqy8rm94fxi7mxwzn4chzi8kv-rust_vec1-1.1.0.drv", ), LogLine( " /nix/store/w0a3rn651wvqyp7822b1i11nbdbhy6h3-rust_semver-0.9.0.drv", ), LogLine( " /nix/store/4dkwifhs3z9jilld42rzybbdnvhbdkx2-rust_rustc_version-0.2.3.drv", ), LogLine( " /nix/store/5j6wh4j62pljna93542900likyyzc4pc-rust_termcolor-1.0.4.drv", ), LogLine( " /nix/store/775fig6ik7l7s9ifa0r8y11gbrl3i6m9-rust_thread_local-0.3.6.drv", ), LogLine( " /nix/store/vq3yj3h4gw7n4blm9ng5rfbnpg1z3nqm-wait-timeout-0.1.5.tar.gz.drv", ), LogLine( " /nix/store/7l5mjk6219b0iacgrbxglrq8d2cac7ac-rust_wait-timeout-0.1.5.drv", ), LogLine( " /nix/store/7znn76hd3s6m1s30cdrmxa9g0vlp3b0g-rust_clap-2.32.0.drv", ), LogLine( " /nix/store/rdqfr5di39l9hfdafycy3gz0r9pjv1dq-rust_quick-error-1.2.2.drv", ), LogLine( " /nix/store/852rys2lyfywh1hvda2yxa4qpmwwqpv0-rust_humantime-1.2.0.drv", ), LogLine( " /nix/store/8687xwf9lmprb3yr52klxzd2bv9z8487-rust_futures-0.1.25.drv", ), LogLine( " /nix/store/x0cq9plggjp9nvnwvw0g49qmcp9xvsq6-serde-1.0.88.tar.gz.drv", ), LogLine( " /nix/store/phskv9szfc64da0zmjfh4c8i2dhhy5pr-rust_serde-1.0.88.drv", ), LogLine( " /nix/store/9afys282vsc35clrr3vvqfk4s32s1zap-rust_bincode-1.1.3.drv", ), LogLine( " /nix/store/glvgi1gklfhbk1i81x1ca561cimj8k05-rust_itoa-0.4.3.drv", ), LogLine( " /nix/store/awzwwrfvxgf2qvpx83gasad4jlbh04iz-rust_serde_json-1.0.38.drv", ), LogLine( " /nix/store/c3aynk87bqqvbxgn76p3r99pdpq0gjpz-rust_md5-0.6.1.drv", ), LogLine( " /nix/store/khiv0abj07fb37d0kmclr3azlpsbb6sd-rust_aho-corasick-0.6.10.drv", ), LogLine( " /nix/store/mxk43j5cqrs013smhlks4yx5hzg4fisi-rust_regex-syntax-0.6.5.drv", ), LogLine( " /nix/store/cpsykjy2r24nkahkalhygl9vsx03bv6w-rust_regex-1.1.0.drv", ), LogLine( " /nix/store/f2ngjlb40b4nr13i55wsck5bvdi75cgm-rust_rand-0.4.6.drv", ), LogLine( " /nix/store/k47spwy7g6r54b3sw58r53931kzm89pa-structopt-0.2.14.tar.gz.drv", ), LogLine( " /nix/store/f8bvvpcfyh2lndzbiwn2dphgfdaiwx4n-rust_structopt-0.2.14.drv", ), LogLine( " /nix/store/sc2r6cvm6v5f37an1k8sv65gqyi5x8qb-rust_remove_dir_all-0.5.1.drv", ), LogLine( " /nix/store/g9iwh45wgd1n4vg100yqxy70pnjhgp3q-rust_tempdir-0.3.7.drv", ), LogLine( " /nix/store/hr675y1jglacl0ixnghhcddqylqql3sg-rusty-fork-0.2.1.tar.gz.drv", ), LogLine( " /nix/store/jlgkln3hgmyhfn0f5njg0wv2km9h74h6-rust_atomicwrites-0.2.3.drv", ), LogLine( " /nix/store/m62d0gn8qc2g7232r5c8rhq2kydhghly-rust_rand_pcg-0.1.1.drv", ), LogLine( " /nix/store/mcqqn1325r9670vlml1nii4f4yg8sg6p-rust_log-0.4.6.drv", ), LogLine( " /nix/store/p2v26yzvgrp4jkzja2hnra4c62xihrjc-rust_rand_jitter-0.1.3.drv", ), LogLine( " /nix/store/vmdbfrvd1f4v2s8lhvk1lwa98dpqmhd6-rust_rand-0.6.5.drv", ), LogLine( " /nix/store/ng394jqwkwfw4bd6s4y6a6zqic9nc0kh-rust_tempfile-3.0.7.drv", ), LogLine( " /nix/store/w7p5xkxz1i9c0ar9pjf74kv61j20a7jx-rust_filetime-0.2.4.drv", ), LogLine( " /nix/store/pzri70z4mbml3fg2ia17p2gl4vicpba2-rust_notify-4.0.9.drv", ), LogLine( " /nix/store/rrijkvrsfvdlzf52j7l7rzg6pvdc8h0g-rust_serde_derive-1.0.88.drv", ), LogLine( " /nix/store/vldjmqxwd65sc0ri1vb9l9s8cbvsj36v-rust_atty-0.2.11.drv", ), LogLine( " /nix/store/wpka7qvi3p72yxg0m382zjslv8p38p0i-rust_bit-set-0.5.0.drv", ), LogLine( " /nix/store/x33wdhcvmp0vgb96dj6dsr1a8nbzkshy-rust_rusty-fork-0.2.1.drv", ), LogLine( " /nix/store/y9xgnx5dn4fqnn8myk258gk1pybgwa23-rust_num-traits-0.2.6.drv", ), LogLine( " /nix/store/yjv1spchf30ilnxpfdhhqn5s8cl8xnls-rust_directories-1.0.2.drv", ), LogLine( " /nix/store/ywjv7hrbk2ikssckr2p9cglbkyqv4i0f-rust_proptest-0.9.1.drv", ), LogLine( " /nix/store/zvbiq9wn4m29h3n3px7bbwlgcpbd1wvz-rust_env_logger-0.6.0.drv", ), LogLine( " /nix/store/xizn6wdwmh7hanpibavihq55xblgaydv-lorri.drv", ), LogLine( "building \'/nix/store/khiv0abj07fb37d0kmclr3azlpsbb6sd-rust_aho-corasick-0.6.10.drv\'...", ), LogLine( "unpacking sources", ), LogLine( "unpacking source archive /nix/store/zmlxaf9fslgqkjcsmzphka5fhc4b3g3z-aho-corasick-0.6.10.tar.gz", ), LogLine( "source root is aho-corasick-0.6.10.tar.gz", ), LogLine( "patching sources", ), LogLine( "configuring", ), LogLine( "building", ), LogLine( "Building src/lib.rs (aho_corasick)", ), LogLine( "Running rustc --crate-name aho_corasick src/lib.rs --crate-type lib -C opt-level=3 -C codegen-units=16 -C metadata=1106a52016 -C extra-filename=-1106a52016 --out-dir target/lib --emit=dep-info,link -L dependency=target/deps --extern memchr=/nix/store/9ri99k97bp2dzzgjqahy0504shjrhl2h-rust_memchr-2.2.0/lib/libmemchr-82255a6f29.rlib --cap-lints allow --color always", ), LogLine( "Building aho-corasick-dot (src/main.rs)", ), LogLine( "Running rustc --crate-name aho_corasick_dot src/main.rs --crate-type bin -C opt-level=3 -C codegen-units=16 --out-dir target/bin --emit=dep-info,link -L dependency=target/deps --extern memchr=/nix/store/9ri99k97bp2dzzgjqahy0504shjrhl2h-rust_memchr-2.2.0/lib/libmemchr-82255a6f29.rlib --extern aho_corasick=target/lib/libaho_corasick-1106a52016.rlib --cap-lints allow --color always", ), LogLine( "error: linking with `cc` failed: exit code: 1", ), LogLine( " |", ), LogLine( " = note: \"cc\" \"-m64\" \"-L\" \"/nix/store/galivd16ap0256z75n8rlc657swnzm71-rustc-1.34.2/lib/rustlib/x86_64-apple-darwin/lib\" \"target/bin/aho_corasick_dot.aho_corasick_dot.7rcbfp3g-cgu.0.rcgu.o\" \"target/bin/aho_corasick_dot.aho_corasick_dot.7rcbfp3g-cgu.1.rcgu.o\" \"target/bin/aho_corasick_dot.aho_corasick_dot.7rcbfp3g-cgu.10.rcgu.o\" \"target/bin/aho_corasick_dot.aho_corasick_dot.7rcbfp3g-cgu.11.rcgu.o\" \"target/bin/aho_corasick_dot.aho_corasick_dot.7rcbfp3g-cgu.12.rcgu.o\" \"target/bin/aho_corasick_dot.aho_corasick_dot.7rcbfp3g-cgu.13.rcgu.o\" \"target/bin/aho_corasick_dot.aho_corasick_dot.7rcbfp3g-cgu.14.rcgu.o\" \"target/bin/aho_corasick_dot.aho_corasick_dot.7rcbfp3g-cgu.15.rcgu.o\" \"target/bin/aho_corasick_dot.aho_corasick_dot.7rcbfp3g-cgu.2.rcgu.o\" \"target/bin/aho_corasick_dot.aho_corasick_dot.7rcbfp3g-cgu.3.rcgu.o\" \"target/bin/aho_corasick_dot.aho_corasick_dot.7rcbfp3g-cgu.4.rcgu.o\" \"target/bin/aho_corasick_dot.aho_corasick_dot.7rcbfp3g-cgu.5.rcgu.o\" \"target/bin/aho_corasick_dot.aho_corasick_dot.7rcbfp3g-cgu.6.rcgu.o\" \"target/bin/aho_corasick_dot.aho_corasick_dot.7rcbfp3g-cgu.7.rcgu.o\" \"target/bin/aho_corasick_dot.aho_corasick_dot.7rcbfp3g-cgu.8.rcgu.o\" \"target/bin/aho_corasick_dot.aho_corasick_dot.7rcbfp3g-cgu.9.rcgu.o\" \"-o\" \"target/bin/aho_corasick_dot\" \"target/bin/aho_corasick_dot.38z3cdkjs302f6vc.rcgu.o\" \"-Wl,-dead_strip\" \"-nodefaultlibs\" \"-L\" \"target/deps\" \"-L\" \"/nix/store/galivd16ap0256z75n8rlc657swnzm71-rustc-1.34.2/lib/rustlib/x86_64-apple-darwin/lib\" \"/nix/store/9ri99k97bp2dzzgjqahy0504shjrhl2h-rust_memchr-2.2.0/lib/libmemchr-82255a6f29.rlib\" \"/nix/store/galivd16ap0256z75n8rlc657swnzm71-rustc-1.34.2/lib/rustlib/x86_64-apple-darwin/lib/libstd-1f38e8a5c60aadba.rlib\" \"/nix/store/galivd16ap0256z75n8rlc657swnzm71-rustc-1.34.2/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-ebe2dc01941d2ccb.rlib\" \"/nix/store/galivd16ap0256z75n8rlc657swnzm71-rustc-1.34.2/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace_sys-281d791939530495.rlib\" \"/nix/store/galivd16ap0256z75n8rlc657swnzm71-rustc-1.34.2/lib/rustlib/x86_64-apple-darwin/lib/libunwind-25c8dfd69c547b93.rlib\" \"/nix/store/galivd16ap0256z75n8rlc657swnzm71-rustc-1.34.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-10b2fbc629f9f653.rlib\" \"/nix/store/galivd16ap0256z75n8rlc657swnzm71-rustc-1.34.2/lib/rustlib/x86_64-apple-darwin/lib/liblibc-8dc556cbbfab6715.rlib\" \"/nix/store/galivd16ap0256z75n8rlc657swnzm71-rustc-1.34.2/lib/rustlib/x86_64-apple-darwin/lib/liballoc-21938ddeebc3e43d.rlib\" \"/nix/store/galivd16ap0256z75n8rlc657swnzm71-rustc-1.34.2/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-2758cbf52374bb92.rlib\" \"/nix/store/galivd16ap0256z75n8rlc657swnzm71-rustc-1.34.2/lib/rustlib/x86_64-apple-darwin/lib/libcore-ba05b970f78daa37.rlib\" \"/nix/store/galivd16ap0256z75n8rlc657swnzm71-rustc-1.34.2/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-bb8681633e61898c.rlib\" \"-lSystem\" \"-lresolv\" \"-lc\" \"-lm\"", ), LogLine( " = note: ld: file not found: /usr/lib/system/libcache.dylib for architecture x86_64", ), LogLine( " clang-7: error: linker command failed with exit code 1 (use -v to see invocation)", ), LogLine( " ", ), LogLine( "", ), LogLine( "error: aborting due to previous error", ), LogLine( "", ), LogLine( "error: builder for \'/nix/store/khiv0abj07fb37d0kmclr3azlpsbb6sd-rust_aho-corasick-0.6.10.drv\' failed with exit code 1", ), LogLine( "error: 1 dependencies of derivation \'/nix/store/xizn6wdwmh7hanpibavihq55xblgaydv-lorri.drv\' failed to build", ), ], }''' method = 'Panic' backtrace = ''' 0: 0x1016b9cd3 - rust_begin_unwind 1: 0x101709d9b - std::panicking::begin_panic_fmt::h9c97df342e1c7161 2: 0x10150c19c - lorri::ops::upgrade::h2835c168e24e381a 3: 0x1014bb302 - lorri::main::h5f2c683dc10662af 4: 0x1014c079a - std::sys_common::backtrace::__rust_begin_short_backtrace::h5c5a755f60e176c7 5: 0x1014c07cc - std::rt::lang_start::{{closure}}::h709993f7e6e16f47 6: 0x1016c61ca - std::rt::lang_start_internal::h43b407d2a4fa0408 7: 0x1014bcc29 - main''' ```
$ lorri info --shell-file shell.nix

lorri version: 1.5
GC roots exist, shell_gc_root: /Users/jeff/Library/Caches/com.github.nix-community.lorri.lorri.lorri/gc_roots/d2c728f7be2e731abb95b185710c442b/gc_root/shell_gc_root
$ uname -a
Darwin Europa.local 20.6.0 Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:31 PDT 2021; root:xnu-7195.141.2~5/RELEASE_X86_64 x86_64 i386 MacBookPro16,1 Darwin

Additional context