xbps
xbps copied to clipboard
xbps-query aborts with "free(): invalid pointer" for repository searches that return any results
I only noticed this problem today, I do not know how long it has been occurring. I can repro it on two different installs.
On my home system that I just updated:
$ xbps-query -Rs evdev
[-] interception-tools-0.6.7_3 Small set of utilities for operating on input events of evdev de...
[*] libevdev-1.13.2_1 Wrapper library for evdev devices
[-] libevdev-devel-1.13.2_1 Wrapper library for evdev devices - development files
[-] libevdev-tools-1.13.2_1 Wrapper library for evdev devices - tools
[-] libevdevPlus-0.1.1_1 Easy-to-use event device library in C++
[-] libevdevPlus-devel-0.1.1_1 Easy-to-use event device library in C++ - development files
[-] python3-evdev-1.7.1_1 Python3 bindings for the Linux input subsystem
[-] python3-libevdev-0.9_6 Python3 wrapper around the libevdev C library
[*] xf86-input-evdev-2.11.0_1 Xorg event device input driver
[-] xf86-input-evdev-devel-2.11.0_1 Xorg event device input driver - development files
[-] libevdev-32bit-1.13.2_1 Wrapper library for evdev devices (32bit)
[-] libevdev-devel-32bit-1.13.2_1 Wrapper library for evdev devices - development files (32bit)
[-] libevdevPlus-32bit-0.1.1_1 Easy-to-use event device library in C++ (32bit)
[-] libevdevPlus-devel-32bit-0.1.1_1 Easy-to-use event device library in C++ - development files (32b...
free(): invalid pointer
Aborted xbps-query -Rs evdev
$ xbps-query --version
XBPS: 0.60 API: 20250629 GIT: UNSET
$ xuname
Void 6.16.3_2 x86_64 AuthenticAMD uptodate rrrm
On a VPS I have not updated for a while:
$ xbps-query -Rs evdev
[-] interception-tools-0.6.7_3 Small set of utilities for operating on input events of evdev dev...
[-] libevdev-1.13.2_1 Wrapper library for evdev devices
[-] libevdev-devel-1.13.2_1 Wrapper library for evdev devices - development files
[-] libevdev-tools-1.13.2_1 Wrapper library for evdev devices - tools
[-] libevdevPlus-0.1.1_1 Easy-to-use event device library in C++
[-] libevdevPlus-devel-0.1.1_1 Easy-to-use event device library in C++ - development files
[-] python3-evdev-1.7.1_1 Python3 bindings for the Linux input subsystem
[-] python3-libevdev-0.9_6 Python3 wrapper around the libevdev C library
[-] xf86-input-evdev-2.11.0_1 Xorg event device input driver
[-] xf86-input-evdev-devel-2.11.0_1 Xorg event device input driver - development files
free(): invalid pointer
Aborted
$ xbps-query --version
XBPS: 0.60 API: 20250629 GIT: UNSET
$ xuname
Void 6.12.31_1 x86_64 AuthenticAMD/KVM notuptodate rF
Date triggered?
Curiously the "Aborted" line is different on both machines (on my desktop it prints a copy of the command, on the remote VPS it does not).
was also reported in #637
jui 06 17:36:06 <duncaen> abby: https://github.com/void-linux/xbps/blob/master/bin/xbps-query/search.c#L260
jui 06 17:36:12 <duncaen> they are kinda right that it fails to free
jui 06 17:36:25 <duncaen> there is a very subtle bug but not what they reported
jui 06 17:36:53 <duncaen> maybe not very subtle, just an issue
jui 06 17:37:35 <duncaen> no idea why that would crash for them
Curiously the "Aborted" line is different on both machines (on my desktop it prints a copy of the command, on the remote VPS it does not).
that message comes from the shell
Just found #645 too, thankyou classabby