yubioath-flutter icon indicating copy to clipboard operation
yubioath-flutter copied to clipboard

Segmentation fault when launching Snap package

Open 5amm opened this issue 4 years ago • 24 comments

  • Yubico Authenticator version: 5.0.4 (Snap package)
  • Operating system and version: GNU/Linux Debian 10 (Buster) 4.19.0-11-amd64
  • YubiKey model and version: YubiKey 5 NFC
  • Bug description summary: Segmentation fault on launch

Steps to reproduce

/snap/bin/yubioath-desktop

Expected result

Yubico Authenticator launches

Actual results

Yubico Authenticator displays for a split second before disappearing, with terminal printing errors found below. If launched with sudo privileges, a different error message is printed, and reattempting to launch without sudo displays a GUI warning message reading: "Yubico Authenticator is already running." but the application is not visible anywhere.

Other info

Errors

  1. $ /snap/bin/yubioath-desktop Segmentation fault

  2. $ sudo /snap/bin/yubioath-desktop

Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
Segmentation fault

Related

See related issue: #573

5amm avatar Oct 16 '20 06:10 5amm

Same issue for me.

ohare93 avatar Oct 16 '20 07:10 ohare93

Hi, Thanks for the report. Does this always happen when you try running Yubico Authenticator?

fdennis avatar Oct 16 '20 07:10 fdennis

Hi @fdennis, yes, as of 1/2 days ago, every time I try to launch I get the same errors.

ghost avatar Oct 16 '20 07:10 ghost

Yeah same here on Ubuntu 20.10 beta, assumed it was related that.

lilHermit avatar Oct 16 '20 08:10 lilHermit

Yeah same here on Ubuntu 20.10 beta, assumed it was related that.

I'm on Ubuntu 18.0.4, so presumably not an issue there.

ohare93 avatar Oct 16 '20 08:10 ohare93

Same issue for me, using the snap package on Ubuntu 18.04.5 LTS

carlovollebregt avatar Oct 19 '20 09:10 carlovollebregt

Same on 20.04.1

Eeemil avatar Oct 21 '20 09:10 Eeemil

Thanks everyone! While we are looking into this, could you try the AppImage instead? Available here

fdennis avatar Oct 21 '20 10:10 fdennis

The app image opens up for me, yet my keys are not recognised. Although on opening the settings I can see them there, yet they flicked in and out of the selection menu :thinking:

See this gif: yubico

If I plug in multiple keys at once they are each in the selection menu, yet hitting select does nothing.

ohare93 avatar Oct 21 '20 19:10 ohare93

@ohare93 Does this always happen? Could you try taking out the key and reinserting it again.

fdennis avatar Oct 22 '20 06:10 fdennis

@ohare93 Does this always happen? Could you try taking out the key and reinserting it again.

Always happens.

ohare93 avatar Oct 22 '20 06:10 ohare93

I had exactly the same behavior with the AppImage as @ohare93, but after rebooting Ubuntu the AppImage does work for me.

carlovollebregt avatar Oct 22 '20 06:10 carlovollebregt

@ohare93 This usually happens if the pcscd service is not installed or not running.

fdennis avatar Oct 22 '20 07:10 fdennis

I had earlier problems with yubioath-desktop that it didn't recognize any of my two keys 3-4 weeks ago or something (don't remembember the version), I haven't used it for a while until this week when it didn't even start (version 5.0.4, I guess its a newer version due to snap auto updates). I installed ykman yesterday and it works fine though.

Eeemil avatar Oct 22 '20 08:10 Eeemil

I confirm same segfault when launching snap package on Ubuntu 20.10 Interestingly, I get the same behavior with yubioath-desktop-5.0.1-linux.AppImage Hoewever, yubioath-desktop-5.0.4-linux.AppImage works as expected

jlopp avatar Nov 08 '20 13:11 jlopp

Currently experiencing the exact same issue, on both a Yubikey NEO and a 5 NFC.

Getting a segfault in the snap package and the same behaviour as described by Ohare earlier in this issue for the AppImage version (5.0.4).

Edit: can actually confirm that @fdennis was right about pcscd not running. After installing that using apt install pcscd the AppImage started working normally.

webloem avatar Nov 12 '20 16:11 webloem

I have been having a similar issue ever since I updated to Fedora 33, and have experienced it with both the RPM package and the AppImage. I can confirm that pcscd is installed and running, yet I am experiencing the same issue with the key flickering in and out of existence. It also occasionally will show my list of credentials and the timer indicator, but the area where the OTP would be is blank.

adueppen avatar Nov 25 '20 15:11 adueppen

Same issue here, after installing from snap on Ubuntu, I get:

➜  ~ yubioath-desktop 
Qt: Session management error: None of the authentication protocols specified are supported
[1]    13361 segmentation fault  yubioath-desktop

ghost avatar Nov 27 '20 07:11 ghost

@bquartier Could you try using the AppImage and see if that works for you instead.

fdennis avatar Nov 27 '20 07:11 fdennis

Hi @fdennis, it works with the AppImage.

ghost avatar Nov 27 '20 07:11 ghost

Just to mention I haven't retested the Snap in a while as I'm now using ykman in the terminal and much prefer it.

ghost avatar Nov 27 '20 08:11 ghost

I am also having this issue, as well as a similar issue with the AppImage

aspenbaily avatar Jan 27 '21 19:01 aspenbaily

Hi everyone, Today we released a fix in our beta channel for this issue. We would appreciate it if you could try it out and let us know your feedback. Is it working better?

You can get the latest version by running snap install --beta yubioath-desktop. If you have any problems with pcscd, please read through the information available here https://snapcraft.io/yubioath-desktop

fdennis avatar Feb 03 '21 08:02 fdennis

Hi everyone, Today we released a fix in our beta channel for this issue. We would appreciate it if you could try it out and let us know your feedback. Is it working better?

You can get the latest version by running snap install --beta yubioath-desktop. If you have any problems with pcscd, please read through the information available here https://snapcraft.io/yubioath-desktop

It works! :+1: Had to remove the old version first though.

ohare93 avatar Feb 03 '21 18:02 ohare93

Yubico Authenticator 6.0 has now been released and uses a new codebase. As such, this issue has been marked with the legacy label, and will be automatically closed in 7 days. If this issue is still relevant to Yubico Authenticator 6, please comment on the issue saying so, and it will be kept open (or be re-opened). Sorry for the inconvenience!

dainnilsson avatar Nov 16 '22 10:11 dainnilsson