pasted crashed with SIGSEGV in __run_exit_handlers()

Bug #1627318 reported by dinamic
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Libertine
Status tracked in Devel
Devel
Triaged
Medium
Christopher Townsend
Trunk
Triaged
Medium
Unassigned
libertine (Ubuntu)
Triaged
Medium
Unassigned
unity8 (Ubuntu)
New
Undecided
Unassigned

Bug Description

pasted crashed with SIGSEGV in __run_exit_handlers()

ProblemType: Crash
DistroRelease: Ubuntu 16.10
Package: libertine-tools 1.4+16.10.20160908-0ubuntu1
ProcVersionSignature: Ubuntu 4.8.0-16.17-generic 4.8.0-rc7
Uname: Linux 4.8.0-16-generic x86_64
ApportVersion: 2.20.3-0ubuntu7
Architecture: amd64
Date: Sat Sep 24 14:01:54 2016
ExecutablePath: /usr/bin/pasted
InstallationDate: Installed on 2016-06-05 (110 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
ProcCmdline: pasted
SegvAnalysis:
 Segfault happened at: 0x7fdbbc18f235 <__run_exit_handlers+69>: mov (%rcx),%rdx
 PC (0x7fdbbc18f235) ok
 source "(%rcx)" (0xb14284f8c8520) not located in a known VMA region (needed readable region)!
 destination "%rdx" ok
SegvReason: reading unknown VMA
Signal: 11
SourcePackage: libertine
StacktraceTop:
 __run_exit_handlers (status=1, listp=0x7fdbbc5165d8 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at exit.c:55
 __GI_exit (status=<optimized out>) at exit.c:105
 QXcbConnection::processXcbEvents() () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
 QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
 QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
Title: pasted crashed with SIGSEGV in __run_exit_handlers()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

Revision history for this message
dinamic (dinamic6661) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 __run_exit_handlers (status=1, listp=0x7fdbbc5165d8 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at exit.c:55
 __GI_exit (status=<optimized out>) at exit.c:105
 QXcbConnection::processXcbEvents() () from /tmp/apport_sandbox_afdme9/usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
 QObject::event(QEvent*) () from /tmp/apport_sandbox_afdme9/usr/lib/x86_64-linux-gnu/libQt5Core.so.5
 QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /tmp/apport_sandbox_afdme9/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5

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 libertine (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
information type: Private → Public
Revision history for this message
Christopher Townsend (townsend) wrote :

Hi!

Thanks for taking time to enter this bug report. Do you have any idea what you may have been doing at the time when this crash occurred?

The stacktrace is not very helpful, so I'm hoping to find a reproduction case.

Thanks again!

Changed in libertine (Ubuntu):
status: New → Incomplete
Revision history for this message
dinamic (dinamic6661) wrote :

hi, i am not sure what i was doing since this bugs are reported when i boot into Unity7.

Revision history for this message
dinamic (dinamic6661) wrote :

the only think i remember is once closing firefox (installed from libertine) crashed unity8. maybe this bug happened then.. but i'm not sure :(

Revision history for this message
Christopher Townsend (townsend) wrote :

Ok, I think I reproduced the crash or a variant of the crash.

I think it's due to the aggressive behavior of Unity 8 when using the 'X' button on windows to close the app. I'll have to see if there is a way to handle this better from pasted's point of view.

Changed in libertine (Ubuntu):
status: Incomplete → Triaged
Revision history for this message
Christopher Townsend (townsend) wrote :

I should also mention that the crash is harmless since it's occurring on application shutdown, but we don't need the extra noise and crash reports, so it should be handled gracefully.

Revision history for this message
Christopher Townsend (townsend) wrote :

After some more investigation, this is just another example of the fallout of no session management in U8 desktop. What is happening is that Xmir is being killed for the X app and it's helper apps (such as pasted) are killed. So pasted is trying to access the X server when it just up and disappears. The crash is actually occurring in Qt code, so there is really nothing we can do about it.

At this point, the only solution is for U8 to have proper session management and shut things down in an orderly way when closing an app via the "X" button.

Revision history for this message
dinamic (dinamic6661) wrote :

yay! added unity8 to the bug report, maybe u8 people can help with this bug

Revision history for this message
Christopher Townsend (townsend) wrote :

I'm going to dup this bug to bug #1628589 as the crux of the problem is proper session management for Libertine X apps.

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

Other bug subscribers

Remote bug watches

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