-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation Fault in th-cmd on Raspberry Pi 4 #36
Comments
th-cmd
on Raspberry Pi When Running with --socket /var/run/thd.socket --passfd --udev
Optionsth-cmd
on Raspberry Pi
th-cmd
on Raspberry Pi
Also seeing exact same issue on RPi4 with 4GB |
Issue seems to be null string into strcasecmp. Don't know how triggerhappy works, but looks like ACTION and DEVNAME are to be passed through environmental variables, aren't defined, and segfaults. It might be that original strcasecmp was OK with a null string, but retropie version isn't. You can define some bogus environmental variables, e.g., "export DEVNAME=bogus; ACTION=bogus" or patch th-cmd. I've hacked th-cmd.c locally to avoid the segfault, but I'm not certain it's the root of my problems (trying to get wiimote to connect to pi 4 board).
This might have to do with a udev rule recommended to change the permissions
There's no defined ACTION here. |
Seeing this same issue on a |
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
OptionsDetails
When running
th-cmd
with the--socket /var/run/thd.socket --passfd --udev
options, the program crashes with a segmentation fault.System Information:
th-cmd
version: 0.5.0glibc
version: 2.31 (Debian GLIBC 2.31-13+rpt2+rpi1+deb11u5)Steps to Reproduce:
th-cmd
with the command/usr/sbin/th-cmd --socket /var/run/thd.socket --passfd --udev
.Expected Results:
The
th-cmd
should run without any issues.Actual Results:
Segmentation fault occurs, and the following is observed when debugging with
gdb
:Additional Information:
Logs from
systemd-udevd
indicate:Debugging Attempts:
journalctl -xe
anddmesg
. No additional relevant information found.glibc
but the issue persists.The text was updated successfully, but these errors were encountered: