Skip to content
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

Seg fault on trying to list board #38

Open
vinodkoul opened this issue Jun 21, 2022 · 3 comments
Open

Seg fault on trying to list board #38

vinodkoul opened this issue Jun 21, 2022 · 3 comments

Comments

@vinodkoul
Copy link

I have a new ykush3 board and when listing it gives me seg fault. with sudo that is not the case:
sudo ykushcmd ykush3 -l

Attached YKUSH3 Boards:

  1. Board found with serial number: Y3004047

$ ykushcmd ykush3 -l

Attached YKUSH3 Boards:
Segmentation fault (core dumped)

dmesg shows:
[7951105.281108] usb 1-2.4.4.1.4: New USB device found, idVendor=04d8, idProduct=f11b, bcdDevice= 0.01
[7951105.281115] usb 1-2.4.4.1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[7951105.281117] usb 1-2.4.4.1.4: Product: YKUSH3
[7951105.281119] usb 1-2.4.4.1.4: Manufacturer: Yepkit Lda.
[7951105.281120] usb 1-2.4.4.1.4: SerialNumber: Y3004047
[7951105.381707] hid-generic 0003:04D8:F11B.0005: hiddev98,hidraw2: USB HID v1.11 Device [Yepkit Lda. YKUSH3] on usb-0000:06:00.1-2.4.4.1.4/input0
[7951105.457526] usb 1-2.4.4.1.5: new high-speed USB device number 6 using xhci_hcd
[7951105.549610] usb 1-2.4.4.1.5: New USB device found, idVendor=0424, idProduct=2740, bcdDevice= 2.00
[7951105.549617] usb 1-2.4.4.1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[7951105.549619] usb 1-2.4.4.1.5: Product: Hub Controller
[7951105.549621] usb 1-2.4.4.1.5: Manufacturer: Microchip Tech
[7951113.801263] ykushcmd[3900225]: segfault at ffffffffffffffd0 ip 00007fdadaf4a268 sp 00007ffe6a0c22e0 error 5 in libusb-1.0.so.0.3.0[7fdadaf3e000+f000]
[7951113.801268] Code: 24 18 31 c0 48 85 ff 0f 84 af 01 00 00 48 89 fd 48 8d 0d 21 2e 00 00 48 8d 15 9c 79 00 00 31 ff be 04 00 00 00 e8 78 58 ff ff <48> 8b 45 40 4c 8b 60 30 41 8b bc 24 44 01 00 00 e8 93 49 ff ff 48

I am on X64 machine, with
$ uname -r
5.16.15-101.fc34.x86_64

@nmichaels-qualinx
Copy link

I had the same problem; running as root appeared to fix it. It would be nice if there were a udev file that came with this repo that could obviate the need to do that.

@scottw-finao
Copy link

ditto and bump for nmichaels-qualinx comment.

@scottw-finao
Copy link

scottw-finao commented Oct 17, 2023

It would be nice if there were a udev file that came with this repo that could obviate the need to do that.

fyi, I did find this:

install_udev.sh

# /etc/udev/rules.d/99-ykush.rules
# udev rules for Yepkit Ykush power switching USB hub
ACTION!="add|change", GOTO="ykush_end"

SUBSYSTEMS=="usb", ATTR{manufacturer}=="Yepkit Lda.", ATTR{product}=="YKUSH", GROUP="dialout"

LABEL="ykush_end"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants