Yubico / yubioath-flutter

Yubico Authenticator for Desktop (Windows, macOS and Linux) and Android
https://developers.yubico.com/yubioath-flutter/
Apache License 2.0
1.03k stars 139 forks source link

segfault : yubioath-desktop-5.0.2-linux.appimage #548

Closed sf32738 closed 4 years ago

sf32738 commented 4 years ago

Yubioath desktop client does not detect insertion of Yubikey.

Steps to reproduce

1 - Download appimage application from Yubi website. 2 - Saved file to downloads folder 3 - Moved AppImage to /usr/local/bin 4 - Set owner as "root:root" 5 - Set file as executable for all users 6 - Created desktop launcher using /usr/local/bin/yubioath-desktop-5.0.2-linux.AppImage 7 - Executed application via launcher (as well as from CLI during troubleshooting)

Expected result

With my home PC, the above steps worked without issue. I am able to access my YubiKey 5 NFC and generate OTP keys.

I tried to perform the same steps on my Linux Mint laptop and Linux Mint desktop. -- Both failed.

Actual results

[1830386.096616] usb 3-1.1.1: new full-speed USB device number 24 using xhci_hcd [1830386.216436] usb 3-1.1.1: New USB device found, idVendor=1050, idProduct=0407, bcdDevice= 5.24 [1830386.216439] usb 3-1.1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [1830386.216441] usb 3-1.1.1: Product: YubiKey OTP+FIDO+CCID [1830386.216443] usb 3-1.1.1: Manufacturer: Yubico [1830386.228188] input: Yubico YubiKey OTP+FIDO+CCID as /devices/pci0000:00/0000:00:1c.1/0000:03:00.0/usb3/3-1/3-1.1/3-1.1.1/3-1.1.1:1.0/0003:1050:0407.0053/input/input39 [1830386.289261] hid-generic 0003:1050:0407.0053: input,hidraw7: USB HID v1.10 Keyboard [Yubico YubiKey OTP+FIDO+CCID] on usb-0000:03:00.0-1.1.1/input0 [1830386.290269] hid-generic 0003:1050:0407.0054: hiddev2,hidraw8: USB HID v1.10 Device [Yubico YubiKey OTP+FIDO+CCID] on usb-0000:03:00.0-1.1.1/input1 [1830616.072735] yubioath-deskto[29562]: segfault at 7f44a166fd60 ip 00007f44b2bcffdb sp 00007ffe08fb39a0 error 4 in libQt5Quick.so.5[7f44b29ba000+48d000] [1830616.072744] Code: 0a f0 83 28 01 0f 84 8c 00 00 00 48 8d bb e0 00 00 00 e8 28 1e ee ff 48 8d bb a8 00 00 00 e8 dc 2f ee ff 48 8b bb a0 00 00 00 <8b> 07 85 c0 0f 84 4b 01 00 00 83 f8 ff 74 0a f0 83 2f 01 0f 84 30

Other info

The only difference that I could find between my home PC and my work PC(s) [desktop + laptop], are that my home PC has YubiKey Manager installed and my work PCs do not. Additionally, my home PC is running kernel version 5.3.0-40-generic vs work systems are on 5.3.0-28-generic

sf32738 commented 4 years ago

Following up on this issue after further testing with my laptop this evening.

The segfault does not happen when detecting the USB device. The segfault only happens when closing out the desktop application.

I was able to get around this issue by not using the appimage as provided on the website https://www.yubico.com/products/services-software/download/yubico-authenticator/

Instead, I used the PPA for Ubuntu and everything is now working without issue. https://support.yubico.com/support/solutions/articles/15000010964-enabling-the-yubico-ppa-on-ubuntu

Once the PPA is setup, I then loaded the application "yubioath-desktop". Once that was installed, I can now use the new version of desktop application "yubioath-desktop-5.0.2-linux.AppImage"