You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When compiling any crate for any target, be it native or cross compiled when the installPhase is ran and removeReferencesToVendoredSourcesHook is running i seed sed sleep for about 40 seconds, followed by a rapid jump in memory usage up to around 18GB.
I've tried messing around by extracting the script and running it manually but cannot recreate without it being part of the build.
Also worth noting I'm using crane through dream2nix which I'm using through nix-cargo-integration.
Reproduction
The Repository is located at https://github.com/AMTSupport/tools
This is a monorepo with multiple programs the issue occurs in all of them so far in my testing but for reference you can run nix build .#cleaner-x86_64-linux-dev
Logs
cleaner-deps>cargoArtifactsnotset,willnotreuseanycargoartifactscleaner-deps>Runningphase: unpackPhasecleaner-deps>dream2nix: installingcargovendordirectoryfrom/nix/store/lp9hshc5vcz7nam55nb4nnzk5l4d5q6p-vendorto/build/nix-vendorcleaner-deps>unpackingsourcearchive/nix/store/6z8da5w3jwzw9ndk1a36xmz3hparqbml-sourcecleaner-deps>sourcerootissourcecleaner-deps>Runningphase: patchPhasecleaner-deps>movingCargo.locktoCargo.lock.orig,thenwilluse/nix/store/cjdp7qv9n45rlbb2f29n8knf89g54343-Cargo.lockasCargo.lockcleaner-deps>ExecutingconfigureCargoCommonVarscleaner-deps>Runningphase: updateAutotoolsGnuConfigScriptsPhasecleaner-deps>Runningphase: configurePhasecleaner-deps>dream2nix: Writinggitvendorentriesto/build/.cargo_home/config.tomlcleaner-deps>dream2nix: replacingrelativedependencypaths with absolutepaths in Cargo.tomlcleaner-deps>settingsourcereplacementconfig in /build/.cargo_home/config.tomlusingvendoreddirectory/build/nix-vendorcleaner-deps>defaultconfigurePhase,nothingtodocleaner-deps>Runningphase: buildPhasecleaner-deps> ++commandcargo--versioncleaner-deps>cargo1.84.0-nightly(4a2d8dc632024-11-09)cleaner-deps> ++commandcargocheck--profiledev--packagecleaner--lockedcleaner-deps>warning: /build/source/crates/rebooter/Cargo.toml: `default-features` isignoredforchrono,since `default-features` wasnotspecifiedfor `workspace.dependencies.chrono`,thiscouldbecomeaharderror in thefuturecleaner-deps>Compilingproc-macro2v1.0.86cleaner-deps>Compilingunicode-identv1.0.13cleaner-deps>Compilinglibcv0.2.159cleaner-deps>Compilingautocfgv1.4.0cleaner-deps>Compilingversion_checkv0.9.5cleaner-deps>Checkinglogv0.4.22cleaner-deps>Checkingonce_cellv1.20.1cleaner-deps>Checkingutf8parsev0.2.2cleaner-deps>Checkingcfg-ifv1.0.0cleaner-deps>Compilingcrossbeam-utilsv0.8.20cleaner-deps>Compilingsynv1.0.109cleaner-deps>Checkingsmallvecv1.13.2cleaner-deps>Checkinglazy_staticv1.5.0cleaner-deps>Checkingitoav1.0.11cleaner-deps>Checkingunicode-widthv0.1.14cleaner-deps>Compilingparking_lot_corev0.9.10cleaner-deps>Compilingsignal-hookv0.3.17cleaner-deps>Checkingoverloadv0.1.1cleaner-deps>Checkingcolorchoicev1.0.2cleaner-deps>Checkingis_terminal_polyfillv1.70.1cleaner-deps>Checkingscopeguardv1.2.0cleaner-deps>Checkinganstylev1.0.8cleaner-deps>Checkinganstyle-queryv1.1.1cleaner-deps>Checkingarrayvecv0.7.6cleaner-deps>Checkingunicode-segmentationv1.12.0cleaner-deps>Checkinganstyle-parsev0.2.5cleaner-deps>Compilingthiserrorv1.0.64cleaner-deps>Compilingportable-atomicv1.9.0cleaner-deps>Compilingrustixv0.38.37cleaner-deps>Checkingpin-project-litev0.2.14cleaner-deps>Checkingnu-ansi-termv0.46.0cleaner-deps>Checkingsharded-slabv0.1.7cleaner-deps>Checkingpowerfmtv0.2.0cleaner-deps>Checkingstrsimv0.11.1cleaner-deps>Compilinganyhowv1.0.89cleaner-deps>Checkingtracing-corev0.1.32cleaner-deps>Checkingthread_localv1.1.8cleaner-deps>Compilingheckv0.5.0cleaner-deps>Checkingbitflagsv2.6.0cleaner-deps>Checkingclap_lexv0.7.2cleaner-deps>Checkinganstreamv0.6.15cleaner-deps>Checkinglinux-raw-sysv0.4.14cleaner-deps>Checkingderangedv0.3.11cleaner-deps>Checkingnum-convv0.1.0cleaner-deps>Checkingfastrandv2.1.1cleaner-deps>Compilingrayon-corev1.12.1cleaner-deps>Checkingtime-corev0.1.2cleaner-deps>Compilingpastev1.0.15cleaner-deps>Checkingbitflagsv1.3.2cleaner-deps>Checkingnumber_prefixv0.4.0cleaner-deps>Checkingnewline-converterv0.3.0cleaner-deps>Checkingclap_builderv4.5.18cleaner-deps>Compilingmacrosv0.2.0(/build/source/crates/macros)cleaner-deps>Compilingproc-macro-error-attrv1.0.4cleaner-deps>Compilingproc-macro-errorv1.0.4cleaner-deps>Compilinglibv0.2.0(/build/source/crates/lib)cleaner-deps>Checkingdyn-clonev1.0.17cleaner-deps>Checkingiana-time-zonev0.1.61cleaner-deps>Checkingtracing-logv0.2.0cleaner-deps>Checkingfutures-corev0.3.30cleaner-deps>Checkingis_executablev1.0.3cleaner-deps>Checkingsysexitsv0.8.2cleaner-deps>Checkingeitherv1.13.0cleaner-deps>Checkingimplsv1.0.3cleaner-deps>Checkingshlexv1.3.0cleaner-deps>Compilingcleanerv0.2.0(/build/source/crates/cleaner)cleaner-deps>Checkingglobv0.3.1cleaner-deps>Compilinglock_apiv0.4.12cleaner-deps>Compilingnum-traitsv0.2.19cleaner-deps>Checkingdowncast-rsv1.2.1cleaner-deps>Checkingtracing-subscriberv0.3.18cleaner-deps>Checkingtimev0.3.36cleaner-deps>Checkingquotev1.0.37cleaner-deps>Checkingcrossbeam-epochv0.9.18cleaner-deps>Checkingcrossbeam-channelv0.5.13cleaner-deps>Checkingsynv2.0.79cleaner-deps>Checkingcrossbeam-dequev0.8.5cleaner-deps>Checkingsignal-hook-registryv1.4.2cleaner-deps>Checkingmiov0.8.11cleaner-deps>Checkingconsolev0.15.8cleaner-deps>Checkingpermissionsv0.5.1cleaner-deps>Compilingvte_generate_state_changesv0.1.2cleaner-deps>Checkingparking_lotv0.12.3cleaner-deps>Checkingsignal-hook-miov0.2.4cleaner-deps>Checkingcrosstermv0.25.0cleaner-deps>Checkingchronov0.4.38cleaner-deps>Checkingrayonv1.10.0cleaner-deps>Checkingvtev0.11.1cleaner-deps>Checkingvt100v0.15.2cleaner-deps>Checkingindicatifv0.17.8cleaner-deps>Checkingtempfilev3.13.0cleaner-deps>Compilingquote-usev0.5.1cleaner-deps>Compilingattribute-derive-macrov0.3.1cleaner-deps>Compilingthiserror-implv1.0.64cleaner-deps>Compilingclap_derivev4.5.18cleaner-deps>Compilingtracing-attributesv0.1.27cleaner-deps>Compilingtokio-macrosv2.4.0cleaner-deps>Compilingasync-traitv0.1.83cleaner-deps>Compilingattribute-derivev0.3.1cleaner-deps>Checkingtokiov1.40.0cleaner-deps>Compilingmichie-macrov3.0.2cleaner-deps>Checkinginquirev0.6.2(https://github.com/anwarhahjjeffersongeorge/inquire-filepath/?branch=filepath-select#a5f53ecb)cleaner-deps>Checkingtracing-appenderv0.2.3cleaner-deps>Checkingtracingv0.1.40cleaner-deps>Checkingtracing-indicatifv0.3.6cleaner-deps>Checkingmichiev3.0.2cleaner-deps>Checkingclapv4.5.18cleaner-deps>Checkingclap_completev4.5.29cleaner-deps>Checkingtokio-streamv0.1.16cleaner-deps>Finisheddevprofile[unoptimized + debuginfo]target(s) in 6.72scleaner-deps> ++commandcargobuild--profiledev--packagecleaner--lockedcleaner-deps>warning: /build/source/crates/rebooter/Cargo.toml: `default-features` isignoredforchrono,since `default-features` wasnotspecifiedfor `workspace.dependencies.chrono`,thiscouldbecomeaharderrorinthefuturecleaner-deps>Compilinglogv0.4.22cleaner-deps>Compilingcfg-ifv1.0.0cleaner-deps>Compilingutf8parsev0.2.2cleaner-deps>Compilingonce_cellv1.20.1cleaner-deps>Compilingsmallvecv1.13.2cleaner-deps>Compilinglazy_staticv1.5.0cleaner-deps>Compilingitoav1.0.11cleaner-deps>Compilingunicode-widthv0.1.14cleaner-deps>Compilingarrayvecv0.7.6cleaner-deps>Compilingis_terminal_polyfillv1.70.1cleaner-deps>Compilingoverloadv0.1.1cleaner-deps>Compilingcolorchoicev1.0.2cleaner-deps>Compilingscopeguardv1.2.0cleaner-deps>Compilinganstyle-queryv1.1.1cleaner-deps>Compilinganstyle-parsev0.2.5cleaner-deps>Compilinglibcv0.2.159cleaner-deps>Compilingcrossbeam-utilsv0.8.20cleaner-deps>Compilinganstylev1.0.8cleaner-deps>Compilingunicode-segmentationv1.12.0cleaner-deps>Compilingpin-project-litev0.2.14cleaner-deps>Compilingsharded-slabv0.1.7cleaner-deps>Compilinglock_apiv0.4.12cleaner-deps>Compilingnu-ansi-termv0.46.0cleaner-deps>Compilingtracing-corev0.1.32cleaner-deps>Compilingthread_localv1.1.8cleaner-deps>Compilingbitflagsv2.6.0cleaner-deps>Compilingstrsimv0.11.1cleaner-deps>Compilingunicode-identv1.0.13cleaner-deps>Compilingclap_lexv0.7.2cleaner-deps>Compilingpowerfmtv0.2.0cleaner-deps>Compilinglinux-raw-sysv0.4.14cleaner-deps>Compilingvtev0.11.1cleaner-deps>Compilingthiserrorv1.0.64cleaner-deps>Compilingportable-atomicv1.9.0cleaner-deps>Compilingnumber_prefixv0.4.0cleaner-deps>Compilingbitflagsv1.3.2cleaner-deps>Compilingnum-convv0.1.0cleaner-deps>Compilingtime-corev0.1.2cleaner-deps>Compilingfastrandv2.1.1cleaner-deps>Compilingproc-macro2v1.0.86cleaner-deps>Compilinganstreamv0.6.15cleaner-deps>Compilinganyhowv1.0.89cleaner-deps>Compilingdyn-clonev1.0.17cleaner-deps>Compilingtokiov1.40.0cleaner-deps>Compilingderangedv0.3.11cleaner-deps>Compilingnum-traitsv0.2.19cleaner-deps>Compilingsysexitsv0.8.2cleaner-deps>Compilingis_executablev1.0.3cleaner-deps>Compilingiana-time-zonev0.1.61cleaner-deps>Compilingeitherv1.13.0cleaner-deps>Compilingshlexv1.3.0cleaner-deps>Compilingfutures-corev0.3.30cleaner-deps>Compilingimplsv1.0.3cleaner-deps>Compilingnewline-converterv0.3.0cleaner-deps>Compilingmichiev3.0.2cleaner-deps>Compilingclap_builderv4.5.18cleaner-deps>Compilingdowncast-rsv1.2.1cleaner-deps>Compilingglobv0.3.1cleaner-deps>Compilingtracing-logv0.2.0cleaner-deps>Compilingtracingv0.1.40cleaner-deps>Compilingcrossbeam-epochv0.9.18cleaner-deps>Compilingcrossbeam-channelv0.5.13cleaner-deps>Compilingrustixv0.38.37cleaner-deps>Compilingsignal-hook-registryv1.4.2cleaner-deps>Compilingmiov0.8.11cleaner-deps>Compilingparking_lot_corev0.9.10cleaner-deps>Compilingconsolev0.15.8cleaner-deps>Compilingpermissionsv0.5.1cleaner-deps>Compilingquotev1.0.37cleaner-deps>Compilingtracing-subscriberv0.3.18cleaner-deps>Compilingcrossbeam-dequev0.8.5cleaner-deps>Compilingsignal-hookv0.3.17cleaner-deps>Compilingparking_lotv0.12.3cleaner-deps>Compilingsynv2.0.79cleaner-deps>Compilingrayon-corev1.12.1cleaner-deps>Compilingvt100v0.15.2cleaner-deps>Compilingsignal-hook-miov0.2.4cleaner-deps>Compilingchronov0.4.38cleaner-deps>Compilingtimev0.3.36cleaner-deps>Compilingcrosstermv0.25.0cleaner-deps>Compilingrayonv1.10.0cleaner-deps>Compilingindicatifv0.17.8cleaner-deps>Compilingtracing-indicatifv0.3.6cleaner-deps>Compilingtokio-streamv0.1.16cleaner-deps>Compilingtracing-appenderv0.2.3cleaner-deps>Compilingclapv4.5.18cleaner-deps>Compilingclap_completev4.5.29cleaner-deps>Compilingmacrosv0.2.0(/build/source/crates/macros)cleaner-deps>Compilingtempfilev3.13.0cleaner-deps>Compilinginquirev0.6.2(https://github.com/anwarhahjjeffersongeorge/inquire-filepath/?branch=filepath-select#a5f53ecb)cleaner-deps>Compilinglibv0.2.0(/build/source/crates/lib)cleaner-deps>Compilingcleanerv0.2.0(/build/source/crates/cleaner)cleaner-deps>Finisheddevprofile[unoptimized + debuginfo]target(s) in 3.94scleaner-deps>Runningphase: installPhasecleaner-deps>nopreviousartifactsfound,compressingandinstallingfullarchiveoftargetto/nix/store/b2yhv7f2sbc9vang102s1lrpcfywb537-cleaner-deps-0.2.0/target.tar.zstcleaner-deps> /*stdin*\ : 24.14% (539MiB=>130MiB,/nix/store/b2yhv7f2sbc9vang102s1lrpcfywb537-cleaner-deps-0.2.0/target.tar.zst)cleaner-deps>Runningphase: fixupPhasecleaner-deps>shrinkingRPATHsofELFexecutablesandlibraries in /nix/store/b2yhv7f2sbc9vang102s1lrpcfywb537-cleaner-deps-0.2.0cleaner-deps>checkingforreferencesto/build/ in /nix/store/b2yhv7f2sbc9vang102s1lrpcfywb537-cleaner-deps-0.2.0...cleaner-deps>patchingscriptinterpreterpaths in /nix/store/b2yhv7f2sbc9vang102s1lrpcfywb537-cleaner-deps-0.2.0cleaner-deps>fixupPhasecompleted in 59secondscleaner>Runningphase: unpackPhasecleaner>dream2nix: installingcargovendordirectoryfrom/nix/store/b2yhv7f2sbc9vang102s1lrpcfywb537-cleaner-deps-0.2.0/nix-vendorto/build/nix-vendorcleaner>unpackingsourcearchive/nix/store/m9i2kaki0n40jfy0qapsw7y1a4v6mqvp-d903gg4rksis9rmj2aa3ks2pv1aqbmqq-sourcecleaner>sourcerootisd903gg4rksis9rmj2aa3ks2pv1aqbmqq-sourcecleaner>Runningphase: patchPhasecleaner>ExecutingconfigureCargoCommonVarscleaner>decompressingcargoartifactsfrom/nix/store/b2yhv7f2sbc9vang102s1lrpcfywb537-cleaner-deps-0.2.0/target.tar.zsttotargetcleaner>Runningphase: updateAutotoolsGnuConfigScriptsPhasecleaner>Runningphase: configurePhasecleaner>dream2nix: Writinggitvendorentriesto/build/.cargo_home/config.tomlcleaner>dream2nix: replacingrelativedependencypaths with absolutepaths in Cargo.tomlcleaner>dream2nix: replacingCargo.lock with /nix/store/cjdp7qv9n45rlbb2f29n8knf89g54343-Cargo.lockcleaner>settingsourcereplacementconfig in /build/.cargo_home/config.tomlusingvendoreddirectory/build/nix-vendorcleaner>defaultconfigurePhase,nothingtodocleaner> Runningphase: buildPhasecleaner> ++ commandcargo --versioncleaner> cargo1.84.0-nightly(4a2d8dc632024-11-09)cleaner> ++commandcargobuild--profiledev--packagecleaner--message-formatjson-render-diagnostics--lockedcleaner>warning: /build/d903gg4rksis9rmj2aa3ks2pv1aqbmqq-source/crates/rebooter/Cargo.toml: default-featuresisignoredforchrono,sincedefault-featureswasnotspecifiedforworkspace.dependencies.chrono,thiscouldbecomeaharderror in thefuturecleaner>Compilinganyhowv1.0.89cleaner>Compilingimplsv1.0.3cleaner>Compilinglibv0.2.0(/build/d903gg4rksis9rmj2aa3ks2pv1aqbmqq-source/crates/lib)cleaner>Compilingmacrosv0.2.0(/build/d903gg4rksis9rmj2aa3ks2pv1aqbmqq-source/crates/macros)cleaner>Compilingcleanerv0.2.0(/build/d903gg4rksis9rmj2aa3ks2pv1aqbmqq-source/crates/cleaner)cleaner>Finisheddevprofile[unoptimized + debuginfo]target(s) in 2.96scleaner>Runningphase: installPhasecleaner>searchingforbins/libstoinstallfromcargobuildlogatcargoBuildLog01OC.jsoncleaner>installing/build/d903gg4rksis9rmj2aa3ks2pv1aqbmqq-source/target/x86_64-unknown-linux-gnu/debug/cleanercleaner>searchingforbins/libscompletecleaner>strippingreferencestocargoVendorDirfrom:
cleaner>/nix/store/nzhc0c9rcsrsx67v3dasg2gzxzfvk4gn-cleaner-0.2.0/bin/cleanercleaner>strippingreferencesdonecleaner>installPhasecompleted in 1minutes13secondscleaner>Runningphase: fixupPhasecleaner>shrinkingRPATHsofELFexecutablesandlibraries in /nix/store/nzhc0c9rcsrsx67v3dasg2gzxzfvk4gn-cleaner-0.2.0cleaner>shrinking/nix/store/nzhc0c9rcsrsx67v3dasg2gzxzfvk4gn-cleaner-0.2.0/bin/cleanercleaner>checkingforreferencesto/build/ in /nix/store/nzhc0c9rcsrsx67v3dasg2gzxzfvk4gn-cleaner-0.2.0...cleaner>patchingscriptinterpreterpaths in /nix/store/nzhc0c9rcsrsx67v3dasg2gzxzfvk4gn-cleaner-0.2.0cleaner>stripping(withcommandstripandflags-S-p)in/nix/store/nzhc0c9rcsrsx67v3dasg2gzxzfvk4gn-cleaner-0.2.0/bin
The text was updated successfully, but these errors were encountered:
Describe the bug
When compiling any crate for any target, be it native or cross compiled when the installPhase is ran and removeReferencesToVendoredSourcesHook is running i seed sed sleep for about 40 seconds, followed by a rapid jump in memory usage up to around 18GB.
I've tried messing around by extracting the script and running it manually but cannot recreate without it being part of the build.
Also worth noting I'm using crane through dream2nix which I'm using through nix-cargo-integration.
Reproduction
The Repository is located at https://github.com/AMTSupport/tools
This is a monorepo with multiple programs the issue occurs in all of them so far in my testing but for reference you can run
nix build .#cleaner-x86_64-linux-dev
Logs
The text was updated successfully, but these errors were encountered: