unity8-dash hangs in scopes backend

Bug #1362619 reported by Michał Sawicz
28
This bug affects 3 people
Affects Status Importance Assigned to Milestone
unity-scopes-api (Ubuntu RTM)
Invalid
Undecided
Michi Henning
unity-scopes-shell (Ubuntu RTM)
Invalid
Undecided
Pete Woods
unity8 (Ubuntu)
Invalid
High
Unassigned
unity8 (Ubuntu RTM)
Invalid
Undecided
Unassigned

Bug Description

This is a forced crash, it was unity8-dash hanging. I got it twice on startup, once during normal operation.

Most suspect are threads 12 to 22.

A `restart unity8-dash` it works again, so this is a race of some kind.

ProblemType: Crash
DistroRelease: Ubuntu RTM 14.09
Package: unity8 8.00+14.10.20140825.3-0ubuntu1
Uname: Linux 3.4.67 armv7l
ApportVersion: 2.14.6-0ubuntu2
Architecture: armhf
CurrentDesktop: Unity
Date: Thu Aug 28 13:19:11 2014
ExecutablePath: /usr/bin/unity8-dash
ExecutableTimestamp: 1408985173
InstallationDate: Installed on 2014-08-27 (0 days ago)
InstallationMedia: Ubuntu Utopic Unicorn (development branch) - armhf (20140827-202410)
ProcCmdline: unity8-dash --desktop_file_hint=/usr/share/applications/unity8-dash.desktop
ProcCwd: /home/phablet
SegvAnalysis: Skipped: missing required field "Disassembly"
Signal: 11
SourcePackage: unity8
Stacktrace:
 #0 0xb6221022 in poll () at ../sysdeps/unix/syscall-template.S:81
 No locals.
 #1 0xb5d460c0 in ?? () from /lib/arm-linux-gnueabihf/libglib-2.0.so.0
 No symbol table info available.
 Backtrace stopped: previous frame identical to this frame (corrupt stack?)
StacktraceTop:
 poll () at ../sysdeps/unix/syscall-template.S:81
 ?? () from /lib/arm-linux-gnueabihf/libglib-2.0.so.0
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dialout dip plugdev sudo tty video

Revision history for this message
Michał Sawicz (saviq) wrote :
Michał Sawicz (saviq)
description: updated
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 poll () at ../sysdeps/unix/syscall-template.S:81
 g_main_context_poll (priority=2147483647, n_fds=5, fds=0x2799690, timeout=-1, context=0x203b508) at /build/buildd/glib2.0-2.41.3/./glib/gmain.c:4029
 g_main_context_iterate (context=context@entry=0x203b508, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.41.3/./glib/gmain.c:3729
 g_main_context_iteration (context=0x203b508, may_block=1) at /build/buildd/glib2.0-2.41.3/./glib/gmain.c:3795
 QEventDispatcherGlib::processEvents (this=0x203b170, flags=...) at kernel/qeventdispatcher_glib.cpp:426

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in unity8 (Ubuntu):
importance: Undecided → Medium
tags: removed: need-armhf-retrace
Michał Sawicz (saviq)
description: updated
Michał Sawicz (saviq)
summary: - unity8-dash crashed with SIGSEGV in poll()
+ unity8-dash hangs on startup
information type: Private → Public
Revision history for this message
Michał Sawicz (saviq) wrote : Re: unity8-dash hangs on startup

And I can't reproduce this any more...

Changed in unity8 (Ubuntu RTM):
status: New → Incomplete
Changed in unity8 (Ubuntu):
status: New → Incomplete
Revision history for this message
Michał Sawicz (saviq) wrote :

Got this again now during normal operation. I don't think unity8 can do anything here, it looks like the deadlock is somewhere between scopes and zmq.

summary: - unity8-dash hangs on startup
+ unity8-dash hangs in scopes backend
description: updated
Michał Sawicz (saviq)
Changed in unity-scopes-api (Ubuntu RTM):
status: New → Confirmed
tags: added: rtm14
Changed in unity-scopes-shell (Ubuntu RTM):
status: New → Incomplete
Thomas Strehl (strehl-t)
Changed in unity-scopes-api (Ubuntu RTM):
assignee: nobody → Michi Henning (michihenning)
Changed in unity-scopes-shell (Ubuntu RTM):
assignee: nobody → Pete Woods (pete-woods)
Revision history for this message
Michi Henning (michihenning) wrote :

Hmmm... The stack traces all look normal for an idle process. It could be related to the thread starvation issue on the adapter side (which I haven't gotten back to yet), but in that case, I would have expected a timeout exception.

How long was the dash hung before you took the stack trace? More than 40 seconds or so or definitely less?

Revision history for this message
Michał Sawicz (saviq) wrote : Re: [Bug 1362619] Re: unity8-dash hangs in scopes backend

W dniu 02.09.2014 o 03:41, Michi Henning pisze:
> Hmmm... The stack traces all look normal for an idle process. It could
> be related to the thread starvation issue on the adapter side (which I
> haven't gotten back to yet), but in that case, I would have expected a
> timeout exception.
>
> How long was the dash hung before you took the stack trace? More than 40
> seconds or so or definitely less?

Oh much more than that. It was more than 10 minutes actually. I had to
download and install some dbg packages to try and find why it was stuck.

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Setting importance to high, it happens during normal operations of the device and requires a reboot.

Changed in unity8 (Ubuntu):
importance: Medium → High
Revision history for this message
taiebot65 (dedreuil) wrote :

Is it similar to the bug i have reported with weather scope? i can reproduce it every time.
https://bugs.launchpad.net/bugs/1362769

Revision history for this message
Michał Sawicz (saviq) wrote :

W dniu 08.09.2014 o 21:00, taiebot65 pisze:
> Is it similar to the bug i have reported with weather scope? i can reproduce it every time.
> https://bugs.launchpad.net/bugs/1362769

I doubt it, the one you reported seems to be related to the trust
prompt, nothing like that in this here.

I'll try and reproduce your steps again.

Revision history for this message
Michi Henning (michihenning) wrote :

The stack trace isn't all that complete. Quite a few frames are cut off. But the ones that look right are as I would expect them to be for an idle run time. There are no outgoing requests in flight, and everything is basically idle.

Saviq, any pointers as to how I might reproduce and with which image?

Revision history for this message
Michał Sawicz (saviq) wrote :

So... I've just tried reproducing this on two devices with both devel-proposed@233 and rtm-proposed@23, flashing, rebooting... I always got a fully working dash on boot...

Revision history for this message
Michał Sawicz (saviq) wrote :

I went back to rtm-proposed@17, still nothing.

Revision history for this message
Michi Henning (michihenning) wrote :

I've rebooted at least 15 times with proposed@233 and didn't see the problem :-(

Revision history for this message
Michał Sawicz (saviq) wrote :

I'm marking incomplete, jibel didn't see it either. It's not great that we don't know what happened, let's revisit this if it comes back.

Changed in unity-scopes-api (Ubuntu RTM):
status: Confirmed → Incomplete
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

I saw this on yesterdays images (cant recall if it was rtm-proposed or devel-proposed or both)
Twice saw the Unity8 starting splash when open the welcome screen and it never starts

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

I saw it with krillin rtm-proposed #25.

Revision history for this message
Andrea Cimitan (cimi) wrote :

I have this on krillin, today image

Revision history for this message
Andrea Cimitan (cimi) wrote :

and image 33 too

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

[Expired for unity8 (Ubuntu) because there has been no activity for 60 days.]

Changed in unity8 (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Michi Henning (michihenning) wrote :

No-one has seen this for months, so I'm marking as Invalid.

Changed in unity-scopes-api (Ubuntu RTM):
status: Incomplete → Invalid
Changed in unity-scopes-shell (Ubuntu RTM):
status: Incomplete → Invalid
Changed in unity8 (Ubuntu):
status: Expired → Invalid
Changed in unity8 (Ubuntu RTM):
status: Incomplete → Invalid
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.