cachix / devenv

Fast, Declarative, Reproducible, and Composable Developer Environments
https://devenv.sh
Apache License 2.0
3.56k stars 259 forks source link

devenv search not working #1105

Closed yswtrue closed 1 month ago

yswtrue commented 1 month ago

Describe the bug run devenv search php get this error

error:
       error: builder for '/nix/store/gn4wx0az3i3jnx640j4nx73lgyvin9di-options.json.drv' failed with exit code 137;
       last 1 log lines:
       > /private/tmp/nix-build-options.json.drv-0/.attr-0l2nkwhif96f51f4amnlf414lhl4rv9vh8iffyp431v6s28gsr90: line 19: 95763 Killed: 9               brotli -9 < $dst/options.json > $dst/options.json.br
       For full logs, run 'nix log /nix/store/gn4wx0az3i3jnx640j4nx73lgyvin9di-options.json.drv'.

✖ Command produced the following output:

Error:   × Command `/nix/store/kqd67d5k0f4sv1c2hq72yqyh9ai5dh24-nix-2.21-devenv/bin/nix --show-trace
  │ --extra-experimental-features nix-command --extra-experimental-features flakes --option warn-
  │ dirty false --option eval-cache false --keep-going --max-jobs 6 --offline build --no-link
  │ --print-out-paths .#optionsJSON` failed with with exit code 1

To reproduce

devenv init
devenv search python

Version devenv 1.0.2 (aarch64-darwin)

domenkozar commented 1 month ago

Do you run out of memory?

yswtrue commented 1 month ago

I have 64g memory, it should't run out of memry, or how can I reduce memory usage for building.

domenkozar commented 1 month ago

Can you check dmesg for any clues why it's killing the process?

yswtrue commented 1 month ago

this is dmesg output https://gist.githubusercontent.com/yswtrue/75875fa16033fa0d703ccc670d8e003d/raw/4d74724c33740a01aad4f591da206bb1d62e18d8/gistfile1.txt

yswtrue commented 1 month ago

seams due to code signature validation failed

[70145.262038]: nix[77210] triggered unnest of range 0x1f2000000->0x1f4000000 of DYLD shared region in VM map 0x8e96599e29ebad9. While not abnormal for debuggers, this increases system memory footprint until the target exits.
[70145.291761]: 1 duplicate report for Sandbox: searchpartyuseragent(71046) deny(1) mach-lookup com.apple.contactsd.persistenceSystem Policy: nix(77212) deny(1) signal others [lockoutagent(613)] signum:9System Policy: nix(77212) deny(1) signal same-sandbox [BackgroundTaskMa(599)] signum:9System Policy: nix(77212) deny(1) signal same-sandbox [XProtectPluginSe(479)] signum:9System Policy: nix(77212) deny(1) signal same-sandbox [suhelperd(533)] signum:9System Policy: nix(77212) deny(1) signal others [softwareupdated(526)] signum:9System Policy: nix(77212) deny(1) signal others [systemstatusd(457)] signum:9Sandbox apply: sandbox-exec[77213] <bytes>AMFI: '/nix/store/iz0cvpsq714d4da20v19cdnrz3li6cba-python3-3.11.8/bin/python3.11' is adhoc signed.
[70145.336714]: AMFI: code signature validation failed.
[70145.344347]: Waking up reference: 8351Thread waiting on reference 8351 woke upevaluation result: 8351, allowed, cache,  1712354123, 0, /nix/store/iz0cvpsq714d4da20v19cdnrz3li6cba-python3-3.11.8/bin/python3.11AMFI: '/nix/store/iz0cvpsq714d4da20v19cdnrz3li6cba-python3-3.11.8/lib/libpython3.11.dylib' is adhoc signed.
[70145.345385]: AMFI: code signature validation failed.
[70145.349026]: Waking up reference: 8352Thread waiting on reference 8352 woke upevaluation result: 8352, allowed, cache,  1712354126, 0, /nix/store/iz0cvpsq714d4da20v19cdnrz3li6cba-python3-3.11.8/lib/libpython3.11.dylibAMFI: '/nix/store/iz0cvpsq714d4da20v19cdnrz3li6cba-python3-3.11.8/lib/python3.11/lib-dynload/_json.cpython-311-darwin.so' is adhoc signed.
[70145.432908]: AMFI: code signature validation failed.
[70145.438269]: Waking up reference: 8353Thread waiting on reference 8353 woke upevaluation result: 8353, allowed, cache,  1712354131, 0, /nix/store/iz0cvpsq714d4da20v19cdnrz3li6cba-python3-3.11.8/lib/python3.11/lib-dynload/_json.cpython-311-darwin.soAMFI: '/nix/store/iz0cvpsq714d4da20v19cdnrz3li6cba-python3-3.11.8/lib/python3.11/lib-dynload/_typing.cpython-311-darwin.so' is adhoc signed.
[70145.444867]: AMFI: code signature validation failed.
[70145.449863]: Waking up reference: 8354Thread waiting on reference 8354 woke upevaluation result: 8354, allowed, cache,  1712354135, 0, /nix/store/iz0cvpsq714d4da20v19cdnrz3li6cba-python3-3.11.8/lib/python3.11/lib-dynload/_typing.cpython-311-darwin.soAMFI: '/nix/store/6qg40377klsf2bzjyssgiz834xd6fc0z-brotli-1.1.0/bin/brotli' is adhoc signed.
[70145.474004]: AMFI: code signature validation failed.
[70145.474301]: ignoring detached code signature on 'brotli' with cdhash '87151e669b05af4ebb367b2d7b5405d2a3273060' because it is invalid, or not a simple adhoc signature.
[70145.477998]: Waking up reference: 8355Thread waiting on reference 8355 woke upevaluation result: 8355, allowed, cache,  1712354150, 8, /nix/store/6qg40377klsf2bzjyssgiz834xd6fc0z-brotli-1.1.0/bin/brotliCODE SIGNING: process 77220[brotli]: rejecting invalid page at address 0x102a58000 from offset 0x0 in file "/nix/store/6qg40377klsf2bzjyssgiz834xd6fc0z-brotli-1.1.0/bin/brotli" (cs_mtime:1.0 == mtime:1.0) (signed:1 validated:1 tainted:1 nx:0 wpmapped:0 dirty:0 depth:0)
[70145.478086]: brotli[77220] Corpse allowed 1 of 5
[70145.482221]: System Policy: nix(77221) deny(1) signal same-sandbox [XProtect(43222)] signum:9System Policy: nix(77221) deny(1) signal same-sandbox [XProtect(24459)] signum:9System Policy: nix(77221) deny(1) signal same-sandbox [system_installd(63978)] signum:9System Policy: nix(77221) deny(1) signal same-sandbox [XProtectPluginSe(1171)] signum:9System Policy: nix(77221) deny(1) signal others [XprotectService(1086)] signum:9System Policy: nix(77221) deny(1) signal others [UsageTrackingAge(968)] signum:9System Policy: nix(77221) deny(1) signal others [ScreenTimeAgent(661)] signum:9System Policy: nix(77221) deny(1) signal others [dmd(621)] signum:9System Policy: nix(77221) deny(1) signal others [lockoutagent(613)] signum:9warning: ReportCrash(61733) performed out-of-band resume on pid 77220
[70145.482786]: System Policy: nix(77221) deny(1) signal same-sandbox [BackgroundTaskMa(599)] signum:9System Policy: nix(77221) deny(1) signal same-sandbox [XProtectPluginSe(479)] signum:9System Policy: nix(77221) deny(1) signal same-sandbox [suhelperd(533)] signum:9System Policy: nix(77221) deny(1) signal others [softwareupdated(526)] signum:9System Policy: nix(77221) deny(1) signal others [systemstatusd(457)] signum:9Corpse released, count at 0
yswtrue commented 1 month ago

It works now, but I don't know why