gnome-shell crashed with SIGSEGV in ___vsnprintf_chk()

Bug #1559650 reported by BavarianPH
48
This bug affects 7 people
Affects Status Importance Assigned to Milestone
libxau (Ubuntu)
Fix Released
Medium
Unassigned
Bionic
Fix Released
Medium
Daniel van Vugt
Eoan
Fix Released
Medium
Unassigned
Focal
Fix Released
Medium
Unassigned

Bug Description

[Impact]

gnome-shell crashes a lot. Over 42000 times in bionic so far:
https://errors.ubuntu.com/problem/00455200cd9fb890dacfe09b92c7bda2f6ad3af7

[Test Case]

None known yet. Just keeping an eye on the above link for regressions.

[Regression Potential]

Low. The same fix has been released to newer distros for the past 2 years already.

[Other Info]

ProblemType: Crash
DistroRelease: Ubuntu 16.04
Package: gnome-shell 3.18.4-0ubuntu2
ProcVersionSignature: Ubuntu 4.4.0-14.30-generic 4.4.5
Uname: Linux 4.4.0-13-generic x86_64
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
CrashCounter: 1
CurrentDesktop: GNOME
Date: Wed Mar 16 17:15:11 2016
DisplayManager: gdm3
ExecutablePath: /usr/bin/gnome-shell
GsettingsChanges:

InstallationDate: Installed on 2016-03-13 (6 days ago)
InstallationMedia: Ubuntu-GNOME 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160311)
ProcCmdline: gnome-shell --mode=gdm --wayland --display-server
ProcEnviron:
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/false
SegvAnalysis:
 Segfault happened at: 0x7f1ff33f46ab <___vsnprintf_chk+107>: movb $0x0,(%r12)
 PC (0x7f1ff33f46ab) ok
 source "$0x0" ok
 destination "(%r12)" (0x00000000) not located in a known VMA region (needed writable region)!
 Stack memory exhausted (SP below stack segment)
SegvReason: writing NULL VMA
Signal: 11
SourcePackage: gnome-shell
StacktraceTop:
 ___vsnprintf_chk (s=0x0, maxlen=<optimized out>, flags=1, slen=<optimized out>, format=0x7f1fe54ccae5 "%s%s", args=args@entry=0x7f1fce502da8) at vsnprintf_chk.c:55
 ___snprintf_chk (s=<optimized out>, maxlen=<optimized out>, flags=<optimized out>, slen=<optimized out>, format=<optimized out>) at snprintf_chk.c:34
 XauFileName () from /usr/lib/x86_64-linux-gnu/libXau.so.6
 XauGetBestAuthByAddr () from /usr/lib/x86_64-linux-gnu/libXau.so.6
 ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
Title: gnome-shell crashed with SIGSEGV in ___vsnprintf_chk()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

Revision history for this message
BavarianPH (bavarianph) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 ___vsnprintf_chk (s=0x0, maxlen=<optimized out>, flags=1, slen=<optimized out>, format=0x7f1fe54ccae5 "%s%s", args=args@entry=0x7f1fce502da8) at vsnprintf_chk.c:55
 ___snprintf_chk (s=<optimized out>, maxlen=<optimized out>, flags=flags@entry=1, slen=slen@entry=18446744073709551615, format=format@entry=0x7f1fe54ccae5 "%s%s") at snprintf_chk.c:34
 snprintf (__fmt=0x7f1fe54ccae5 "%s%s", __n=<optimized out>, __s=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/stdio2.h:64
 XauFileName () at ../AuFileName.c:83
 XauGetBestAuthByAddr (family=256, address_length=5, address=0x7f1fce502f80 "phhug", number_length=4, number=0x7f1fce502f50 "1024", types_length=2, types=0x7f1fecc671a0 <authnames>, type_lengths=0x7f1fecc67198 <authnameslen>) at ../AuGetBest.c:74

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-shell (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
information type: Private → Public
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in gnome-shell (Ubuntu):
status: New → Confirmed
tags: added: artful
tags: added: cosmic
tags: added: bionic
tags: added: disco
removed: artful
tags: removed: cosmic
tags: removed: disco
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Seems the problems stopped around gnome-shell 3.34.

Changed in gnome-shell (Ubuntu Bionic):
status: New → Confirmed
importance: Undecided → Medium
Changed in gnome-shell (Ubuntu Eoan):
status: New → Fix Released
Changed in gnome-shell (Ubuntu Focal):
status: Confirmed → Fix Released
Changed in gnome-shell (Ubuntu Eoan):
importance: Undecided → Medium
Changed in gnome-shell (Ubuntu Bionic):
assignee: nobody → Martin Wimpress (flexiondotorg)
assignee: Martin Wimpress (flexiondotorg) → Daniel van Vugt (vanvugt)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Changed in libxau (Ubuntu Eoan):
status: New → Fix Released
Changed in libxau (Ubuntu Focal):
status: New → Fix Released
Changed in libxau (Ubuntu Bionic):
status: New → Triaged
assignee: nobody → Daniel van Vugt (vanvugt)
status: Triaged → In Progress
importance: Undecided → Medium
Changed in libxau (Ubuntu Eoan):
importance: Undecided → Medium
Changed in libxau (Ubuntu Focal):
importance: Undecided → Medium
no longer affects: gnome-shell (Ubuntu Bionic)
no longer affects: gnome-shell (Ubuntu Eoan)
no longer affects: gnome-shell (Ubuntu Focal)
Changed in gnome-shell (Ubuntu):
status: Fix Released → Invalid
description: updated
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Changed in libxau (Ubuntu Bionic):
status: In Progress → Fix Committed
Mathew Hodson (mhodson)
no longer affects: gnome-shell (Ubuntu)
affects: gnome-shell → ubuntu-translations
no longer affects: ubuntu-translations
Mathew Hodson (mhodson)
Changed in libxau (Ubuntu Bionic):
status: Fix Committed → In Progress
Revision history for this message
Iain Lane (laney) wrote :

I've sponsored the debdiff to bionic's queue

description: updated
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello BavarianPH, or anyone else affected,

Accepted libxau into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/libxau/1:1.0.8-1ubuntu1 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-bionic to verification-done-bionic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-bionic. 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 libxau (Ubuntu Bionic):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-bionic
description: updated
Revision history for this message
Ubuntu SRU Bot (ubuntu-sru-bot) wrote : Autopkgtest regression report (libxau/1:1.0.8-1ubuntu1)

All autopkgtests for the newly accepted libxau (1:1.0.8-1ubuntu1) for bionic have finished running.
The following regressions have been reported in tests triggered by the package:

plasma-workspace/4:5.12.9-0ubuntu0.1 (armhf)

Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUpdates policy regarding autopkgtest regressions [1].

https://people.canonical.com/~ubuntu-archive/proposed-migration/bionic/update_excuses.html#libxau

[1] https://wiki.ubuntu.com/StableReleaseUpdates#Autopkgtest_Regressions

Thank you!

Revision history for this message
Sebastien Bacher (seb128) wrote :

the test got retried and is green now

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

OK then. Just needs sanity checking. Which means I need to build a bionic machine.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I've now verified libxau version 1:1.0.8-1ubuntu1 works on bionic (amd64). There's no test case other than that.

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

This bug was fixed in the package libxau - 1:1.0.8-1ubuntu1

---------------
libxau (1:1.0.8-1ubuntu1) bionic; urgency=medium

  * Add debian/patches/fix-lp1559650.patch to fix a common segfault in
    ___vsnprintf_chk() that's crashing gnome-shell (LP: #1559650)

 -- Daniel van Vugt <email address hidden> Tue, 21 Apr 2020 15:33:06 +0800

Changed in libxau (Ubuntu Bionic):
status: Fix Committed → Fix Released
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Update Released

The verification of the Stable Release Update for libxau 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.