14 Oct 2024 |
Tristan Ross | Maybe, I think I can change the linker so maybe I should try GNU ld but compile with clang? | 23:14:04 |
ElvishJerricco | yea I was about to suggest exactly that | 23:14:14 |
ElvishJerricco | no idea how :P | 23:14:18 |
Tristan Ross | I know some stdenv override magic | 23:14:30 |
Tristan Ross | Basically just pull in the GCC bintools into the stdenv | 23:14:59 |
15 Oct 2024 |
Tristan Ross | ElvishJerricco: I've got an update with the issue, it still segfaults when using GNU ld | 05:01:56 |
ElvishJerricco | ah bummer | 05:02:12 |
Tristan Ross | I think I can circumvent the issue by disabling the stripping stuff in extra-utils | 05:04:07 |
ElvishJerricco | oh that's interesting. Why would stripping cause a segfault though? | 05:04:50 |
Tristan Ross | Idk, it's just a theory | 05:05:00 |
Tristan Ross | Oh, it still crashes when not stripped. | 05:05:38 |
ElvishJerricco | Tristan Ross: Does the extra-utils binary end up more diffoscope-able compared to the original if it's not stripped? | 05:10:25 |
Tristan Ross | In reply to @elvishjerricco:matrix.org Tristan Ross: Does the extra-utils binary end up more diffoscope-able compared to the original if it's not stripped? https://termbin.com/38q8 | 05:21:35 |
ElvishJerricco | oh I didn't notice this was on arm64 | 05:22:03 |
Tristan Ross | I mainly use aarch64 | 05:24:09 |
ElvishJerricco | Tristan Ross: well, interestingly, (nixos { systemd.package = pkgsLLVM.systemd; }).config.system.build.extraUtils the udevadm in this build works fine on x86_64-linux for me. | 05:27:25 |
ElvishJerricco | which makes it seems like an LLVM arm64 bug | 05:27:47 |
ElvishJerricco | (not the first time that sort of thing has happened) | 05:27:56 |
Tristan Ross | That's even worse | 05:28:06 |
Tristan Ross | Reporting this probably won't be fun | 05:28:39 |
Tristan Ross | At least it's reproducible. | 05:28:47 |
Tristan Ross | But it's strange that this issue only popped up from a systemd upgrade, I wonder if some code change in systemd screwed something up in systemd. | 05:29:21 |
ElvishJerricco | Tristan Ross: I wonder how fruitful it would be to bisect systemd too | 05:31:16 |
Tristan Ross | In reply to @elvishjerricco:matrix.org Tristan Ross: I wonder how fruitful it would be to bisect systemd too Yeah, afaik it's this upgrade https://github.com/NixOS/nixpkgs/commit/4a48f4cdf366720fe2ca837c0e29704d4b731d13 | 05:32:25 |
ElvishJerricco | oh so you're not even on 256 at all | 05:32:49 |
Tristan Ross | Nope | 05:32:55 |
ElvishJerricco | well that eliminates any shenanigans with the .note.dlopen stuff | 05:33:24 |
Tristan Ross | systemd 255.6 worked but not 255.9 for udevadm in extra-utils | 05:33:25 |
Tristan Ross | In reply to @elvishjerricco:matrix.org well that eliminates any shenanigans with the .note.dlopen stuff Oh | 05:33:31 |
Tristan Ross | Should I try overlaying systemd in systemd.package to patch versions in between the upgrade and see where it fails? | 05:34:07 |