Crash due to possibly invalid encoding of clipboard content by Firefox
When copying a sequence of characters containing "ö", "ä" or "ü" from a website in Firefox and pasting it into a KeePass2 password field, KeePass2 and/or Ubuntu crashes. The latter depends on whether it's the "Open Database" dialog or the password field of a database entry. (No problems, when using Chrome)
When pasting into the "Open container" dialog, I get a "KeePass - Fatal Error" window, saying
> A fatal error has occurred!
>
> An extended error report has been copied to the clipboard.
>
> Cannot access a disposed object.
> Object name: 'KeePass.
The error report reads as
> Cannot access a disposed object.
> Object name: 'KeePass.
> System.
> at System.
> at System.
> at System.
> at (wrapper remoting-
> at KeePass.
> at KeePass.
> at KeePass.
> at KeePass.
> at System.
> at System.
> at KeePass.
> at System.
> at (wrapper remoting-
> at System.
> at System.
> at System.
> at KeePass.
> Void CreateHandle()
When pasting into the password field of a database entry, Ubuntu crashes and the login screen appears. I found the following part in /var/log/syslog but I'm unable to make sense of it.
> gnome-shell[10186]: **
> gnome-shell[10186]: mutter:
> gnome-shell[10186]: Bail out! mutter:
> gnome-shell[10186]: GNOME Shell crashed with signal 6
> gnome-shell[10186]: == Stack trace for context 0x56291fb9b440 ==
> update-
> gnome-terminal-
> org.kde.
> seahorse[11175]: Error reading events from display: Broken pipe
> evolution-
> gsd-wacom[10416]: Error reading events from display: Broken pipe
> gsd-keyboard[
> gsd-media-
> gsd-power[10382]: Error reading events from display: Broken pipe
> gsd-color[10373]: Error reading events from display: Broken pipe
> nautilus[11104]: Error reading events from display: Broken pipe
> geany[11241]: Error reading events from display: Broken pipe
> systemd[10019]: gsd-media-
> systemd[10019]: gsd-media-
> systemd[10019]: Stopped target GNOME Media keys handling.
> systemd[10019]: gnome-terminal-
> systemd[10019]: gnome-terminal-
> systemd[10019]: Stopped target GNOME Keyboard handling.
> systemd[10019]: vte-spawn-
> systemd[10019]: vte-spawn-
> systemd[10019]: gsd-wacom.service: Main process exited, code=exited, status=1/FAILURE
> systemd[10019]: gsd-wacom.service: Failed with result 'exit-code'.
> systemd[10019]: Stopped target GNOME Wacom handling.
> systemd[10019]: Stopped target GNOME Power management handling.
> systemd[10019]: gnome-shell-
> systemd[10019]: gsd-power.service: Main process exited, code=exited, status=1/FAILURE
> systemd[10019]: gsd-power.service: Failed with result 'exit-code'.
> systemd[10019]: Stopped GNOME Power management handling.
> systemd[10019]: gsd-power.service: Triggering OnFailure= dependencies.
> systemd[10019]: vte-spawn-
> systemd[10019]: Started GNOME Session Failed lockdown screen (user).
> systemd[10019]: Reached target GNOME Session Failed.
> systemd[10019]: gsd-keyboard.
> systemd[10019]: gsd-keyboard.
> systemd[10019]: Stopped GNOME Keyboard handling.
> systemd[10019]: gsd-keyboard.
> systemd[10019]: gsd-color.service: Main process exited, code=exited, status=1/FAILURE
> systemd[10019]: gsd-color.service: Failed with result 'exit-code'.
> systemd[10019]: Stopped target GNOME Color management.
> gnome-shell[10277]: (EE) failed to read Wayland events: Broken pipe
> systemd[10019]: vte-spawn-
> gnome-session-
> gnome-session-
> systemd[10019]: gnome-session-
> gnome-shell[13767]: Gdk-Message: 16:29:16.567: /usr/lib/
> systemd[10019]: gnome-launched-
> gsd-xsettings[
> systemd[10019]: Stopped target GNOME Session Failed.
> systemd[10019]: gsd-xsettings.
> systemd[10019]: gsd-xsettings.
> systemd[10019]: gsd-xsettings.
> firefox[11435]: firefox: Fatal IO error 0 (Success) on X server :0.
> systemd[10019]: gnome-shell-
> systemd[10019]: gnome-shell-
> systemd[10019]: Stopped target GNOME Wayland Session (session: ubuntu).
> systemd[10019]: Stopped target Current graphical user session.
> systemd[10019]: unicast-
> systemd[10019]: Stopped Path trigger for Avahi .local domain notifications.
> systemd[10019]: update-
> systemd[10019]: Stopped Path trigger for Apport crash notifications.
> systemd[10019]: update-
> ...
I'm using Ubuntu 20.04, Firefox 84.0 and KeePass 2.44.
For me it's unclear whether it's related to Ubuntu, Firefox or KeePass or multiple of them.
So far, I tried to compare the clipboard content with Chrome (87.0.4280.88). When copying the lower case "ö" in the first sentence of https:/
> xclip -o -noutf8 | xxd
This returns 0xc3b6 for Chrome and 0xf6 for Firefox. 0xc3b6 is "ö" encoded with utf-8, but 0xf6 is simply the un-encoded unicode code-point for "ö". But I found no information, how the clipboard content should be encoded. Nor do I know if the above approach for comparing clipboard content is reasonable.
So maybe someone can tell me, where I should file a bug report.
Thank you.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Björn
- Solved:
- Last query:
- Last reply: