FS#78710 - [cups] 2.4.3-1 Firefox crashes when opening print-dialog

Attached to Project: Arch Linux
Opened by Pascal Bryner (Veldora) - Monday, 05 June 2023, 09:14 GMT
Last edited by Andreas Radke (AndyRTR) - Tuesday, 06 June 2023, 15:27 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 7
Private No

Details

Description:
Firefox crashes when opening the print-dialog, when the currently available version libcups 2.4.3-1 is installed on the system.
When downgrading to libcups 2.4.2-7, the bug is not present anymore.

Downgrading is not an option, since 2.4.3-1 fixes a critical vulnerability.

Additional info:
* package version(s):
[root@<hostname> ~]# pacman -Q firefox libcups cups
firefox 113.0.2-1
libcups 1:2.4.3-1
cups 1:2.4.3-1

* config and/or log files etc.
[root@<hostname> ~]# journalctl --no-hostname -qb /usr/bin/firefox -f
Jun 05 11:10:52 firefox.desktop[4349]: ExceptionHandler::GenerateDump cloned child 4581
Jun 05 11:10:52 firefox.desktop[4349]: ExceptionHandler::SendContinueSignalToChild sent continue signal to child
Jun 05 11:10:52 firefox.desktop[4581]: ExceptionHandler::WaitForContinueSignal waiting for continue signal...

Steps to reproduce:
* Install Firefox version 113.0.2-1
* Install libcups and cups version 2.4.3-1
* Open Firefox
* Open print dialog (Ctrl + P) in Firefox
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Tuesday, 06 June 2023, 15:27 GMT
Reason for closing:  Fixed
Additional comments about closing:  2.4.4-1
Comment by Chris (Stratoblaster) - Monday, 05 June 2023, 14:22 GMT
I can confirm that this is happening.
Not only in the print dialog (Control - P)
But also via the hamburger menu, Print.

pacman -Qi firefox libcups cups
Name : firefox
Version : 113.0.2-1
Description : Standalone web browser from mozilla.org
Architecture : x86_64
URL : https://www.mozilla.org/firefox/
Licenses : GPL LGPL MPL
Groups : None
Provides : None
Depends On : dbus-glib ffmpeg gtk3 libpulse libxt mime-types nss ttf-font
Optional Deps : hunspell-en_US: Spell checking, American English
libnotify: Notification integration [installed]
networkmanager: Location detection via available WiFi networks [installed]
pulseaudio: Audio support [installed]
speech-dispatcher: Text-to-Speech
xdg-desktop-portal: Screensharing with Wayland
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 241.50 MiB
Packager : Jan Alexander Steffens (heftig) <heftig@archlinux.org>
Build Date : Tue 23 May 2023 09:45:02 AM EDT
Install Date : Wed 24 May 2023 05:57:30 AM EDT
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature

Name : libcups
Version : 1:2.4.3-1
Description : OpenPrinting CUPS - client libraries and headers
Architecture : x86_64
URL : https://openprinting.github.io/cups/
Licenses : Apache custom
Groups : None
Provides : None
Depends On : gnutls avahi
Optional Deps : None
Required By : chromium cups cups-filters ghostscript gtk2 gtk3 libreoffice-fresh qt5-base smbclient
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 836.20 KiB
Packager : T.J. Townsend <blakkheim@archlinux.org>
Build Date : Thu 01 Jun 2023 12:05:53 PM EDT
Install Date : Thu 01 Jun 2023 01:14:50 PM EDT
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature

Name : cups
Version : 1:2.4.3-1
Description : OpenPrinting CUPS - daemon package
Architecture : x86_64
URL : https://openprinting.github.io/cups/
Licenses : Apache custom
Groups : None
Provides : None
Depends On : acl pam libcups>=2.4.3 cups-filters dbus systemd libpaper hicolor-icon-theme
Optional Deps : libusb: for usb printer backend [installed]
ipp-usb: allows to send HTTP requests via a USB connection on devices without Ethernet or WiFi connections
xdg-utils: xdg .desktop file support [installed]
colord: for ICC color profile support
logrotate: for logfile rotation support
Required By : cups-pdf
Optional For : foomatic-db-gutenprint-ppds hplip
Conflicts With : None
Replaces : None
Installed Size : 12.74 MiB
Packager : T.J. Townsend <blakkheim@archlinux.org>
Build Date : Thu 01 Jun 2023 12:05:53 PM EDT
Install Date : Thu 01 Jun 2023 01:14:50 PM EDT
Install Reason : Explicitly installed
Install Script : Yes
Validated By : Signature
Comment by Ethan Kessel (SpaceKobold) - Monday, 05 June 2023, 15:02 GMT
I experienced the same issue after installing cups, however the issue also persists after uninstalling cups. libcups could not be uninstalled on my system as a dependency for several other packages.

With cups removed:
pacman -Q firefox libcups cups
firefox 113.0.2-1
libcups 1:2.4.3-1
error: package 'cups' was not found

Crash report: https://crash-stats.mozilla.org/report/index/a57089e0-aa1b-4ce7-b2c7-513ef0230605

With cups reinstalled:
pacman -Q firefox libcups cups
firefox 113.0.2-1
libcups 1:2.4.3-1
cups 1:2.4.3-1

Crash report: https://crash-stats.mozilla.org/report/index/4eaf94e9-72a7-47b8-b649-1c1610230605

Both cases crash appears to occur in cupsCopyDest.
Comment by matt deater (drdeater) - Monday, 05 June 2023, 17:38 GMT
I am also experiencing this issue when I try printing (CTRL P)

firefox 113.0.2-1
libcups 1:2.4.3-1
cups 1:2.4.3-1
Comment by Seth Bashford (pls) - Monday, 05 June 2023, 18:05 GMT
I am experiencing this too. I also notice that lp is terminating with a segfault:

$ echo test | lp
fish: Process 30495, 'lp' from job 1, 'echo test | lp' terminated by signal SIGSEGV (Address boundary error)

$ pacman -Qo lp
/usr/bin/lp is owned by cups 1:2.4.3-1
Comment by Mike Vanbuskirk (codevbus) - Monday, 05 June 2023, 21:31 GMT
Can confirm this is happening as well:

Name : firefox
Version : 113.0.2-1
Description : Standalone web browser from mozilla.org
Architecture : x86_64
URL : https://www.mozilla.org/firefox/
Licenses : GPL LGPL MPL
Groups : None
Provides : None
Depends On : dbus-glib ffmpeg gtk3 libpulse libxt mime-types nss ttf-font
Optional Deps : hunspell-en_US: Spell checking, American English
libnotify: Notification integration [installed]
networkmanager: Location detection via available WiFi networks
pulseaudio: Audio support [installed]
speech-dispatcher: Text-to-Speech
xdg-desktop-portal: Screensharing with Wayland
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 241.50 MiB
Packager : Jan Alexander Steffens (heftig) <heftig@archlinux.org>
Build Date : Tue 23 May 2023 09:45:02 AM EDT
Install Date : Thu 25 May 2023 04:19:45 PM EDT
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature

Name : libcups
Version : 1:2.4.3-1
Description : OpenPrinting CUPS - client libraries and headers
Architecture : x86_64
URL : https://openprinting.github.io/cups/
Licenses : Apache custom
Groups : None
Provides : None
Depends On : gnutls avahi
Optional Deps : None
Required By : cups cups-filters ghostscript google-chrome gtk2 gtk3 libreoffice-fresh qt5-base qt6-base
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 836.20 KiB
Packager : T.J. Townsend <blakkheim@archlinux.org>
Build Date : Thu 01 Jun 2023 12:05:53 PM EDT
Install Date : Sun 04 Jun 2023 07:45:10 PM EDT
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature

Name : cups
Version : 1:2.4.3-1
Description : OpenPrinting CUPS - daemon package
Architecture : x86_64
URL : https://openprinting.github.io/cups/
Licenses : Apache custom
Groups : None
Provides : None
Depends On : acl pam libcups>=2.4.3 cups-filters dbus systemd libpaper hicolor-icon-theme
Optional Deps : libusb: for usb printer backend [installed]
ipp-usb: allows to send HTTP requests via a USB connection on devices without Ethernet or WiFi connections
xdg-utils: xdg .desktop file support [installed]
colord: for ICC color profile support [installed]
logrotate: for logfile rotation support
Required By : brother-mfc-7860dw cups-pdf
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 12.74 MiB
Packager : T.J. Townsend <blakkheim@archlinux.org>
Build Date : Thu 01 Jun 2023 12:05:53 PM EDT
Install Date : Sun 04 Jun 2023 07:45:10 PM EDT
Install Reason : Explicitly installed
Install Script : Yes
Validated By : Signature

Comment by Toolybird (Toolybird) - Monday, 05 June 2023, 21:48 GMT
Please *STOP* with the empty "me too" posts...any more such trash will be deleted! Unless you have something useful to add, just use the "Add Vote" button or add yourself to the notifications list. Thank you.
Comment by loqs (loqs) - Monday, 05 June 2023, 22:03 GMT Comment by Toolybird (Toolybird) - Monday, 05 June 2023, 22:16 GMT
Finally some sanity...thanks @loqs! I cannot repro here (in a test VM or on a real system) so clearly it doesn't trigger for everyone.

Loading...