unity-applications-daemon crashed with SIGSEGV in g_strdup()

Bug #1063300 reported by Siempie89
60
This bug affects 7 people
Affects Status Importance Assigned to Milestone
libunity
Fix Released
High
Michal Hruby
6.0
Fix Released
High
Michal Hruby
libunity (Ubuntu)
Fix Released
Medium
Unassigned
Quantal
Fix Released
Medium
Unassigned

Bug Description

[Impact]
- possible crash of lenses in some rare cases

[Testcase]
- as the crash is very rare (and probably depends on timing), there's no clear test case for this exact issue, please make sure that lenses still work as expected

[Regression potential]
- unity crashes when it is (re-)started, or when a lens is restarted

Original description:
=====================

Happened after every logon so far.
( Fresh install of Ubuntu 12.10 daily build )

ProblemType: Crash
DistroRelease: Ubuntu 12.10
Package: unity-lens-applications 6.8.0-0ubuntu1
ProcVersionSignature: Ubuntu 3.5.0-17.27-generic 3.5.5
Uname: Linux 3.5.0-17-generic i686
ApportVersion: 2.6.1-0ubuntu1
Architecture: i386
Date: Sun Oct 7 17:52:35 2012
ExecutablePath: /usr/lib/unity-lens-applications/unity-applications-daemon
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Beta i386 (20121007)
ProcCmdline: /usr/lib/unity-lens-applications/unity-applications-daemon
ProcEnviron:
 SHELL=/bin/bash
 XDG_RUNTIME_DIR=<set>
 PATH=(custom, no user)
 LANG=en_US.UTF-8
SegvAnalysis:
 Segfault happened at: 0xb6db66b6: movdqu (%edi),%xmm1
 PC (0xb6db66b6) ok
 source "(%edi)" (0x00720000) not located in a known VMA region (needed readable region)!
 destination "%xmm1" ok
SegvReason: reading unknown VMA
Signal: 11
SourcePackage: unity-lens-applications
StacktraceTop:
 ?? () from /lib/i386-linux-gnu/libc.so.6
 g_strdup () from /lib/i386-linux-gnu/libglib-2.0.so.0
 ?? () from /usr/lib/i386-linux-gnu/libunity.so.9
 unity_protocol_lens_service_activate_with_hints () from /usr/lib/i386-linux-gnu/libunity/libunity-protocol-private.so.0
 ?? () from /usr/lib/i386-linux-gnu/libunity.so.9
Title: unity-applications-daemon crashed with SIGSEGV in g_strdup()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

Related branches

Revision history for this message
Siempie89 (simon144nomis) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 g_strdup (str=0x720000 <Address 0x720000 out of bounds>) at /build/buildd/glib2.0-2.34.0/./glib/gstrfuncs.c:363
 unity_lens_impl_real_activate_with_hints_co (_data_=0x9b7f2b8) at unity-lens-private.c:2817
 unity_protocol_lens_service_activate_with_hints (self=0x99cb4c0, uri=0x9ad2e40 "", action_type=0, hints=0xb4201190, _callback_=_callback_@entry=0xb76dcc40 <unity_lens_impl_activate_ready>, _user_data_=_user_data_@entry=0x9af50c8) at protocol-lens-interface.c:403
 unity_lens_impl_real_activate_co (_data_=0x9af50c8) at unity-lens-private.c:2643
 unity_protocol_lens_service_activate (self=self@entry=0x99cb4c0, uri=uri@entry=0x9ae5be0 "", action_type=action_type@entry=0, _callback_=_callback_@entry=0xb6cfd170 <_dbus_unity_protocol_lens_service_activate_ready>, _user_data_=_user_data_@entry=0x9b27380) at protocol-lens-interface.c:393

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 unity-lens-applications (Ubuntu):
importance: Undecided → Medium
tags: removed: need-i386-retrace
Revision history for this message
Michal Hruby (mhr3) wrote :

Can't say why is the Activate() method called with empty string as the uri, but it surely shouldn't cause a crash.

affects: unity-lens-applications (Ubuntu) → libunity (Ubuntu)
Changed in libunity:
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in libunity (Ubuntu):
status: New → Confirmed
Michal Hruby (mhr3)
Changed in libunity:
importance: Undecided → High
Michal Hruby (mhr3)
Changed in libunity:
milestone: none → 7.0.0
status: Confirmed → In Progress
assignee: nobody → Michal Hruby (mhr3)
Michal Hruby (mhr3)
visibility: private → public
Changed in libunity:
status: In Progress → Fix Committed
Michal Hruby (mhr3)
description: updated
Revision history for this message
Chris Halse Rogers (raof) wrote : Please test proposed package

Hello Siempie89, or anyone else affected,

Accepted libunity into quantal-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/libunity/6.10.0-0ubuntu1 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 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 change the bug tag from verification-needed to verification-done. If it does not, change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

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

Changed in libunity (Ubuntu Quantal):
status: Confirmed → Fix Committed
tags: added: verification-needed
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

I've been running the new libunity for a week now without crashes, also restarting unity and lenses many times.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Steve Langasek (vorlon) wrote : Update Released

The verification of this Stable Release Update has completed successfully and the package has now been 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 regresssions.

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

This bug was fixed in the package libunity - 6.10.0-0ubuntu1

---------------
libunity (6.10.0-0ubuntu1) quantal-proposed; urgency=low

  * New upstream release.
    - unity-applications-daemon crashed with SIGSEGV in g_strdup()
      (LP: #1063300)
 -- Lukasz 'sil2100' Zemczak <email address hidden> Wed, 17 Oct 2012 10:46:31 +0200

Changed in libunity (Ubuntu Quantal):
status: Fix Committed → Fix Released
Changed in libunity (Ubuntu):
status: Confirmed → Fix Released
Michal Hruby (mhr3)
Changed in libunity:
status: Fix Committed → Fix Released
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.