Closed Matthieu-Sauer closed 4 months ago
xbps logs some information to syslog, but its most likely not verbose enough to make any guess to why its segfaulting. The best way to debug segfaults is to enable coredumps or use gdb to get bracktraces of the crashes.
Understood, I'll try to always use gdb when running xbps (or running valgrind too, might be too slow though)
edit: I did alias my xbps-install with gdb so it is always run whatever the command may be, i'll update this thread if/when I encounter the segmentation fault again.
I did not encounter the crash again, either gdb is correcting the crash (and that is why I do not witness it anymore) or it has been patched (maybe in the package that was causing it). I will close this issue, and reopen it if I ever have the problem again. (while disabling gdb).
I actually just encountered the crash. here it is (without gdb sadly).
sudo xbps-install -Su
Password:
[*] Updating repository `https://repo-default.voidlinux.org/current/musl/x86_64-musl-repodata' ...
x86_64-musl-repodata: 1831KB [avg rate: 820KB/s]
[*] Updating repository `https://repo-default.voidlinux.org/current/musl/nonfree/x86_64-musl-repodata' ...
Name Action Version New version Download size
btrfs-progs update 6.3.3_1 6.5.1_1 977KB
kbd update 2.6.2_1 2.6.3_1 1230KB
perl update 5.36.1_1 5.38.0_1 14MB
perl-Net-SSLeay update 1.92_3 1.92_4 261KB
vim update 9.0.1903_1 9.0.1903_2 1856KB
vim-common update 9.0.1903_1 9.0.1903_2 8479KB
xxd update 9.0.1903_1 9.0.1903_2 15KB
Size to download: 27MB
Size required on disk: 121MB
Space available on disk: 1002GB
Do you want to continue? [Y/n] y
[*] Downloading packages
btrfs-progs-6.5.1_1.x86_64-musl.xbps.sig2: 512B [avg rate: 13MB/s]
[1] 307 segmentation fault sudo xbps-install -Su%] 74MB/s ETA: 00m00s
if I rerun the command, it runs fine.
(here is the display of the second run)
sudo xbps-install -Su 139 ↵
[*] Updating repository `https://repo-default.voidlinux.org/current/musl/x86_64-musl-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/musl/nonfree/x86_64-musl-repodata' ...
Name Action Version New version Download size
btrfs-progs update 6.3.3_1 6.5.1_1 977KB
kbd update 2.6.2_1 2.6.3_1 1230KB
perl update 5.36.1_1 5.38.0_1 14MB
perl-Net-SSLeay update 1.92_3 1.92_4 261KB
vim update 9.0.1903_1 9.0.1903_2 1856KB
vim-common update 9.0.1903_1 9.0.1903_2 8479KB
xxd update 9.0.1903_1 9.0.1903_2 15KB
Size to download: 27MB
Size required on disk: 121MB
Space available on disk: 1002GB
Do you want to continue? [Y/n] y
[*] Downloading packages
btrfs-progs-6.5.1_1.x86_64-musl.xbps: 213KB [avg rate: -13GB/s]
btrfs-progs-6.5.1_1: verifying RSA signature...
kbd-2.6.3_1.x86_64-musl.xbps.sig2: 512B [avg rate: -- stalled --]
kbd-2.6.3_1.x86_64-musl.xbps: 1230KB [avg rate: 995KB/s]
kbd-2.6.3_1: verifying RSA signature...
perl-5.38.0_1.x86_64-musl.xbps.sig2: 512B [avg rate: 14MB/s]
perl-5.38.0_1.x86_64-musl.xbps: 14MB [avg rate: 2278KB/s]
perl-5.38.0_1: verifying RSA signature...
perl-Net-SSLeay-1.92_4.x86_64-musl.xbps.sig2: 512B [avg rate: 20MB/s]
perl-Net-SSLeay-1.92_4.x86_64-musl.xbps: 261KB [avg rate: 2278MB/s]
perl-Net-SSLeay-1.92_4: verifying RSA signature...
vim-9.0.1903_2.x86_64-musl.xbps.sig2: 512B [avg rate: 6250KB/s]
vim-9.0.1903_2.x86_64-musl.xbps: 1856KB [avg rate: 63GB/s]
vim-9.0.1903_2: verifying RSA signature...
vim-common-9.0.1903_2.x86_64-musl.xbps.sig2: 512B [avg rate: 10MB/s]
vim-common-9.0.1903_2.x86_64-musl.xbps: 8479KB [avg rate: 2119KB/s]
vim-common-9.0.1903_2: verifying RSA signature...
xxd-9.0.1903_2.x86_64-musl.xbps.sig2: 512B [avg rate: 20MB/s]
xxd-9.0.1903_2.x86_64-musl.xbps: 15KB [avg rate: 600MB/s]
xxd-9.0.1903_2: verifying RSA signature...
[*] Collecting package files
btrfs-progs-6.5.1_1: collecting files...
btrfs-progs-6.3.3_1: collecting files...
kbd-2.6.3_1: collecting files...
kbd-2.6.2_1: collecting files...
perl-5.38.0_1: collecting files...
perl-5.36.1_1: collecting files...
perl-Net-SSLeay-1.92_4: collecting files...
perl-Net-SSLeay-1.92_3: collecting files...
vim-9.0.1903_2: collecting files...
vim-9.0.1903_1: collecting files...
vim-common-9.0.1903_2: collecting files...
vim-common-9.0.1903_1: collecting files...
xxd-9.0.1903_2: collecting files...
xxd-9.0.1903_1: collecting files...
[*] Unpacking packages
btrfs-progs-6.3.3_1: updating to 6.5.1_1 ...
btrfs-progs-6.5.1_1: unpacking ...
kbd-2.6.2_1: updating to 2.6.3_1 ...
kbd-2.6.3_1: unpacking ...
perl-5.36.1_1: updating to 5.38.0_1 ...
perl-5.38.0_1: unpacking ...
perl-Net-SSLeay-1.92_3: updating to 1.92_4 ...
perl-Net-SSLeay-1.92_4: unpacking ...
vim-9.0.1903_1: updating to 9.0.1903_2 ...
Removing 'vim' alternatives group symlink: vim
vim-9.0.1903_2: unpacking ...
Creating 'vim' alternatives group symlink: vim -> /usr/bin/vim-normal
vim-common-9.0.1903_1: updating to 9.0.1903_2 ...
vim-common-9.0.1903_2: unpacking ...
xxd-9.0.1903_1: updating to 9.0.1903_2 ...
xxd-9.0.1903_2: unpacking ...
[*] Configuring unpacked packages
btrfs-progs-6.5.1_1: configuring ...
btrfs-progs-6.5.1_1: updated successfully.
kbd-2.6.3_1: configuring ...
kbd-2.6.3_1: updated successfully.
perl-5.38.0_1: configuring ...
perl-5.38.0_1: updated successfully.
perl-Net-SSLeay-1.92_4: configuring ...
perl-Net-SSLeay-1.92_4: updated successfully.
vim-9.0.1903_2: configuring ...
vim-9.0.1903_2: updated successfully.
vim-common-9.0.1903_2: configuring ...
vim-common-9.0.1903_2: updated successfully.
xxd-9.0.1903_2: configuring ...
xxd-9.0.1903_2: updated successfully.
7 downloaded, 0 installed, 7 updated, 7 configured, 0 removed.
did not encounter it since, closing
I sometimes encounter a segmentation fault when upgrading my wsl void-musl system.
Command used:
Base system:
Re-running the command fixes the issue, therefore I cannot reproduce it to pinpoint the error source. (and I did not take a screenshot of the error, dumb as I am). it is not really annoying as it is fixed in a few seconds.
Is there a way to enable loggings of the xbps suite so I can know exactly where the issue comes from on wsl system (I don't think there is runit services on wsl)? (which package causes it). It happens about once or twice a month, and it seems to be related to python packages, unsure therefore if this is the correct repository to report this?
If the issue is wsl-related, I will simply ignore it (and you can close the issue) as I know it is not the primary target of void and xbps.