Dig / host give free(): invalid pointer

I’m having an issue where dnsutils commands are giving a free(): invalid pointer error. I’ve tried reinstalling bind, cleaned bind from the pacman cache and reinstalled, and nothing fixes this: Not sure what else to look at.

╭─mfrazier@mike in ~ via C v14.2.1-gcc took 219ms
[⚡] × dig garudalinux.com
free(): invalid pointer
zsh: IOT instruction (core dumped)  dig garudalinux.com

╭─mfrazier@mike in ~ via C v14.2.1-gcc took 189ms
[⚡] × host garudalinux.com
free(): invalid pointer
zsh: IOT instruction (core dumped)  host garudalinux.com

Me too, but it must be .org, but

dig garudalinux.com

; <<>> DiG 9.20.2 <<>> garudalinux.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37523
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;garudalinux.com.		IN	A

;; ANSWER SECTION:
garudalinux.com.	300	IN	A	104.21.9.235
garudalinux.com.	300	IN	A	172.67.131.16

;; Query time: 56 msec
;; SERVER: 192.168.175.97#53(192.168.175.97) (UDP)
;; WHEN: Sun Sep 29 00:20:06 CEST 2024
;; MSG SIZE  rcvd: 76


dig garudalinux.org

; <<>> DiG 9.20.2 <<>> garudalinux.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21994
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;garudalinux.org.		IN	A

;; ANSWER SECTION:
garudalinux.org.	300	IN	A	104.26.15.216
garudalinux.org.	300	IN	A	104.26.14.216
garudalinux.org.	300	IN	A	172.67.75.71

;; Query time: 50 msec
;; SERVER: 192.168.175.97#53(192.168.175.97) (UDP)
;; WHEN: Sun Sep 29 00:20:20 CEST 2024
;; MSG SIZE  rcvd: 92

Just test again :slight_smile:

Ok, so my example was bad. But the point is the error I’m getting. These fail no matter what I put in:

╭─mfrazier@mike in ~/Downloads/temp2 took 37s
╰─λ dig garudalinux.org
free(): invalid pointer
zsh: IOT instruction (core dumped)  dig garudalinux.org

[⚡] × host google.com
free(): invalid pointer
zsh: IOT instruction (core dumped)  host google.com

host google.com
google.com has address 142.250.185.110
google.com has IPv6 address 2a00:1450:4001:81d::200e
google.com mail is handled by 10 smtp.google.com.

Can you try bash, fish?
Firewall or Router problem?

Please post your garuda-inxi.

Did you check the web?

2 Likes
╭─mfrazier@mike in ~ via C v14.2.1-gcc took 180ms
[⚡] × host google.com
free(): invalid pointer
fish: Job 1, 'host google.com' terminated by signal SIGABRT (Abort)

╭─mfrazier@mike in ~ via C v14.2.1-gcc took 201ms
[⚡] × /bin/bash

╭─mfrazier@mike in ~ via C v14.2.1-gcc took 44ms
╰─λ host google.com
free(): invalid pointer
Aborted (core dumped)

And yes, I’ve tried searching, but all the references to free(); invalid pointer seems to be for people writing programs and doing memory allocation wrong in them. I haven’t found a reference to a linux command giving these errors.

Here’s my garuda-inxi

╭─mfrazier@mike in ~ via C v14.2.1-gcc
[⚡] × garuda-inxi
System:
Kernel: 6.10.10-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
clocksource: hpet avail: acpi_pm parameters: BOOT_IMAGE=/vmlinuz-linux-zen
root=UUID=66476492-1740-401d-bf98-b74cd78ee75e rw rootflags=subvol=@
quiet loglevel=3 amd_iommu=on iommu=pt ibt=off
Desktop: KDE Plasma v: 6.1.5 tk: Qt v: N/A info: frameworks v: 6.6.0
wm: kwin_wayland vt: 1 dm: SDDM Distro: Garuda base: Arch Linux
Machine:
Type: Laptop System: HP product: HP Laptop 15-ef1xxx v: N/A
serial: <superuser required> Chassis: type: 10 serial: <superuser required>
Mobo: HP model: 887A v: 59.11 serial: <superuser required>
part-nu: 42B65UA#ABA uuid: <superuser required> UEFI: AMI v: F.15
date: 08/17/2021
Battery:
ID-1: BAT0 charge: 37.0 Wh (100.0%) condition: 37.0/37.0 Wh (100.0%)
volts: 12.9 min: 11.3 model: HP Primary type: Li-ion serial: <filter>
status: not charging
CPU:
Info: model: AMD Ryzen 7 5700U with Radeon Graphics bits: 64 type: MT MCP
arch: Zen 2 gen: 2 level: v3 note: check built: 2020-22
process: TSMC n7 (7nm) family: 0x17 (23) model-id: 0x68 (104) stepping: 1
microcode: 0x8608103
Topology: cpus: 1x dies: 1 clusters: 1 cores: 8 threads: 16 tpc: 2
smt: enabled cache: L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB
desc: 8x512 KiB L3: 8 MiB desc: 2x4 MiB
Speed (MHz): avg: 4242 min/max: 400/4372 scaling: driver: amd-pstate-epp
governor: powersave cores: 1: 4242 2: 4242 3: 4242 4: 4242 5: 4242 6: 4242
7: 4242 8: 4242 9: 4242 10: 4242 11: 4242 12: 4242 13: 4242 14: 4242
15: 4242 16: 4242 bogomips: 57490
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities: <filter>
Graphics:
Device-1: Advanced Micro Devices [AMD/ATI] Lucienne vendor: Hewlett-Packard
driver: amdgpu v: kernel arch: GCN-5 code: Vega process: GF 14nm
built: 2017-20 pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4
speed: 16 GT/s ports: active: eDP-1 empty: HDMI-A-1 bus-ID: 03:00.0
chip-ID: 1002:164c class-ID: 0300 temp: 59.0 C
Device-2: Quanta HP TrueVision HD Camera driver: uvcvideo type: USB
rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-3:2 chip-ID: 0408:5365
class-ID: 0e02
Display: wayland server: X.org v: 1.21.1.13 with: Xwayland v: 24.1.2
compositor: kwin_wayland driver: X: loaded: amdgpu unloaded: modesetting
alternate: fbdev,vesa dri: radeonsi gpu: amdgpu display-ID: 0
Monitor-1: eDP-1 res: 1920x1080 size: N/A modes: N/A
API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi
device: 1 drv: swrast gbm: drv: kms_swrast surfaceless: drv: radeonsi
wayland: drv: radeonsi x11: drv: radeonsi
API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.2.3-arch1.1
glx-v: 1.4 direct-render: yes renderer: AMD Radeon Graphics (radeonsi
renoir LLVM 18.1.8 DRM 3.57 6.10.10-zen1-1-zen) device-ID: 1002:164c
memory: 500 MiB unified: no display-ID: :1.0
API: Vulkan v: 1.3.295 layers: 3 device: 0 type: integrated-gpu name: AMD
Radeon Graphics (RADV RENOIR) driver: mesa radv v: 24.2.3-arch1.1
device-ID: 1002:164c surfaces: xcb,xlib,wayland device: 1 type: cpu
name: llvmpipe (LLVM 18.1.8 256 bits) driver: mesa llvmpipe
v: 24.2.3-arch1.1 (LLVM 18.1.8) device-ID: 10005:0000
surfaces: xcb,xlib,wayland
Audio:
Device-1: Advanced Micro Devices [AMD/ATI] Renoir Radeon High Definition
Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel pcie: gen: 3
speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 03:00.1
chip-ID: 1002:1637 class-ID: 0403
Device-2: Advanced Micro Devices [AMD] ACP/ACP3X/ACP6x Audio Coprocessor
vendor: Hewlett-Packard driver: snd_rn_pci_acp3x v: kernel
alternate: snd_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x, snd_acp_pci,
snd_rpl_pci_acp6x, snd_pci_ps, snd_sof_amd_renoir, snd_sof_amd_rembrandt,
snd_sof_amd_vangogh, snd_sof_amd_acp63 pcie: gen: 3 speed: 8 GT/s
lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 03:00.5
chip-ID: 1022:15e2 class-ID: 0480
Device-3: Advanced Micro Devices [AMD] Family 17h/19h HD Audio
vendor: Hewlett-Packard driver: snd_hda_intel v: kernel pcie: gen: 3
speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 03:00.6
chip-ID: 1022:15e3 class-ID: 0403
API: ALSA v: k6.10.10-zen1-1-zen status: kernel-api with: aoss
type: oss-emulator tools: alsactl,alsamixer,amixer
Server-1: PipeWire v: 1.2.5 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Realtek RTL8852AE WiFi 6 802.11ax PCIe Adapter
vendor: Hewlett-Packard driver: rtw89_8852ae v: kernel pcie: gen: 1
speed: 2.5 GT/s lanes: 1 port: f000 bus-ID: 01:00.0 chip-ID: 10ec:a85a
class-ID: 0280
IF: wlo1 state: up mac: <filter>
IF-ID-1: virbr0 state: up speed: 10000 Mbps duplex: unknown mac: <filter>
IF-ID-2: vnet0 state: unknown speed: 10000 Mbps duplex: full mac: <filter>
Info: services: NetworkManager, smbd, systemd-timesyncd, wpa_supplicant
Bluetooth:
Device-1: Realtek Bluetooth Radio driver: btusb v: 0.8 type: USB rev: 1.0
speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-4:3 chip-ID: 0bda:385a
class-ID: e001 serial: <filter>
Report: btmgmt ID: hci0 rfk-id: 16 state: down bt-service: enabled,running
rfk-block: hardware: no software: yes address: <filter> bt-v: 5.2 lmp-v: 11
status: discoverable: no pairing: no
Drives:
Local Storage: total: 961.24 GiB used: 638.18 GiB (66.4%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: MSI model: M450 1TB
size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
lanes: 4 tech: SSD serial: <filter> fw-rev: EJFM61.0 temp: 45.9 C
scheme: GPT
ID-2: /dev/sda maj-min: 8:0 model: Multiple Card Reader size: 29.72 GiB
block-size: physical: 512 B logical: 512 B type: USB rev: 2.0 spd: 480 Mb/s
lanes: 1 mode: 2.0 tech: N/A serial: <filter> fw-rev: 1.00 scheme: MBR
SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition:
ID-1: / raw-size: 122.07 GiB size: 122.07 GiB (100.00%)
used: 68.68 GiB (56.3%) fs: btrfs dev: /dev/nvme0n1p3 maj-min: 259:3
ID-2: /boot raw-size: 1.46 GiB size: 1.46 GiB (100.00%)
used: 392.4 MiB (26.2%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-3: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 584 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-4: /home raw-size: 807.68 GiB size: 807.68 GiB (100.00%)
used: 569.12 GiB (70.5%) fs: btrfs dev: /dev/nvme0n1p4 maj-min: 259:4
ID-5: /var/log raw-size: 122.07 GiB size: 122.07 GiB (100.00%)
used: 68.68 GiB (56.3%) fs: btrfs dev: /dev/nvme0n1p3 maj-min: 259:3
ID-6: /var/tmp raw-size: 122.07 GiB size: 122.07 GiB (100.00%)
used: 68.68 GiB (56.3%) fs: btrfs dev: /dev/nvme0n1p3 maj-min: 259:3
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
ID-1: swap-1 type: zram size: 14.97 GiB used: 8.89 GiB (59.4%)
priority: 100 comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 16
dev: /dev/zram0
ID-2: swap-2 type: file size: 24.52 GiB used: 0 KiB (0.0%) priority: -2
file: /swap/swapfile
Sensors:
System Temperatures: cpu: 74.4 C mobo: N/A gpu: amdgpu temp: 59.0 C
Fan Speeds (rpm): fan-1: 0 fan-2: 0
Info:
Memory: total: 16 GiB note: est. available: 14.97 GiB
used: 10.93 GiB (73.0%)
Processes: 535 Power: uptime: 3d 12h 39m states: freeze,mem,disk
suspend: s2idle wakeups: 5 hibernate: suspend avail: platform, shutdown,
reboot, test_resume image: 5.95 GiB services: org_kde_powerdevil,upowerd
Init: systemd v: 256 default: graphical tool: systemctl
Packages: pm: pacman pkgs: 1678 libs: 455 tools: octopi,pamac,yay pm: rpm
pkgs: 0 pm: flatpak pkgs: 0 Compilers: gcc: 14.2.1 Shell: garuda-inxi
default: Zsh v: 5.9 running-in: konsole inxi: 3.3.36
Garuda (2.6.26-1):
System install date:     2023-03-02
Last full system update: 2024-09-28 ↻
Is partially upgraded:   No
Relevant software:       snapper tlp NetworkManager mkinitcpio
Windows dual boot:       No/Undetected
Failed units:            mnt-Plex.mount

↻ means reboot, it’s KDE :wink:

Try X11, from login screen.

Fix it

1 Like

Just a shot in the dark…
Maybe this (bridge for NAT to a VM?) is causing troubles to the networking stack?
Can you disable it and check if it changes anything?

1 Like
╭─mfrazier@mike in ~ via C v14.2.1-gcc took 4s
╰─λ garuda-inxi | grep virbr0
IF-ID-1: virbr0 state: down mac: <filter>

╭─mfrazier@mike in ~ via C v14.2.1-gcc took 4s
╰─λ host google.com
free(): invalid pointer
zsh: IOT instruction (core dumped)  host google.com

╭─mfrazier@mike in ~ via C v14.2.1-gcc took 160ms
[⚡] × dig google.com
free(): invalid pointer
zsh: IOT instruction (core dumped)  dig google.com

did an update, reboot, didn’t start VM, and made sure the Plex connection was there. Still no go. Its almost like these programs are bad, but like i mentioned I did do a reinstall of bind and it didn’t change anything. I thought about removing bind and then installing it, but there are dependencies on it.

Here’s the latest garuda-inxi output

╭─mfrazier@mike in ~ via C v14.2.1-gcc took 152ms
[⚡] × garuda-inxi
System:
Kernel: 6.11.1-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
clocksource: hpet avail: acpi_pm parameters: BOOT_IMAGE=/vmlinuz-linux-zen
root=UUID=66476492-1740-401d-bf98-b74cd78ee75e rw rootflags=subvol=@
quiet loglevel=3 amd_iommu=on iommu=pt ibt=off
Desktop: KDE Plasma v: 6.1.5 tk: Qt v: N/A info: frameworks v: 6.6.0
wm: kwin_wayland vt: 1 dm: SDDM Distro: Garuda base: Arch Linux
Machine:
Type: Laptop System: HP product: HP Laptop 15-ef1xxx v: N/A
serial: <superuser required> Chassis: type: 10 serial: <superuser required>
Mobo: HP model: 887A v: 59.11 serial: <superuser required>
part-nu: 42B65UA#ABA uuid: <superuser required> UEFI: AMI v: F.15
date: 08/17/2021
Battery:
ID-1: BAT0 charge: 37.0 Wh (99.2%) condition: 37.3/37.3 Wh (100.0%)
volts: 12.9 min: 11.3 model: HP Primary type: Li-ion serial: <filter>
status: not charging
CPU:
Info: model: AMD Ryzen 7 5700U with Radeon Graphics bits: 64 type: MT MCP
arch: Zen 2 gen: 2 level: v3 note: check built: 2020-22
process: TSMC n7 (7nm) family: 0x17 (23) model-id: 0x68 (104) stepping: 1
microcode: 0x8608103
Topology: cpus: 1x dies: 1 clusters: 1 cores: 8 threads: 16 tpc: 2
smt: enabled cache: L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB
desc: 8x512 KiB L3: 8 MiB desc: 2x4 MiB
Speed (MHz): avg: 4245 min/max: 400/4372 boost: enabled scaling:
driver: amd-pstate-epp governor: powersave cores: 1: 4245 2: 4245 3: 4245
4: 4245 5: 4245 6: 4245 7: 4245 8: 4245 9: 4245 10: 4245 11: 4245 12: 4245
13: 4245 14: 4245 15: 4245 16: 4245 bogomips: 57493
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities: <filter>
Graphics:
Device-1: Advanced Micro Devices [AMD/ATI] Lucienne vendor: Hewlett-Packard
driver: amdgpu v: kernel arch: GCN-5 code: Vega process: GF 14nm
built: 2017-20 pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4
speed: 16 GT/s ports: active: eDP-1 empty: HDMI-A-1 bus-ID: 03:00.0
chip-ID: 1002:164c class-ID: 0300 temp: 67.0 C
Device-2: Quanta HP TrueVision HD Camera driver: uvcvideo type: USB
rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-3:2 chip-ID: 0408:5365
class-ID: 0e02
Display: wayland server: X.org v: 1.21.1.13 with: Xwayland v: 24.1.2
compositor: kwin_wayland driver: X: loaded: amdgpu unloaded: modesetting
alternate: fbdev,vesa dri: radeonsi gpu: amdgpu display-ID: 0
Monitor-1: eDP-1 res: 1920x1080 size: N/A modes: N/A
API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi
device: 1 drv: swrast gbm: drv: kms_swrast surfaceless: drv: radeonsi
wayland: drv: radeonsi x11: drv: radeonsi
API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.2.3-arch1.1
glx-v: 1.4 direct-render: yes renderer: AMD Radeon Graphics (radeonsi
renoir LLVM 18.1.8 DRM 3.58 6.11.1-zen1-1-zen) device-ID: 1002:164c
memory: 500 MiB unified: no display-ID: :1.0
API: Vulkan v: 1.3.295 layers: 3 device: 0 type: integrated-gpu name: AMD
Radeon Graphics (RADV RENOIR) driver: mesa radv v: 24.2.3-arch1.1
device-ID: 1002:164c surfaces: xcb,xlib,wayland device: 1 type: cpu
name: llvmpipe (LLVM 18.1.8 256 bits) driver: mesa llvmpipe
v: 24.2.3-arch1.1 (LLVM 18.1.8) device-ID: 10005:0000
surfaces: xcb,xlib,wayland
Audio:
Device-1: Advanced Micro Devices [AMD/ATI] Renoir Radeon High Definition
Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel pcie: gen: 3
speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 03:00.1
chip-ID: 1002:1637 class-ID: 0403
Device-2: Advanced Micro Devices [AMD] ACP/ACP3X/ACP6x Audio Coprocessor
vendor: Hewlett-Packard driver: snd_rn_pci_acp3x v: kernel
alternate: snd_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x, snd_acp_pci,
snd_rpl_pci_acp6x, snd_pci_ps, snd_sof_amd_renoir, snd_sof_amd_rembrandt,
snd_sof_amd_vangogh, snd_sof_amd_acp63 pcie: gen: 3 speed: 8 GT/s
lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 03:00.5
chip-ID: 1022:15e2 class-ID: 0480
Device-3: Advanced Micro Devices [AMD] Family 17h/19h HD Audio
vendor: Hewlett-Packard driver: snd_hda_intel v: kernel pcie: gen: 3
speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 03:00.6
chip-ID: 1022:15e3 class-ID: 0403
API: ALSA v: k6.11.1-zen1-1-zen status: kernel-api with: aoss
type: oss-emulator tools: alsactl,alsamixer,amixer
Server-1: PipeWire v: 1.2.5 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Realtek RTL8852AE WiFi 6 802.11ax PCIe Adapter
vendor: Hewlett-Packard driver: rtw89_8852ae v: kernel pcie: gen: 1
speed: 2.5 GT/s lanes: 1 port: f000 bus-ID: 01:00.0 chip-ID: 10ec:a85a
class-ID: 0280
IF: wlo1 state: up mac: <filter>
IF-ID-1: virbr0 state: down mac: <filter>
Info: services: NetworkManager, smbd, systemd-timesyncd, wpa_supplicant
Bluetooth:
Device-1: Realtek Bluetooth Radio driver: btusb v: 0.8 type: USB rev: 1.0
speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-4:3 chip-ID: 0bda:385a
class-ID: e001 serial: <filter>
Report: btmgmt ID: hci0 rfk-id: 1 state: down bt-service: enabled,running
rfk-block: hardware: no software: yes address: <filter> bt-v: 5.2 lmp-v: 11
status: discoverable: no pairing: no
Drives:
Local Storage: total: 961.24 GiB used: 643.57 GiB (67.0%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: MSI model: M450 1TB
size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
lanes: 4 tech: SSD serial: <filter> fw-rev: EJFM61.0 temp: 43.9 C
scheme: GPT
ID-2: /dev/sda maj-min: 8:0 model: Multiple Card Reader size: 29.72 GiB
block-size: physical: 512 B logical: 512 B type: USB rev: 2.0 spd: 480 Mb/s
lanes: 1 mode: 2.0 tech: N/A serial: <filter> fw-rev: 1.00 scheme: MBR
SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition:
ID-1: / raw-size: 122.07 GiB size: 122.07 GiB (100.00%)
used: 73.84 GiB (60.5%) fs: btrfs dev: /dev/nvme0n1p3 maj-min: 259:3
ID-2: /boot raw-size: 1.46 GiB size: 1.46 GiB (100.00%)
used: 393.6 MiB (26.2%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-3: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 584 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-4: /home raw-size: 807.68 GiB size: 807.68 GiB (100.00%)
used: 569.34 GiB (70.5%) fs: btrfs dev: /dev/nvme0n1p4 maj-min: 259:4
ID-5: /var/log raw-size: 122.07 GiB size: 122.07 GiB (100.00%)
used: 73.84 GiB (60.5%) fs: btrfs dev: /dev/nvme0n1p3 maj-min: 259:3
ID-6: /var/tmp raw-size: 122.07 GiB size: 122.07 GiB (100.00%)
used: 73.84 GiB (60.5%) fs: btrfs dev: /dev/nvme0n1p3 maj-min: 259:3
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
ID-1: swap-1 type: zram size: 14.97 GiB used: 12.5 MiB (0.1%)
priority: 100 comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 16
dev: /dev/zram0
ID-2: swap-2 type: file size: 24.52 GiB used: 0 KiB (0.0%) priority: -2
file: /swap/swapfile
Sensors:
System Temperatures: cpu: 90.5 C mobo: N/A gpu: amdgpu temp: 68.0 C
Fan Speeds (rpm): fan-1: 0 fan-2: 0
Info:
Memory: total: 16 GiB note: est. available: 14.97 GiB used: 3.02 GiB (20.2%)
Processes: 429 Power: uptime: 2m states: freeze,mem,disk suspend: s2idle
wakeups: 0 hibernate: platform avail: shutdown, reboot, suspend, test_resume
image: 5.95 GiB services: org_kde_powerdevil,upowerd Init: systemd v: 256
default: graphical tool: systemctl
Packages: pm: pacman pkgs: 1683 libs: 455 tools: octopi,pamac,yay pm: rpm
pkgs: 0 pm: flatpak pkgs: 0 Compilers: clang: 18.1.8 gcc: 14.2.1
Shell: garuda-inxi default: Zsh v: 5.9 running-in: konsole inxi: 3.3.36
Garuda (2.6.26-1):
System install date:     2023-03-02
Last full system update: 2024-10-02
Is partially upgraded:   No
Relevant software:       snapper tlp NetworkManager mkinitcpio
Windows dual boot:       No/Undetected
Failed units:

Oh, I did also try changing to X11 from Wayland and there was no change. Went back to Wayland when I ran the garuda-inxi above.

Exactly the same issue here! For me it was the nomachine package installed from chaotic-aur that was causing problems.

How did I figure it out? You need to debug execution using gdb:
(note: output is redacted heavily to increase readability)

$ gdb --args host google.com
GNU gdb (GDB) 15.2
Enable debuginfod for this session? (y or [n]) y
(gdb) run
Starting program: /usr/bin/host google.com
free(): invalid pointer
Program received signal SIGABRT, Aborted.
__pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44                                                                        
44            return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret) : 0;
(gdb) bt
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x00007ffff7d24463 in __pthread_kill_internal (threadid=<optimized out>, signo=6) at pthread_kill.c:78
#2  0x00007ffff7ccb120 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3  0x00007ffff7cb24c3 in __GI_abort () at abort.c:79
#4  0x00007ffff7cb3354 in __libc_message_impl (fmt=fmt@entry=0x7ffff7e412f5 "%s\n") at ../sysdeps/posix/libc_fatal.c:132
#5  0x00007ffff7d2e765 in malloc_printerr (str=str@entry=0x7ffff7e3f082 "free(): invalid pointer") at malloc.c:5772
#6  0x00007ffff7d30c4c in _int_free (av=<optimized out>, p=p@entry=0x7ffff445f610, have_lock=have_lock@entry=0) at malloc.c:4507
#7  0x00007ffff7d335ce in __GI___libc_free (mem=0x7ffff445f620) at malloc.c:3398
#8  0x00007fffea1cbbb3 in std::_Function_base::_Base_manager<std::function<void(int)> >::_M_destroy () at /usr/include/c++/14.1.1/bits/std_function.h:175
#9  std::_Function_base::_Base_manager<std::function<void(int)> >::_M_manager () at /usr/include/c++/14.1.1/bits/std_function.h:203
#10 std::_Function_handler<void(int const&), std::function<void(int)> >::_M_manager () at /usr/include/c++/14.1.1/bits/std_function.h:282
#11 0x00007fffe9cea1f1 in std::_Function_base::~_Function_base () at /usr/include/c++/14.1.1/bits/std_function.h:244
#12 std::function<void(int const&)>::~function () at /usr/include/c++/14.1.1/bits/std_function.h:334
#13 llvm::cl::cb<void, int>::apply<llvm::cl::opt<int, false, llvm::cl::parser<int> > > () at /usr/src/debug/llvm/llvm-18.1.8.src/include/llvm/Support/CommandLine.h:507
#14 llvm::cl::applicator<llvm::cl::cb<void, int> >::opt<llvm::cl::opt<int, false, llvm::cl::parser<int> > > () at /usr/src/debug/llvm/llvm-18.1.8.src/include/llvm/Support/CommandLine.h:1268
#15 llvm::cl::apply<llvm::cl::opt<int, false, llvm::cl::parser<int> >, llvm::cl::cb<void, int>, llvm::cl::desc> ()
    at /usr/src/debug/llvm/llvm-18.1.8.src/include/llvm/Support/CommandLine.h:1317
#16 llvm::cl::apply<llvm::cl::opt<int, false, llvm::cl::parser<int> >, llvm::cl::NumOccurrencesFlag, llvm::cl::cb<void, int>, llvm::cl::desc> ()
    at /usr/src/debug/llvm/llvm-18.1.8.src/include/llvm/Support/CommandLine.h:1318
#17 llvm::cl::apply<llvm::cl::opt<int, false, llvm::cl::parser<int> >, llvm::cl::initializer<int>, llvm::cl::NumOccurrencesFlag, llvm::cl::cb<void, int>, llvm::cl::desc> ()
    at /usr/src/debug/llvm/llvm-18.1.8.src/include/llvm/Support/CommandLine.h:1318
#18 llvm::cl::apply<llvm::cl::opt<int, false, llvm::cl::parser<int> >, llvm::cl::OptionHidden, llvm::cl::initializer<int>, llvm::cl::NumOccurrencesFlag, llvm::cl::cb<void, int>, llvm::cl::desc> () at /usr/src/debug/llvm/llvm-18.1.8.src/include/llvm/Support/CommandLine.h:1318
#19 llvm::cl::apply<llvm::cl::opt<int, false, llvm::cl::parser<int> >, char [17], llvm::cl::OptionHidden, llvm::cl::initializer<int>, llvm::cl::NumOccurrencesFlag, llvm::cl::cb<void, int>, llvm::cl::desc> () at /usr/src/debug/llvm/llvm-18.1.8.src/include/llvm/Support/CommandLine.h:1318
#20 llvm::cl::opt<int, false, llvm::cl::parser<int> >::opt<char [17], llvm::cl::OptionHidden, llvm::cl::initializer<int>, llvm::cl::NumOccurrencesFlag, llvm::cl::cb<void, int>, llvm::cl::desc>
    () at /usr/src/debug/llvm/llvm-18.1.8.src/include/llvm/Support/CommandLine.h:1507
#21 __static_initialization_and_destruction_0 () at /usr/src/debug/llvm/llvm-18.1.8.src/lib/IR/OptBisect.cpp:33
#22 _GLOBAL__sub_I_OptBisect.cpp(void) () at /usr/src/debug/llvm/llvm-18.1.8.src/lib/IR/OptBisect.cpp:54
#23 0x00007ffff7fcb5b7 in call_init (l=<optimized out>, argc=2, argv=0x7fffffffe258, env=0x7fffffffe270) at dl-init.c:74
#24 call_init (l=<optimized out>, argc=2, argv=0x7fffffffe258, env=0x7fffffffe270) at dl-init.c:26
#25 0x00007ffff7fcb6ad in _dl_init (main_map=0x55555558a6f0, argc=2, argv=0x7fffffffe258, env=0x7fffffffe270) at dl-init.c:121
#26 0x00007ffff7fc85c2 in __GI__dl_catch_exception (exception=exception@entry=0x0, operate=operate@entry=0x7ffff7fd2560 <call_dl_init>, args=args@entry=0x7fffffffdc10) at dl-catch.c:215
#27 0x00007ffff7fd24fc in dl_open_worker (a=a@entry=0x7fffffffddc0) at dl-open.c:829
#28 0x00007ffff7fc8523 in __GI__dl_catch_exception (exception=exception@entry=0x7fffffffdda0, operate=operate@entry=0x7ffff7fd2460 <dl_open_worker>, args=args@entry=0x7fffffffddc0)
    at dl-catch.c:241
#29 0x00007ffff7fd2904 in _dl_open (file=0x7ffff7a09829 "libgbm.so.1", mode=<optimized out>, caller_dlopen=0x7ffff7a06ab6 <nxeglFunctionsInit+102>, nsid=<optimized out>, argc=2, 
    argv=0x7fffffffe258, env=0x7fffffffe270) at dl-open.c:905
#30 0x00007ffff7d1df14 in dlopen_doit (a=a@entry=0x7fffffffe070) at dlopen.c:56
#31 0x00007ffff7fc8523 in __GI__dl_catch_exception (exception=exception@entry=0x7fffffffdfb0, operate=0x7ffff7d1deb0 <dlopen_doit>, args=0x7fffffffe070) at dl-catch.c:241
#32 0x00007ffff7fc8679 in _dl_catch_error (objname=0x7fffffffe018, errstring=0x7fffffffe020, mallocedp=0x7fffffffe017, operate=<optimized out>, args=<optimized out>) at dl-catch.c:260
#33 0x00007ffff7d1d9f3 in _dlerror_run (operate=operate@entry=0x7ffff7d1deb0 <dlopen_doit>, args=args@entry=0x7fffffffe070) at dlerror.c:138
#34 0x00007ffff7d1dfcf in dlopen_implementation (file=<optimized out>, mode=<optimized out>, dl_caller=<optimized out>) at dlopen.c:71
#35 ___dlopen (file=<optimized out>, mode=<optimized out>) at dlopen.c:81
#36 0x00007ffff7a06ab6 in nxeglFunctionsInit () from /usr/NX/lib/libnxegl.so
#37 0x00007ffff7a03f35 in ?? () from /usr/NX/lib/libnxegl.so
#38 0x00007ffff7fcb5b7 in call_init (l=<optimized out>, argc=2, argv=0x7fffffffe258, env=0x7fffffffe270) at dl-init.c:74
#39 call_init (l=<optimized out>, argc=2, argv=0x7fffffffe258, env=0x7fffffffe270) at dl-init.c:26
#40 0x00007ffff7fcb6ad in _dl_init (main_map=0x7ffff7ffe2e0, argc=2, argv=0x7fffffffe258, env=0x7fffffffe270) at dl-init.c:121
#41 0x00007ffff7fe3e20 in _dl_start_user () from /lib64/ld-linux-x86-64.so.2
#42 0x0000000000000002 in ?? ()
#43 0x00007fffffffe65e in ?? ()
#44 0x00007fffffffe66c in ?? ()
#45 0x0000000000000000 in ?? ()
(gdb)

Note the line #36 and #37 making references to /usr/NX/lib/libnxegl.so, which is provided by the Nomachine package. I uninstalled this package (and rebooted to refresh my LD_PRELOAD env variable), and the problem was gone.

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.