Skip to content

xbps-query aborts with "free(): invalid pointer" for repository searches that return any results #650

@SorrelArticulata

Description

@SorrelArticulata

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions