!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

125 Members
24 Servers

Load older messages


SenderMessageTime
2 May 2023
@raphi:tapesoftware.netraphi

i think these are different issues
evils: setting COREHOST_TRACE helps with debugging dotnet startup issues: COREHOST_TRACE=1 ./result/bin/UVtools:

Launch host: /nix/store/b1mz9an1n8cx92g5f87p5qszbzmm7dli-UVtools-3.13.1/lib/UVtools/UVtools, app: /nix/store/b1mz9an1n8cx92g5f87p5qszbzmm7dli-UVtools-3.13.1/lib/UVtools/UVtools.dll, argc: 4, args: --crash-report,
Application,System.DllNotFoundException: Unable to load shared library 'libX11.so.6' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibX11.so.6: cannot open shared object file: No such file or directory

so add libX11 to runtimeDeps. i suppose UVtools is swallowing and ignoring this exception which is not nice...

huantian: can this be reproduced on nixpkgs master?

06:33:24
@huantian:huantian.devhuantianI believe so, let me push one of my partially finished packages to my nixpkgs fork06:35:16
@huantian:huantian.devhuantian raphi: made a quick draft pr, https://github.com/NixOS/nixpkgs/pull/229418, seems to fail for me still 06:48:59
@raphi:tapesoftware.netraphi Fails for me with > /build/tmp.5fQjk7b3Hi/.nuget/packages/gitinfo/2.2.0/build/GitInfo.targets(212,3): error : Failed to run git --version. Git may not be properly installed: [/build/source/TRBot/TRBot.Build/TRBot.Build.csproj]
no segmentation fault 🤔
06:53:40
@huantian:huantian.devhuantianweird...06:53:55
@huantian:huantian.devhuantianmaybe it's something to do with a system config or something?07:00:47
@raphi:tapesoftware.netraphionly thing i can think of is /tmp is on tmpfs, and you're running out of memory07:01:41
@raphi:tapesoftware.netraphiotherwise no clue07:01:43
@huantian:huantian.devhuantian Yeah I don't have boot.tmpOnTmpfs set, I've had issues with running out of memory in /run/user/1000 but that's a different error, plus I'm not actually running out of memory 07:04:03
@huantian:huantian.devhuantian I don't think this should change anything, maybe try building a similar package from my system flake? nix build github:huantianad/nixos-config#tjaplayer3-f? 07:05:50
@huantian:huantian.devhuantianI'll also try roling back my system config to see if that changes anything but I doubt it07:09:00
@huantian:huantian.devhuantian * I'll also try roiling back my system config to see if that changes anything, as I discovered this initially after building my system after a flake update. However, I don't know if this'll change anything, but it's worth a try ig.07:12:22
@raphi:tapesoftware.netraphibuilds successfully on nixos and opensuse wsl07:12:23
@raphi:tapesoftware.netraphibut my nixos installation is still on 22.1107:14:08
@huantian:huantian.devhuantianSystem rollback did not fix the issue unfortunately, I'm also getting an error building the package on my laptop as well.07:27:56
@huantian:huantian.devhuantian * System rollback did not fix the issue unfortunately, I'm also getting the same error building the package on my laptop as well.07:28:21
@huantian:huantian.devhuantian * System rollback did not fix the issue unfortunately, I'm also getting the same error building the package on my laptop as well. Doesn't have the exact same config, but does use the same base as usual.07:29:52
@huantian:huantian.devhuantiantesting on my servers, I do get some interesting behavior07:48:20
@huantian:huantian.devhuantianI have two oracle vms rn, one I've updated to my latest flake, the other is running an older version with an older version of nixpkgs07:48:50
@huantian:huantian.devhuantian

It builds properly on the one I did not update and is running an older version, but fails on the one I just updated.

❯ nix build github:huantianad/nixos-config#tjaplayer3-f
error: builder for '/nix/store/rscfr5ivym33v9w1n7p20zbarn5cif77-tjaplayer3-f-1.8.2.1-dependencies-source.drv' failed with exit code 139;
       last 1 log lines:
       > /nix/store/a4v3az5zmqfc2x3gyjgds5azgdhf9b54-stdenv-linux/setup: line 1560:     7 Segmentation fault      (core dumped) nuget init "/nix/store/gv7vh34zghgnmla0qjgfgzxmvjxb6k2d-tjaplayer3-f-1.8.2.1-nuget-deps" "$out/lib"
       For full logs, run 'nix log /nix/store/rscfr5ivym33v9w1n7p20zbarn5cif77-tjaplayer3-f-1.8.2.1-dependencies-source.drv'.
error: 1 dependencies of derivation '/nix/store/iyxav3kp33lss074hsxwzdxyb802vb39-tjaplayer3-f-1.8.2.1-nuget-source.drv' failed to build
error: 1 dependencies of derivation '/nix/store/1xwcj0kas9hic5p5yadl6iqqd81fnhcd-dotnet-configure-hook.drv' failed to build
error: 1 dependencies of derivation '/nix/store/pnczabfvvfn5h86l679chac6sgx389q7-tjaplayer3-f-1.8.2.1.drv' failed to build
07:49:23
@huantian:huantian.devhuantianso it seems it was caused by a system update07:49:39
@raphi:tapesoftware.netraphican reproduce now: $ nix build github:huantianad/nixos-config#tjaplayer3-f error: builder for '/nix/store/rscfr5ivym33v9w1n7p20zbarn5cif77-tjaplayer3-f-1.8.2.1-dependencies-source.drv' failed with exit code 139; last 1 log lines: > /nix/store/a4v3az5zmqfc2x3gyjgds5azgdhf9b54-stdenv-linux/setup: line 1560: 7 Segmentation fault (core dumped) nuget init "/nix/store/gv7vh34zghgnmla0qjgfgzxmvjxb6k2d-tjaplayer3-f-1.8.2.1-nuget-deps" "$out/lib" For full logs, run 'nix log /nix/store/rscfr5ivym33v9w1n7p20zbarn5cif77-tjaplayer3-f-1.8.2.1-dependencies-source.drv'. nixos-unstable d6b863fd9b7bb962e6f9fdf292419a775e772891 worked, 1a411f23ba299db155a5b45d5e145b85a7aafc42 is broken. will try to bisect this17:14:57
@raphi:tapesoftware.netraphi *

can reproduce now:

$ nix build github:huantianad/nixos-config#tjaplayer3-f
error: builder for '/nix/store/rscfr5ivym33v9w1n7p20zbarn5cif77-tjaplayer3-f-1.8.2.1-dependencies-source.drv' failed with exit code 139;
       last 1 log lines:
       > /nix/store/a4v3az5zmqfc2x3gyjgds5azgdhf9b54-stdenv-linux/setup: line 1560:     7 Segmentation fault      (core dumped) nuget init "/nix/store/gv7vh34zghgnmla0qjgfgzxmvjxb6k2d-tjaplayer3-f-1.8.2.1-nuget-deps" "$out/lib"
       For full logs, run 'nix log /nix/store/rscfr5ivym33v9w1n7p20zbarn5cif77-tjaplayer3-f-1.8.2.1-dependencies-source.drv'.

nixos-unstable d6b863fd9b7bb962e6f9fdf292419a775e772891 worked, 1a411f23ba299db155a5b45d5e145b85a7aafc42 is broken. will try to bisect this

17:15:18
@raphi:tapesoftware.netraphiRedacted or Malformed Event18:02:23
@raphi:tapesoftware.netraphi
       > openat(AT_FDCWD, "/build/tmp.sWUePkJTQX/.mono/config", O_RDONLY) = -1 ENOENT (No such file or directory)
       > access("/proc/self/maps", F_OK)         = 0
       > access("/proc/xen", F_OK)               = -1 ENOENT (No such file or directory)
       > mmap(NULL, 65536, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS|MAP_32BIT, -1, 0) = -1 ENOMEM (Cannot allocate memory)
       > openat(AT_FDCWD, "/dev/zero", O_RDONLY) = 3
       > mmap(NULL, 65536, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS|MAP_32BIT, 3, 0) = -1 ENOMEM (Cannot allocate memory)
       > close(3)                                = 0
       > --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} ---
       > +++ killed by SIGSEGV (core dumped) +++
       > /nix/store/2s0i8w7717g97wmj0r3rhdlhlwac0hj8-stdenv-linux/setup: line 1560:     7 Segmentation fault      (core dumped) strace nuget init "/nix/store/l0d2d7h78n87fsr7s8aw8k6n6k15b028-tjaplayer3-f-1.8.2.1-nuget-deps" "$out/lib"
18:26:34
@raphi:tapesoftware.netraphiugh mkNugetSource is using mono to run nuget18:44:46
@raphi:tapesoftware.netraphipossibly related: https://lore.kernel.org/all/32f156ba80010fd97dbaf0a0cdfc84366608624d.camel@intel.com/18:46:07
@raphi:tapesoftware.netraphi * possibly related: https://lore.kernel.org/all/cb8dc31a-fef2-1d09-f133-e9f7b9f9e77a@sony.com/18:47:36
@huantian:huantian.devhuantianI suppose kernel regression would make sense for this issue, wonder if anyone has reported this for mono as well19:54:45
@huantian:huantian.devhuantian
In reply to @raphi:tapesoftware.net
ugh mkNugetSource is using mono to run nuget
I think Nuget itself is packaged with mono, as MS only seems to release a .exe for it?
19:55:30

Show newer messages


Back to Room ListRoom Version: 9