unity8 crashed with SIGSEGV in glDeleteTextures() from mir::scene::GLPixelBuffer::~GLPixelBuffer() from mir::scene::ThreadedSnapshotStrategy::~ThreadedSnapshotStrategy()

Bug #1256360 reported by Michał Sawicz
34
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Mir
Fix Released
Critical
Alberto Aguirre
mir (Ubuntu)
Fix Released
Critical
Daniel van Vugt
unity8 (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Crash on shutdown.

ProblemType: Crash
DistroRelease: Ubuntu 14.04
Package: unity8 7.84+14.04.20131128.2-0ubuntu1
Uname: Linux 3.4.0-3-mako armv7l
ApportVersion: 2.12.7-0ubuntu1
Architecture: armhf
CurrentDesktop: Unity
Date: Fri Nov 29 16:02:27 2013
Disassembly: => 0x7ef7f444: Cannot access memory at address 0x7ef7f444
ExecutablePath: /usr/bin/unity8
ExecutableTimestamp: 1385663291
InstallationDate: Installed on 2013-11-29 (0 days ago)
InstallationMedia: Ubuntu Trusty Tahr (development branch) - armhf (20131129)
ProcCmdline: unity8
ProcCwd: /home/phablet
Signal: 11
SourcePackage: unity8
StacktraceSource:
 #0 0x7ef7f444 in ?? ()
 #1 0x4176c786 in ?? ()
 #2 0x4176c786 in ?? ()
StacktraceTop:
 ?? ()
 ?? ()
 ?? ()
Title: unity8 crashed with SIGSEGV in glDeleteTextures()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm autopilot cdrom dialout dip nopasswdlogin plugdev sudo tty video

Related branches

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

StacktraceTop:
 ?? ()
 glDeleteTextures (n=1, textures=0x16d8ff0) at glesv2.c:404
 mir::scene::GLPixelBuffer::~GLPixelBuffer() () from /tmp/apport_sandbox_so0491/usr/lib/arm-linux-gnueabihf/libmirserver.so.11
 mir::scene::ThreadedSnapshotStrategy::~ThreadedSnapshotStrategy() () from /tmp/apport_sandbox_so0491/usr/lib/arm-linux-gnueabihf/libmirserver.so.11
 mir::scene::ApplicationSession::~ApplicationSession() () from /tmp/apport_sandbox_so0491/usr/lib/arm-linux-gnueabihf/libmirserver.so.11

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 unity8 (Ubuntu):
importance: Undecided → Medium
tags: removed: need-armhf-retrace
Michał Sawicz (saviq)
information type: Private → Public
Revision history for this message
Gerry Boland (gerboland) wrote : Re: unity8 crashed with SIGSEGV in glDeleteTextures()

Attaching Mir project as possible race condition there

summary: - unity8 crashed with SIGSEGV in glDeleteTextures()
+ unity8 crashed with SIGSEGV in glDeleteTextures() from
+ mir::scene::GLPixelBuffer::~GLPixelBuffer() from
+ mir::scene::ThreadedSnapshotStrategy::~ThreadedSnapshotStrategy()
kevin gunn (kgunn72)
Changed in mir:
assignee: nobody → Alexandros Frantzis (afrantzis)
importance: Undecided → Medium
importance: Medium → High
status: New → Triaged
Revision history for this message
kevin gunn (kgunn72) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Incomplete. There have not been any recurrences/duplicates reported.

Changed in mir:
status: Triaged → Incomplete
Michał Sawicz (saviq)
Changed in unity8 (Ubuntu):
status: New → Incomplete
Changed in unity8:
status: New → Incomplete
Changed in mir:
status: Incomplete → New
Changed in unity8 (Ubuntu):
status: Incomplete → New
Changed in unity8:
status: Incomplete → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in unity8 (Ubuntu):
status: New → Confirmed
kevin gunn (kgunn72)
Changed in mir:
assignee: Alexandros Frantzis (afrantzis) → Alberto Aguirre (albaguirre)
Revision history for this message
kevin gunn (kgunn72) wrote :

Probably worth mentioning, just recently seen & described here
https://bugs.launchpad.net/ubuntu/+source/unity8/+bug/1302550
which was duplicated (so, don't be fooled that this was fixed, we're considering this an active bug)

Some summary from IRC
 its an issue because unity8 is exited for our AP testing
go "while true; do restart unity8; done" you should hit the issue after a few times * see note
obvious issue for debugging is that it's running under upstart, you might want to run it under gdb, so `stop unity8`, export MIR_ things (you can check which in initctl get-env --global | grep MIR), and then loop it under gdb
SIGILL on startup is expected, so you might go "gdb -ex run -ex continue unity8"

* note: some discussion about just starting/stopping unity8 might not reproduce it. Since you need an app to be running to invoke screenshots - but saviq thinks he saw it just looping unity8 too.

Changed in mir:
status: New → Confirmed
importance: High → Critical
Changed in mir:
milestone: none → 0.1.9
status: Confirmed → In Progress
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:mir/devel at revision None, scheduled for release in mir, milestone Unknown

Changed in mir:
status: In Progress → Fix Committed
Changed in mir (Ubuntu):
status: New → Triaged
importance: Undecided → Critical
Changed in mir (Ubuntu):
assignee: nobody → Daniel van Vugt (vanvugt)
status: Triaged → In Progress
Revision history for this message
Selene ToyKeeper (toykeeper) wrote :

I got a nice unity8 crash in image 294, by running "/etc/init.d/lightdm stop", on the first try. (stop/start/restart unity8 is doing nothing though, since upstart claims it's an unknown job)

tags: added: r294
Revision history for this message
Selene ToyKeeper (toykeeper) wrote :

... and with packages from silo 005, I'm not getting this crash any more. Quite a few packages were updated though, so it may take a little while to finish testing.

Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (3.6 KiB)

This bug was fixed in the package mir - 0.1.8+14.04.20140411-0ubuntu1

---------------
mir (0.1.8+14.04.20140411-0ubuntu1) trusty; urgency=medium

  [ Daniel van Vugt ]
  * New upstream release 0.1.8 (https://launchpad.net/mir/+milestone/0.1.8)
    - mirclient ABI unchanged, still at 7. Clients do not need rebuilding.
    - mirserver ABI bumped to 18. Shells need rebuilding.
    - Server API changes affecting shells:
      . GLRenderer::tessellate() changed syntax.
      . graphics::Platform::create_display() has a new parameter allowing you
        to customize the compositor's (E)GL configutation.
      . Renderable::buffer(unsigned long frameno) is now:
        Renderable::buffer(void const* user_id). See below.
      . Renderable::should_be_rendered_in() is replaced by a more natural:
        Renderable::visble()
      . input::Surface::name() returns by value instead of reference now,
        to ensure future thread safety.
    - Switched EventHub device enumeration and hotplug to Udev. NOTE! This
      means mir_test_* can't run natively on touch devices any more without
      some setup first:
        sudo mount -o remount,rw /
        sudo apt-get update
        sudo apt-get install -y umockdev
        umockdev-run -- bin/mir_unit_tests
    - Added logging for HWC events.
    - Continued consolidation of Surface classes toward a simpler architecture.
    - Introduced "RenderableList" as the way to sample the Scene contents,
      and started using that in the default compositor.
    - Introduced physical length units and conversion (geometry::Length) in
      preparation for arbitrary DPI rendering.
    - Added some decorations to demo-shell; shadows and basic title bars, all
      anti-aliased and high-DPI scalable.
    - Multi-monitor frame sync has been redesigned to eliminate the need for
      frame number tracking.
    - Bugs (and enhancements) resolved:
      . [enhancement] Please move input detection to libudev (LP: #1237784)
      . [enhancement] Add a clamping resize mode to GLRenderer (LP: #1259887)
      . [regression] Intermittent loss of multimonitor frame sync
        (LP: #1290306)
      . [enhancement] Make GL config options configurable (LP: #1290780)
      . memcheck-test doesn't test anything when DISABLED_GTEST_DISCOVERY is
        enabled (LP: #1291876)
      . "Error opening DRM device" is always followed by "Unknown error -(some
        negative number)" (LP: #1292384)
      . Rendering/composition gets stopped early (LP: #1293896)
      . Ubuntu Touch Settings and terminal apps are not rendering correctly on
        rotate. (LP: #1294048)
      . [regression] Apps are much slower to open (LP: #1294051)
      . Settings app opens to a blank screen unless given enough time to render
        or the app is touched (LP: #1294053)
      . TestClientInput/DemoPrivateProtobuf memory leak is causing regular CI
        test failures (LP: #1295231)
      . OSK touch events "fall through" and hit surface behind them
        (LP: #1297878)
      . [enhancement] add a test for composite of last client post
        (LP: #1298596)
      . [regression] Surfaces vanish as soon as their edges touch the edge of
        screen (L...

Read more...

Changed in mir (Ubuntu):
status: In Progress → Fix Released
Changed in mir:
status: Fix Committed → Fix Released
Andrea Cimitan (cimi)
Changed in unity8:
status: New → Invalid
Changed in unity8 (Ubuntu):
status: Confirmed → Invalid
Michał Sawicz (saviq)
no longer affects: unity8
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.