NixOS / nix

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

`nix-build`: non-deterministic segfault on darwin #5125

Open nomeata opened 3 years ago

nomeata commented 3 years ago

Describe the bug

In one of my (larger) nix based projects, nix-build has started to crash non-deterministically during evaluation, but only on MacOS. Sometimes things just work, but sometimes I get

  nix-build --max-jobs 10 -A all-systems-go
  shell: /bin/bash -e {0}
  env:
    NIX_SSL_CERT_FILE: /nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt
copying path '/nix/store/pcjan45rssdn01cxx3sjg70avjg6c3ni-bash-4.4-p23' from 'https://cache.nixos.org'...
copying path '/nix/store/bw9c8i4kikgz9kxli0g65ld2xdjfacyp-adv_cmds-119-locale' from 'https://cache.nixos.org'...
copying path '/nix/store/8kpxw5na07ggdl2bs8kiwysif7120r6g-gawk-5.1.0' from 'https://cache.nixos.org'...
copying path '/nix/store/vbyx1hhgfai7jb39l6jhvdj5zimkjzhy-gnumake-4.3' from 'https://cache.nixos.org'...
copying path '/nix/store/fnzsi837b2xqqsfiq7hb61v5xka98avl-gnused-4.8' from 'https://cache.nixos.org'...
copying path '/nix/store/mm8rw3vjvzldb147j6zm5idvblhh7bbf-bzip2-1.0.6.0.2' from 'https://cache.nixos.org'...
copying path '/nix/store/pgnb12anscja205zycd2l994028vas2b-libiconv-50' from 'https://cache.nixos.org'...
copying path '/nix/store/jqxz1amfzfyb7ia9za27qmgcbqiljda4-pcre-8.44' from 'https://cache.nixos.org'...
copying path '/nix/store/wa17lvmcd6c0ksx6vpqzsm2x1cwjnach-xz-5.2.5' from 'https://cache.nixos.org'...
copying path '/nix/store/rvqdp9l0ncp69mcxfpf0vfmrafh8zqa8-Libsystem-1238.60.2' from 'https://cache.nixos.org'...
copying path '/nix/store/riasnjlb9bb3d3gciv2aaz1ypxrg7hp3-brotli-1.0.9-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/6q1rhqvyzxb3j5pb1h4qxsa0hh1i45wv-libcxxabi-7.1.0' from 'https://cache.nixos.org'...
copying path '/nix/store/az26q1v080bqfwhn8snapbscxgdw80qn-nghttp2-1.43.0-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/npjd5jnk4chfz39lv0vm24f029ry6h6r-openssl-1.1.1k' from 'https://cache.nixos.org'...
copying path '/nix/store/8f4wp5sdl08wrnj3ajsqrjbv7fw5lgv7-zlib-1.2.11' from 'https://cache.nixos.org'...
copying path '/nix/store/p02br2bn70pq65yjim0ly8z99plxq920-bzip2-1.0.6.0.2-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/pknw3gwir6pf71qir21jv983gh6yzfdp-ed-1.17' from 'https://cache.nixos.org'...
copying path '/nix/store/qdzawxy3x2z07s529rdpnandf8dfk1ic-gzip-1.10' from 'https://cache.nixos.org'...
copying path '/nix/store/k0dcd6x9h2bzf0rvy1s9p1armcy19qh5-xz-5.2.5-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/64d69jqbz4s8ziqbpam41sd70w338ars-libcxx-7.1.0' from 'https://cache.nixos.org'...
copying path '/nix/store/f695vk4n50d3i528ldnf9rvnkciknm5y-libxml2-2.9.12' from 'https://cache.nixos.org'...
copying path '/nix/store/lgi0x08n4is9mdr83p5x4lddkbk10h37-patch-2.7.6' from 'https://cache.nixos.org'...
copying path '/nix/store/y4icdyy6nfbsjirjr0vyz9kch6hyngyc-gnugrep-3.6' from 'https://cache.nixos.org'...
copying path '/nix/store/qhz9xpqbj6xvwmzxwspdixpr4px2l22j-ICU-66108' from 'https://cache.nixos.org'...
copying path '/nix/store/dn9cmb4fwx315p287423f63w4w2pd5rq-gettext-0.21' from 'https://cache.nixos.org'...
copying path '/nix/store/ka12q1srbmcrc5fm7kn5slgwnajppppc-gmp-6.2.1' from 'https://cache.nixos.org'...
copying path '/nix/store/yzvj23zkg314xjywc3dmzdlqchkqq4m0-coreutils-8.32' from 'https://cache.nixos.org'...
copying path '/nix/store/yapsavlz4zx3v0xq1yq5s9r14xpj7nk7-diffutils-3.7' from 'https://cache.nixos.org'...
copying path '/nix/store/l81ywa20y740zq5i0015jg3744g5qz3l-findutils-4.7.0' from 'https://cache.nixos.org'...
copying path '/nix/store/d4spin3lyclblj5lji2ih4axg19dfmfw-libssh2-1.9.0' from 'https://cache.nixos.org'...
copying path '/nix/store/y215y67kv3z408mdja2fy3xkk0maqhx3-gnutar-1.34' from 'https://cache.nixos.org'...
copying path '/nix/store/892bqs4h7gck4qzysnj6s8niy9jk9qbn-libkrb5-1.18' from 'https://cache.nixos.org'...
copying path '/nix/store/cykikdmpsksd35xs8ppds7iwqa2rllzl-curl-7.76.1' from 'https://cache.nixos.org'...
copying path '/nix/store/f7f3gz636cqxkav7cy1nlldkwv2b22n1-swift-corefoundation' from 'https://cache.nixos.org'...
copying path '/nix/store/vnazyva3nawmvmhsxl8d2698wqg3743l-stdenv-darwin' from 'https://cache.nixos.org'...
building '/nix/store/jnaqaz425lv1jr8q0i7q08cjr7yb0m3c-nixpkgs-patched.drv'...
unpacking sources
unpacking source archive /nix/store/q5p5zapqy3hrisdq4cy7nk19kldvkpcz-nixpkgs-src
source root is nixpkgs-src
patching sources
applying patch /nix/store/8p56v8ybs0cs4flblfjh41mvw5w7df90-124498.patch
patching file pkgs/development/compilers/ocaml/generic.nix
patching file pkgs/development/ocaml-modules/menhir/generic.nix
patching file pkgs/development/ocaml-modules/wasm/default.nix
patching file pkgs/development/tools/ocaml/ocamlbuild/default.nix
installing
copying path '/nix/store/jp934923459hna88shs5wx2zf6rl72g5-nixpkgs-mozilla-src' from 'https://ic-hs-test.cachix.org'...
copying path '/nix/store/10ab5yiiwk9y1pmv83s4lhbc4wr3yr4b-perl5.32.1-FCGI-ProcManager-0.28' from 'https://cache.nixos.org'...
copying path '/nix/store/q5wk9d9dk9w4ifw2ipjnvpdx7s9kwfqa-perl5.32.1-HTML-TagCloud-0.38' from 'https://cache.nixos.org'...
copying path '/nix/store/67jiw2z06qv723lh79cx32s1iqa0f34x-perl5.32.1-URI-5.05' from 'https://cache.nixos.org'...
copying path '/nix/store/ns3p9vvi7amw7qj578dmi5jk31rcxl0d-expat-2.2.10' from 'https://cache.nixos.org'...
copying path '/nix/store/96j2ai9h4f5kaqcnp9kvgbp2srr79xhx-openssl-1.1.1k' from 'https://cache.nixos.org'...
copying path '/nix/store/1z0dp9zpnr35aj4lf3qcph6mmpmixc7g-perl5.32.1-Encode-Locale-1.05' from 'https://cache.nixos.org'...
copying path '/nix/store/3yn91g8pv81bxnkg63k5nnxy8d7vdvqr-perl5.32.1-HTML-Tagset-3.20' from 'https://cache.nixos.org'...
copying path '/nix/store/plz0jg0ayld8f5wymgb2lmq6l1sz7m5g-perl5.32.1-IO-HTML-1.004' from 'https://cache.nixos.org'...
copying path '/nix/store/ngvvxacv7732d8pr4iryy4rffhz0h239-perl5.32.1-LWP-MediaTypes-6.04' from 'https://cache.nixos.org'...
copying path '/nix/store/8ihnk2rirxfrnb5ixp5dyrnz041gnzcm-perl5.32.1-FCGI-0.79' from 'https://cache.nixos.org'...
copying path '/nix/store/svnhbzykd9wfglyc8jzkc7683pyhx8ka-apple-framework-CFNetwork' from 'https://cache.nixos.org'...
copying path '/nix/store/8pwz6jq4zpqlzsz0q0xwz69hlsypyyvq-apple-framework-CoreBluetooth' from 'https://cache.nixos.org'...
copying path '/nix/store/hbk6lpggwx5v1am7r0nwj14w8rr6xki0-apple-framework-CoreData' from 'https://cache.nixos.org'...
copying path '/nix/store/f9cchxc5hkk9p4n6y45cw4f3nf3w3va1-apple-framework-CoreFoundation' from 'https://cache.nixos.org'...
copying path '/nix/store/y7bmnccssmbxqz559rqqnb9ippd4p5rw-apple-framework-CoreImage' from 'https://cache.nixos.org'...
copying path '/nix/store/zwha875pf1mah7lb52qxly4nf5d1gpmk-apple-framework-CoreMIDI' from 'https://cache.nixos.org'...
copying path '/nix/store/yy952p18g4hvkgwd3hh8c4rql8ic5bwk-apple-framework-IOKit' from 'https://cache.nixos.org'...
copying path '/nix/store/7fq6iy6xzygy0m94krccdgi29iz3dpv1-apple-framework-Metal' from 'https://cache.nixos.org'...
copying path '/nix/store/wkxjczcm6h9gppa6mc097jm1rza4a0fz-apple-framework-NetFS' from 'https://cache.nixos.org'...
copying path '/nix/store/nr0zr4wdd1a5w4rqy2908kgn9j1vlcm8-apple-framework-OpenDirectory' from 'https://cache.nixos.org'...
copying path '/nix/store/48b91qzw4wwm851il6b0mqvc6c04xp65-apple-framework-OpenGL' from 'https://cache.nixos.org'...
copying path '/nix/store/dn63dxzz06k8g39lnvankk5schq8b97v-apple-framework-SecurityFoundation' from 'https://cache.nixos.org'...
copying path '/nix/store/mlj2ij9gqrk1h7y9ixsfn4b1b5dqvlap-apple-framework-UIFoundation' from 'https://cache.nixos.org'...
copying path '/nix/store/q7awcbl6bkn34glqalr02gkid537ky0f-apple-lib-xpc' from 'https://cache.nixos.org'...
copying path '/nix/store/x1pdp5yypx3201a4j4zmrz5s7liyg3cy-brotli-1.0.9-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/pdd276ydvg3zvky684wp78q8zfjkc6d4-compiler-rt-libc-7.1.0' from 'https://cache.nixos.org'...
copying path '/nix/store/sc4qmg3bk9rw0cyz3yzncyy3kaala7cv-gettext-0.21' from 'https://cache.nixos.org'...
copying path '/nix/store/s5r7x4p8hz275nd39wpxn7w2baaq83pm-libcbor-0.8.0' from 'https://cache.nixos.org'...
copying path '/nix/store/cghxll8lpzg7x0x7nhzyrqdk4q8xhiwz-apple-framework-CoreWLAN' from 'https://cache.nixos.org'...
copying path '/nix/store/mw8cdz4nbq523xa33zyamsylci73cd63-libcxx-7.1.0-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/i8mm0yixkl8c10a4kmwz68zp99cb3nrs-libcxxabi-7.1.0-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/q4ixd4xpiy9lbj0hqv2gll766ib66n1n-libkrb5-1.18' from 'https://cache.nixos.org'...
copying path '/nix/store/kdydav4gqzd91qlpprnjascbs5hs8qmg-ncurses-6.2' from 'https://cache.nixos.org'...
copying path '/nix/store/6sq4d806kjfml10sbz5brcdra1bhfsxn-libssh2-1.9.0' from 'https://cache.nixos.org'...
copying path '/nix/store/pzwkmfxj9cp8pq80cc723ah5pgqzz16q-nghttp2-1.43.0-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/08iavk27gxjf5kwpzisj9fqhbfqxg0r1-objc4-709.1' from 'https://cache.nixos.org'...
copying path '/nix/store/2dgqjk8wizf5rdh37a43nsmmys7d1pq8-perl5.32.1-Net-HTTP-6.19' from 'https://cache.nixos.org'...
copying path '/nix/store/fib81jvdxqmjd4yywzma2b5n31v3avhq-perl5.32.1-TermReadKey-2.38' from 'https://cache.nixos.org'...
copying path '/nix/store/bsvibijxz8ai3cmxqgd91y9wyl2705j7-perl5.32.1-Test-Needs-0.002006' from 'https://cache.nixos.org'...
copying path '/nix/store/4mchmbm866by7l72a1ry6fg7mh9sr1mf-perl5.32.1-Test-RequiresInternet-0.05' from 'https://cache.nixos.org'...
copying path '/nix/store/s9b953hw3nml35vad8s7z8g48fqh85pi-perl5.32.1-TimeDate-2.33' from 'https://cache.nixos.org'...
copying path '/nix/store/l007hxjz925yp7r8bcp3zzh6d5ix742d-perl5.32.1-Try-Tiny-0.30' from 'https://cache.nixos.org'...
copying path '/nix/store/hgc2mf6za8c7x4kcf51k1d53jlypp955-perl5.32.1-WWW-RobotRules-6.02' from 'https://cache.nixos.org'...
copying path '/nix/store/rz9y805azx0l79hbsrvgfkjslw1ngpvq-perl5.32.1-Test-Fatal-0.016' from 'https://cache.nixos.org'...
copying path '/nix/store/vbjgddi66gaq9iskwldky91wv1vwfny1-perl5.32.1-HTTP-Date-6.05' from 'https://cache.nixos.org'...
copying path '/nix/store/s4b1w8843bsi38r0wm7lpc7rmyin8bjd-perl5.32.1-File-Listing-6.14' from 'https://cache.nixos.org'...
copying path '/nix/store/3ybb1xz31bzgp36pd2qxbmkks89mdvzp-perl5.32.1-HTTP-Message-6.26' from 'https://cache.nixos.org'...
copying path '/nix/store/nplj8135vgj50444h7rm06hcn7144ccn-perl5.32.1-HTML-Parser-3.75' from 'https://cache.nixos.org'...
copying path '/nix/store/jlp1y979sbpv90c40iaiwhn604zznd45-perl5.32.1-HTTP-Cookies-6.09' from 'https://cache.nixos.org'...
copying path '/nix/store/cnh9d1mc2iw8j115fmw8jqzxa987lfjg-perl5.32.1-HTTP-Daemon-6.01' from 'https://cache.nixos.org'...
copying path '/nix/store/3sgcl01m19cs7igx8c665lpmcbd0akrx-perl5.32.1-HTTP-Negotiate-6.01' from 'https://cache.nixos.org'...
copying path '/nix/store/11519vhbcbw6irrly58w3l7z36hmp5xs-perl5.32.1-CGI-4.51' from 'https://cache.nixos.org'...
copying path '/nix/store/r8jcmq2mj7rbvj7g55pyc6mxciarbqb7-curl-7.76.1' from 'https://cache.nixos.org'...
copying path '/nix/store/nzp5vidcb0rqz9viaffkmngdj5mvva7n-perl5.32.1-CGI-Fast-2.15' from 'https://cache.nixos.org'...
copying path '/nix/store/m17pjjxfq8gx9anyqbyw3v72zzaajqqr-apple-framework-CoreAudio' from 'https://cache.nixos.org'...
copying path '/nix/store/s7166g2g4ay8zij3ih08xw25hwmhw13f-apple-framework-DiskArbitration' from 'https://cache.nixos.org'...
copying path '/nix/store/dvs74mhgp5kgk5v2is05sizgwr9p3bb7-apple-framework-IOBluetooth' from 'https://cache.nixos.org'...
copying path '/nix/store/hjx5rb2n7l730b2qxwbh3bn875qqj1x7-apple-framework-IOSurface' from 'https://cache.nixos.org'...
copying path '/nix/store/293i28pj9jswm0bgx7qdnbpkckz72kwb-apple-framework-Security' from 'https://cache.nixos.org'...
copying path '/nix/store/pfj4xw40bgfjxr014ab4sj50615n2jw1-apple-framework-AudioToolbox' from 'https://cache.nixos.org'...
copying path '/nix/store/5a8mq3rrryr8c3zii078qg7p7rp41xdg-apple-framework-Accelerate' from 'https://cache.nixos.org'...
copying path '/nix/store/pa4zkrwmswyiz71q9a8mhf6i9kpwawdi-apple-framework-OpenCL' from 'https://cache.nixos.org'...
copying path '/nix/store/6wjm2ml2sq0fwsw954mj8q5h7yrhhxb6-apple-framework-ServiceManagement' from 'https://cache.nixos.org'...
copying path '/nix/store/1cl9r959bj5pz9y4d6dzszch5yadq3vg-apple-framework-SystemConfiguration' from 'https://cache.nixos.org'...
copying path '/nix/store/9sfxgkvasbzsl6ny0i9m12ipq0qccxl9-apple-framework-CoreServices' from 'https://cache.nixos.org'...
copying path '/nix/store/r2f98pgsb6vk53ha9cipq5yl64qcg5i2-apple-framework-CoreGraphics' from 'https://cache.nixos.org'...
copying path '/nix/store/57hx4c6dv3vd0g2gjf9gqzld1fr4ncm2-apple-framework-CoreText' from 'https://cache.nixos.org'...
copying path '/nix/store/bgq90w547d89zy496kyisckyx3y42cly-apple-framework-ImageIO' from 'https://cache.nixos.org'...
copying path '/nix/store/xcix5ygyy05z2q9v6901xlm4ljw2yvs8-compiler-rt-libc-7.1.0-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/zzbnn13hn1ak8g0qrcwd6qmn0abd5wng-perl-5.32.1' from 'https://cache.nixos.org'...
copying path '/nix/store/w7nyyfn0n0nxn5pbr65sakcrckl1jv8k-apple-framework-ApplicationServices' from 'https://cache.nixos.org'...
copying path '/nix/store/7p8iwvhpjim6w77g68cbgg5avba638vj-libedit-20210216-3.1' from 'https://cache.nixos.org'...
copying path '/nix/store/sfvln72zl1wk9d8lz9l29addvzdgi4a7-apple-framework-CoreVideo' from 'https://cache.nixos.org'...
copying path '/nix/store/b73xlnighh544ah15qgpn2id95ibskfc-apple-framework-Foundation' from 'https://cache.nixos.org'...
copying path '/nix/store/fpga8if76brxvgn30z06c8haa60rnmlb-apple-framework-QuartzCore' from 'https://cache.nixos.org'...
copying path '/nix/store/4k7hfca13xys2gckrsf96y8v4ln5w04c-apple-framework-Carbon' from 'https://cache.nixos.org'...
copying path '/nix/store/xpzbd9lkkl3152xs8pgp72w07nvsjaa1-apple-framework-AudioUnit' from 'https://cache.nixos.org'...
copying path '/nix/store/39y8lss2p8dlhqq0il46z2dpgmag17h4-apple-framework-AppKit' from 'https://cache.nixos.org'...
copying path '/nix/store/zl7ygcfl8idvsa1rvavqr3db3hihxcch-apple-framework-Cocoa' from 'https://cache.nixos.org'...
copying path '/nix/store/qjm2vddn1aksrg5mvqw6xric2nmbvifq-hidapi-0.10.1' from 'https://cache.nixos.org'...
copying path '/nix/store/n3gk13m0adf4k1wkv1sav8diwhvfwkzc-libfido2-1.7.0' from 'https://cache.nixos.org'...
copying path '/nix/store/4xdl2i5w4zrcdp4hg05sjiqyj6pfkfyn-openssh-8.6p1' from 'https://cache.nixos.org'...
copying path '/nix/store/zk91w65yv9zmsk859vb85n0csr2hzhag-perl5.32.1-libwww-perl-6.49' from 'https://cache.nixos.org'...
copying path '/nix/store/znxkzc5i9h0ikvc3m0zy4xcishkl5rvk-git-2.31.1' from 'https://cache.nixos.org'...
building '/nix/store/szp2bl8c3pgz3c6nc612cxlycshx1dk3-git-ls-files.drv'...
copying path '/nix/store/52aqhf11f6ldn2j3m89npp5mwcipvv50-ic-hs-src' from 'https://ic-hs-test.cachix.org'...
copying path '/nix/store/h144jawqa92rqjhaahrsikq5j2dwkh5n-Libsystem-osx-10.12.6' from 'https://cache.nixos.org'...
copying path '/nix/store/nfcc5yqdr3l24fn73pljk3n7nbvz775g-adv_cmds-osx-10.5.8-locale' from 'https://cache.nixos.org'...
copying path '/nix/store/xh9cijyqbznza3v5wb5rl6r7r11xd4f9-bash-4.4-p23' from 'https://cache.nixos.org'...
copying path '/nix/store/gpxhsaj3vmlgcbgn8ba8m8v7yv4q717r-bzip2-1.0.6.0.1' from 'https://cache.nixos.org'...
copying path '/nix/store/v0czg3c5apxrqj24ak79mgwl6lfnb2yp-gawk-5.1.0' from 'https://cache.nixos.org'...
copying path '/nix/store/i36sdgn6450hja6rzinimvrsjf5c3m7m-gnumake-4.3' from 'https://cache.nixos.org'...
copying path '/nix/store/mcz107ij67iidr86mm74sh98q193y7mq-gnused-4.8' from 'https://cache.nixos.org'...
copying path '/nix/store/wahi8q1ybh9n805zbavs6ch4i8mfpzgy-libc++abi-7.1.0' from 'https://cache.nixos.org'...
copying path '/nix/store/2jlggnhkjnpw938ak2w6rljlak8dzjbz-libiconv-osx-10.12.6' from 'https://cache.nixos.org'...
copying path '/nix/store/xjsfwgswqfqpm6kbj746a5ki8lbc6ph0-nghttp2-1.41.0-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/hyylz9i8zv31g0isd4qc9kb75wnzyaqd-openssl-1.1.1i' from 'https://cache.nixos.org'...
copying path '/nix/store/py34pf1f4cvvd48766dzb1cc8wg4fzhc-pcre-8.44' from 'https://cache.nixos.org'...
copying path '/nix/store/l9l9qqh2l78bpy9366mv5ahjncjxg7q0-xz-5.2.5' from 'https://cache.nixos.org'...
copying path '/nix/store/18x507g5d590akyb86zgp63w8d9vsjnf-zlib-1.2.11' from 'https://cache.nixos.org'...
copying path '/nix/store/1wv35rsgcrwjz4jnqs3kq77k6d3qagaf-libc++-7.1.0' from 'https://cache.nixos.org'...
copying path '/nix/store/54x51zg6xy0jgfllm0zn709agfrq99ki-libxml2-2.9.10' from 'https://cache.nixos.org'...
copying path '/nix/store/0mg3hskz0flggpp6h6lmaalf4r32yn7g-bzip2-1.0.6.0.1-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/h31xdh8kk1a47ghzxxng6n3kr2waj969-ed-1.16' from 'https://cache.nixos.org'...
copying path '/nix/store/r38zdnqjllk58413zxc0n4a8q7y98gkq-gzip-1.10' from 'https://cache.nixos.org'...
copying path '/nix/store/mx2w901920lj3zqafbkbrbmc7g4xrnlh-libkrb5-1.18' from 'https://cache.nixos.org'...
copying path '/nix/store/a02rq2qw6bq764svr1if8wyim928w9fr-xz-5.2.5-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/njjbm305zva27cgz305ljfj3azr0y4qz-patch-2.7.6' from 'https://cache.nixos.org'...
copying path '/nix/store/x9qcs609bqn68i26l8i4z6qq3hsqi5vf-gnugrep-3.4' from 'https://cache.nixos.org'...
copying path '/nix/store/m23h6ky693ihdd1xs9y09cvw5fks5idk-libssh2-1.9.0' from 'https://cache.nixos.org'...
copying path '/nix/store/5rx371cxzgrydqn48m02v4c4hdkpqy6x-curl-7.74.0' from 'https://cache.nixos.org'...
copying path '/nix/store/360wqc83w8a4vblz0z49x2g27nz16b3b-ICU-osx-10.10.5' from 'https://cache.nixos.org'...
copying path '/nix/store/791f0gmm3gshjm54bvzdd62pjmhhnwn9-gettext-0.21' from 'https://cache.nixos.org'...
copying path '/nix/store/isd1njxn2xx896xgv9lrbnbw4clrimkc-gmp-6.2.0' from 'https://cache.nixos.org'...
copying path '/nix/store/947lykanqiidl7fixgagsdqh40rf3rh3-coreutils-8.31' from 'https://cache.nixos.org'...
copying path '/nix/store/c160fhkf4j5la454yzh61kwkhg039gia-diffutils-3.7' from 'https://cache.nixos.org'...
copying path '/nix/store/7lwbmmq12nn397f013gk2kkgvr572c42-findutils-4.7.0' from 'https://cache.nixos.org'...
copying path '/nix/store/r4w94v3pm9dr9g40y7lcaqhhlbkmxjqp-swift-corefoundation' from 'https://cache.nixos.org'...
copying path '/nix/store/hq2zaajhhvy18h82ffzvsl99i3qazyhz-gnutar-1.32' from 'https://cache.nixos.org'...
copying path '/nix/store/a6gqbyaxzd91mz9snl5f83f55pij5qgh-stdenv-darwin' from 'https://cache.nixos.org'...
building '/nix/store/4klp03wq7q0pav0j5qg97kh8l7521ksk-nixpkgs-patched.drv'...
unpacking sources
unpacking source archive /nix/store/x9k6p4i7l07sgpa9xji9ng0sh55w8bwj-nixpkgs-src
source root is nixpkgs-src
patching sources
applying patch /nix/store/fii2cv2wqn5wn1qh1pk9dgyri81mnhmn-0001-ghc865-binary-Use-binary-distribution-which-links-ag.patch
patching file pkgs/development/compilers/ghc/8.6.5-binary.nix
applying patch /nix/store/bj7kkqjd66mxwd3axl45prnkmy388w78-0002-openblas-0.3.10-0.3.13.patch
patching file pkgs/development/libraries/science/math/openblas/default.nix
applying patch /nix/store/xgm7jxvwk92gk08nhlj3vk3gj7hfqa8j-fb063991b26b2b93dece6d09f37041451a5ef4cb.patch
patching file pkgs/development/tools/misc/macdylibbundler/default.nix
patching file pkgs/top-level/all-packages.nix
Hunk #1 succeeded at 21733 (offset -657 lines).
installing
copying path '/nix/store/dasj2x12lbk4dxk6lzgp0rjjghafwkm9-naersk-src' from 'https://ic-hs-test.cachix.org'...
copying path '/nix/store/9dhd4rx4hr1gvwcqpd9h6l2nlk27ysp2-niv-src' from 'https://ic-hs-test.cachix.org'...
/Users/runner/work/_temp/01fe660f-710b-4a9c-ba3e-b4a356490206.sh: line 1:  1756 Segmentation fault: 11  nix-build --max-jobs 10 -A all-systems-go
Error: Process completed with exit code 139.

(copied from here)

Steps To Reproduce

I don’t have a darwin machine myself, so I cannot try to reproduce it outside of the Github Action builder. But it should just be a matter of

git clone git@github.com:dfinity/motoko
git checkout 1831f63aa20128729e31411ebd9e9dceb506b826
cachix use ic-hs-test
nix-build -A all-systems-go

But it only crashes sometimes, which makes debugging harder.

nix is installed via cachix/install-nix-action@v13 which installs nix-2.4pre19700101.

nomeata commented 3 years ago

Or maybe it even is deterministic (and it passed before in cases where fewer derivations were available in the nix cache)

nomeata commented 3 years ago

Indeed it appears to be deterministic. And just reproduced it with latest nix master (43856b0).

nomeata commented 3 years ago

And, in case it helps, it does not seem to occur with nix-2.3.13

edolstra commented 3 years ago

Random crashes often indicate an issue with Boehm GC not finding some GC roots. Running with the environment variable GC_INITIAL_HEAP_SIZE=512k might make it easier to trigger a crash (by forcing earlier/more frequent GCs).

edolstra commented 3 years ago

Does this project use import-from-derivation?

nomeata commented 3 years ago

Does this project use import-from-derivation?

Yes, I believe it does. (For example it patches the whole of nixpkgs before including it.)

stale[bot] commented 2 years ago

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