Skip to content

Segmentation Fault in th-cmd on Raspberry Pi 4 #36

@pproenca

Description

@pproenca

I ran into a issue recently with th-cmd on my raspberry pi and hope this is the right place to report it.

tl;dr Segmentation Fault in th-cmd on Raspberry Pi When Running with --socket /var/run/thd.socket --passfd --udev Options

Details

When running th-cmd with the --socket /var/run/thd.socket --passfd --udev options, the program crashes with a segmentation fault.

System Information:

  • Raspberry Pi Model: 4B+ 8GB
  • Operating System: RaspiOS 64-bit
  • th-cmd version: 0.5.0
  • glibc version: 2.31 (Debian GLIBC 2.31-13+rpt2+rpi1+deb11u5)

Steps to Reproduce:

  1. Run th-cmd with the command /usr/sbin/th-cmd --socket /var/run/thd.socket --passfd --udev.
  2. Observe segmentation fault.

Expected Results:

The th-cmd should run without any issues.

Actual Results:

Segmentation fault occurs, and the following is observed when debugging with gdb:

Program received signal SIGSEGV, Segmentation fault.
0x0000007ff7e10740 in __GI___strcasecmp (s1=0x5555551c58 "add", s2=0x0) at strcasecmp.c:58
58	strcasecmp.c: No such file or directory.

Additional Information:

Logs from systemd-udevd indicate:

Aug 21 18:00:00 pioshost systemd-udevd[203]: event0: Process '/usr/sbin/th-cmd --socket /var/run/thd.socket --passfd --udev' failed with exit code 1.
Aug 21 18:00:00 pioshost systemd-udevd[210]: event1: Process '/usr/sbin/th-cmd --socket /var/run/thd.socket --passfd --udev' failed with exit code 1.

Debugging Attempts:

  1. Checked system and application logs using journalctl -xe and dmesg. No additional relevant information found.
  2. Reinstalled glibc but the issue persists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions