gnome-boxes assert failure: gnome-boxes: ../../../../src/cairo-surface.c:955: cairo_surface_destroy: Assertion `CAIRO_REFERENCE_COUNT_HAS_REFERENCE (&surface->ref_count)' failed.

Bug #1879777 reported by Asif Youssuff
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Boxes
Fix Released
Unknown
gnome-boxes (Ubuntu)
Fix Released
High
Unassigned
Focal
Fix Released
Undecided
Unassigned

Bug Description

* Impact
Boxes segfault when trying to connect an RDP session

* Test case

1. I added an RDP session to GNOME Boxes
2. Enter username and password
3. Click the entry in the Boxes UI

What happens:

Crash.

Expected result:

I am connected to the machine.

* Regression potential

the code change removes a cairo surface destroy, if the call was incorrectly removed it could lead to a leak

-------------------------------

ProblemType: Crash
DistroRelease: Ubuntu 20.10
Package: gnome-boxes 3.36.3-1
ProcVersionSignature: Ubuntu 5.4.0-26.30-generic 5.4.30
Uname: Linux 5.4.0-26-generic x86_64
ApportVersion: 2.20.11-0ubuntu35
Architecture: amd64
AssertionMessage: gnome-boxes: ../../../../src/cairo-surface.c:955: cairo_surface_destroy: Assertion `CAIRO_REFERENCE_COUNT_HAS_REFERENCE (&surface->ref_count)' failed.
CasperMD5CheckResult: skip
CurrentDesktop: GNOME
Date: Wed May 20 15:12:18 2020
ExecutablePath: /usr/bin/gnome-boxes
ExecutableTimestamp: 1588258717
InstallationDate: Installed on 2020-05-20 (0 days ago)
InstallationMedia: Ubuntu 20.10 "Groovy Gorilla" - Alpha amd64 (20200518)
ProcCmdline: /usr/bin/gnome-boxes --gapplication-service
ProcCwd: /home/asif
ProcEnviron:
 SHELL=/bin/bash
 XDG_RUNTIME_DIR=<set>
 PATH=(custom, no user)
 LANG=en_US.UTF-8
Signal: 6
SourcePackage: gnome-boxes
StacktraceTop:
 __assert_fail_base (fmt=0x7f463b0e7588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x7f463ed29498 "CAIRO_REFERENCE_COUNT_HAS_REFERENCE (&surface->ref_count)", file=0x7f463ed29450 "../../../../src/cairo-surface.c", line=955, function=<optimized out>) at assert.c:92
 __GI___assert_fail (assertion=0x7f463ed29498 "CAIRO_REFERENCE_COUNT_HAS_REFERENCE (&surface->ref_count)", file=0x7f463ed29450 "../../../../src/cairo-surface.c", line=955, function=0x7f463ed299f0 "cairo_surface_destroy") at assert.c:101
 cairo_surface_destroy () from /lib/x86_64-linux-gnu/libcairo.so.2
 ?? () from /usr/lib/x86_64-linux-gnu/gnome-boxes/libgtk-frdp-0.1.so
 ?? () from /usr/lib/x86_64-linux-gnu/gnome-boxes/libgtk-frdp-0.1.so
Title: gnome-boxes assert failure: gnome-boxes: ../../../../src/cairo-surface.c:955: cairo_surface_destroy: Assertion `CAIRO_REFERENCE_COUNT_HAS_REFERENCE (&surface->ref_count)' failed.
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
separator:

Revision history for this message
Asif Youssuff (yoasif) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 __assert_fail_base (fmt=0x7f463b0e7588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x7f463ed29498 "CAIRO_REFERENCE_COUNT_HAS_REFERENCE (&surface->ref_count)", file=0x7f463ed29450 "../../../../src/cairo-surface.c", line=955, function=<optimized out>) at assert.c:92
 __GI___assert_fail (assertion=assertion@entry=0x7f463ed29498 "CAIRO_REFERENCE_COUNT_HAS_REFERENCE (&surface->ref_count)", file=file@entry=0x7f463ed29450 "../../../../src/cairo-surface.c", line=line@entry=955, function=function@entry=0x7f463ed299f0 <__PRETTY_FUNCTION__.14013> "cairo_surface_destroy") at assert.c:101
 INT_cairo_surface_destroy (surface=0x55e4647f9fa0) at ../../../../src/cairo-surface.c:955
 frdp_session_update_mouse_pointer () from /tmp/apport_sandbox_n6j199oo/usr/lib/x86_64-linux-gnu/gnome-boxes/libgtk-frdp-0.1.so
 frdp_Pointer_SetNull () from /tmp/apport_sandbox_n6j199oo/usr/lib/x86_64-linux-gnu/gnome-boxes/libgtk-frdp-0.1.so

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : StacktraceSource.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in gnome-boxes (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-boxes (Ubuntu):
status: New → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, it was reported and fixed upstream https://gitlab.gnome.org/GNOME/gnome-boxes/issues/457

Changed in gnome-boxes (Ubuntu):
importance: Medium → High
status: Confirmed → Fix Committed
information type: Private → Public
Changed in gnome-boxes:
status: Unknown → Fix Released
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-boxes - 3.36.5-1ubuntu2

---------------
gnome-boxes (3.36.5-1ubuntu2) groovy; urgency=medium

  * debian/patches/git_rdp_segfault.patch:
    - backport a fix for segfault happening when trying to connect via rdp
      (lp: #1879777)

 -- Sebastien Bacher <email address hidden> Tue, 28 Jul 2020 16:03:13 +0200

Changed in gnome-boxes (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Asif, or anyone else affected,

Accepted gnome-boxes into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/gnome-boxes/3.36.5-0ubuntu2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in gnome-boxes (Ubuntu Focal):
status: New → Fix Committed
tags: added: verification-needed verification-needed-focal
Revision history for this message
Sebastien Bacher (seb128) wrote :

3.36.5-0ubuntu2 behaves correctly, also e.u.c shows no report from the new version, verified

tags: added: verification-done verification-done-focal
removed: verification-needed verification-needed-focal
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-boxes - 3.36.5-0ubuntu2

---------------
gnome-boxes (3.36.5-0ubuntu2) focal; urgency=medium

  * debian/patches/git_rdp_segfault.patch:
    - backport a fix for segfault happening when trying to connect via rdp
      (lp: #1879777)

 -- Sebastien Bacher <email address hidden> Tue, 28 Jul 2020 16:07:06 +0200

Changed in gnome-boxes (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for gnome-boxes has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.