pulseaudio crashed with SIGSEGV in _IceTransClose()

Bug #1942685 reported by Leó Kolbeinsson
62
This bug affects 9 people
Affects Status Importance Assigned to Milestone
PulseAudio
Fix Released
Unknown
pulseaudio (Ubuntu)
Fix Released
High
Unassigned
Impish
Fix Released
High
Unassigned

Bug Description

* Impact

The pulseaudio service sometime segfaults on session closing which trigger a bug report dialog

* Test plan

Log out of a desktop session and back in, there should be no error prompt

The issue isn't triggered only randomly it seems so it might be easier to check that reports stop on
https://errors.ubuntu.com/problem/877172e07ed9f86b0674cd458a5aaf24b37fb01e

* Where problems could occur

The change is in the X session closing handling so shouldn't impact on normal use, if incorrect the fix could lead to increase the chance of hitting the segfault when an Xsession is closed

---

Installing Xubuntu Impish daily ISO 04092021

After install I rebooted - applied updates and then rebooted again-

the errors (pulseaudio crashed with SIGSEGV in _IceTransClose() ) occurred after logging in.

ProblemType: Crash
DistroRelease: Ubuntu 21.10
Package: pulseaudio 1:15.0+dfsg1-1ubuntu2
ProcVersionSignature: Ubuntu 5.13.0-14.14-generic 5.13.1
Uname: Linux 5.13.0-14-generic x86_64
ApportVersion: 2.20.11-0ubuntu68
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: kx 847 F.... pulseaudio
CasperMD5CheckResult: pass
Date: Sat Sep 4 16:43:45 2021
ExecutablePath: /usr/bin/pulseaudio
InstallationDate: Installed on 2021-09-04 (0 days ago)
InstallationMedia: Xubuntu 21.10 "Impish Indri" - Alpha amd64 (20210904)
ProcCmdline: /usr/bin/pulseaudio --daemonize=no --log-target=journal
Signal: 11
SourcePackage: pulseaudio
StacktraceTop:
 _IceTransClose () from /lib/x86_64-linux-gnu/libICE.so.6
 _IceFreeConnection () from /lib/x86_64-linux-gnu/libICE.so.6
 IceCloseConnection () from /lib/x86_64-linux-gnu/libICE.so.6
 SmcCloseConnection () from /lib/x86_64-linux-gnu/libSM.so.6
 ?? () from /usr/lib/pulse-15.0+dfsg1/modules/module-x11-xsmp.so
Title: pulseaudio crashed with SIGSEGV in _IceTransClose()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
dmi.bios.date: 12/23/2020
dmi.bios.release: 1.51
dmi.bios.vendor: LENOVO
dmi.bios.version: DKCN51WW
dmi.board.asset.tag: NO Asset Tag
dmi.board.name: LNVNB161216
dmi.board.vendor: LENOVO
dmi.board.version: SDK0J40700 WIN
dmi.chassis.asset.tag: NO Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Lenovo V14-IIL
dmi.ec.firmware.release: 1.51
dmi.modalias: dmi:bvnLENOVO:bvrDKCN51WW:bd12/23/2020:br1.51:efr1.51:svnLENOVO:pn82C4:pvrLenovoV14-IIL:skuLENOVO_MT_82C4_BU_idea_FM_V14-IIL:rvnLENOVO:rnLNVNB161216:rvrSDK0J40700WIN:cvnLENOVO:ct10:cvrLenovoV14-IIL:
dmi.product.family: V14-IIL
dmi.product.name: 82C4
dmi.product.sku: LENOVO_MT_82C4_BU_idea_FM_V14-IIL
dmi.product.version: Lenovo V14-IIL
dmi.sys.vendor: LENOVO
separator:

Revision history for this message
Leó Kolbeinsson (leok) wrote :
information type: Private → Public
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 _IceTransClose (ciptr=0x564e4f344d30) at /usr/include/X11/Xtrans/Xtrans.c:946
 _IceFreeConnection (iceConn=iceConn@entry=0x564e4f516430) at ../../src/shutdown.c:275
 IceCloseConnection (iceConn=iceConn@entry=0x564e4f516430) at ../../src/shutdown.c:231
 SmcCloseConnection (smcConn=0x564e4f363e30, count=count@entry=0, reasonMsgs=reasonMsgs@entry=0x0) at ../../src/sm_client.c:309
 x11_kill_cb (w=<optimized out>, userdata=0x564e4f31f990) at ../src/modules/x11/module-x11-xsmp.c:73

tags: removed: need-amd64-retrace
Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/1942685

tags: added: iso-testing
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in pulseaudio (Ubuntu):
status: New → Confirmed
tags: added: regression-release
Revision history for this message
Igor V. Kovalenko (i-garrison) wrote :

I cannot reproduce this yet. Could someone who can please collect pulseaudio daemon verbose log for this crash?

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

Could someone report the issue upstream on https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues ? it seems a problem with the new code to handle session closing correctly

Revision history for this message
Leó Kolbeinsson (leok) wrote :

Tested Xubuntu Impish daily 29-09-2021 and was unable to to reproduce the bug -

This test was on the same machine (Lenovo V14-IIL) as my initial report.

Revision history for this message
Brian Murray (brian-murray) wrote :

Pulseaudio hasn't been updated since mid-August so it'd be helpful if you were to do some additional testing leok.

Revision history for this message
Leó Kolbeinsson (leok) wrote (last edit ):

@brian-murray -

Yes I will continue to test but fyi - I have run 24 tests on Xubuntu (14 different ISO´s) since the original report without being able to reproduce the error.

Revision history for this message
Sebastien Bacher (seb128) wrote :
Changed in pulseaudio (Ubuntu):
importance: Undecided → High
status: Confirmed → Triaged
Revision history for this message
Sebastien Bacher (seb128) wrote :

Could someone having the issue set log-level=debug in /etc/pulse/daemon.conf , restart and add the journalctl log after getting the bug?

Changed in pulseaudio (Ubuntu):
status: Triaged → Fix Committed
description: updated
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Leó, or anyone else affected,

Accepted pulseaudio into impish-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/pulseaudio/1:15.0+dfsg1-1ubuntu2.1 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-impish to verification-done-impish. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-impish. 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 pulseaudio (Ubuntu Impish):
status: New → Fix Committed
tags: added: verification-needed verification-needed-impish
Revision history for this message
Leó Kolbeinsson (leok) wrote :

Hello Brian (brian-murray)

Please see my comment #9 above - i have run numerous tests on Xubuntu Impish and have been unable to reproduce this bug.

Mathew Hodson (mhodson)
Changed in pulseaudio (Ubuntu Impish):
importance: Undecided → High
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

It's a prolific crash in impish so we'll be able to tell if the fix isn't working here: https://errors.ubuntu.com/problem/877172e07ed9f86b0674cd458a5aaf24b37fb01e

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pulseaudio - 1:15.0+dfsg1-1ubuntu3

---------------
pulseaudio (1:15.0+dfsg1-1ubuntu3) jammy; urgency=medium

  * debian/patches/gitlab_ice_error.patch:
    - cherry pick an upstream candidate fix for a segfault issue in the
      session closing handling (lp: #1942685)

 -- Sebastien Bacher <email address hidden> Fri, 22 Oct 2021 12:28:32 +0200

Changed in pulseaudio (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Chris Halse Rogers (raof) wrote :

Checking https://errors.ubuntu.com/problem/877172e07ed9f86b0674cd458a5aaf24b37fb01e I see that there are no reports of this for 1:15.0+dfsg1-1ubuntu2.1 in Impish and, reassuringly, no reports of this for 1:15.0+dfsg1-1ubuntu3 in Jammy, either.

I think that's sufficient to mark this as verified.

tags: added: verification-done verification-done-impish
removed: verification-needed verification-needed-impish
Revision history for this message
Chris Halse Rogers (raof) wrote : Update Released

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

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pulseaudio - 1:15.0+dfsg1-1ubuntu2.1

---------------
pulseaudio (1:15.0+dfsg1-1ubuntu2.1) impish; urgency=medium

  * debian/patches/gitlab_ice_error.patch:
    - cherry pick an upstream candidate fix for a segfault issue in the
      session closing handling (lp: #1942685)

 -- Sebastien Bacher <email address hidden> Fri, 22 Oct 2021 12:28:32 +0200

Changed in pulseaudio (Ubuntu Impish):
status: Fix Committed → Fix Released
Changed in pulseaudio:
status: Unknown → Fix Released
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.