package-built mir_demo_server does not start on device

Bug #1577357 reported by Kevin DuBois
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released
Alexandros Frantzis
mir (Ubuntu)

Bug Description

when running the packaged mir_demo_server:

root@ubuntu-phablet:/home/phablet/mir/binln -s /usr/local/lib/mir /home/phablet/mir/lib/mir/^C
root@ubuntu-phablet:/home/phablet/mir/bin# mir_demo_server
[2016-05-02 06:43:48.502123] mirplatform: Found graphics driver: mir:android (version 0.23.0)
[2016-05-02 06:43:48.506548] mirserver: Starting
[2016-05-02 06:43:48.508196] mircommon: Loading modules from: /usr/lib/arm-linux-gnueabihf/mir/server-platform
[2016-05-02 06:43:48.508959] mircommon: Loading module: /usr/lib/arm-linux-gnueabihf/mir/server-platform/graphics-android.so.9
[2016-05-02 06:43:48.509691] mircommon: Loading module: /usr/lib/arm-linux-gnueabihf/mir/server-platform/input-evdev.so.5
[2016-05-02 06:43:48.513048] mirplatform: Found graphics driver: mir:android (version 0.23.0)
[2016-05-02 06:43:48.514024] mirserver: Selected driver: mir:android (version 0.23.0)
ERROR: Dynamic exception type: St12system_error
std::exception::what: Enable multithreading to use std::thread: Operation not permitted


running a built-and-copied over mir_demo_server works, and the packaged mir_proving_server also starts.

Related branches

Revision history for this message
Kevin DuBois (kdub) wrote :

root@ubuntu-phablet:/home/phablet/mir23# ldd /usr/bin/mir_demo_server
 libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6ead000)
 libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb6e99000)
 libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0xb6ddf000)
 libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb6db6000)
 /lib/ld-linux-armhf.so.3 (0xb6fae000)
 libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb6d41000)

Revision history for this message
Kevin DuBois (kdub) wrote :

seems like its related to our workaround for GoldBug16417? (or perhaps the workaround has stopped working around)

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Looks like a link to libpthread is missing too. I would have expected g++ to provide that automatically but the error message suggests otherwise.

Changed in mir:
milestone: 0.23.0 → 0.24.0
Revision history for this message
Kevin DuBois (kdub) wrote :

removed as something that will be corrected in mir 0.23.

no longer affects: mir/0.23
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

It's the linkage to libpthread that matters. The following "works":

    $ LD_PRELOAD=libpthread.so.0 mir_demo_server

...it appears that GoldBug16417Workaround is not effective when using sbuild.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I'm still kind of used to having to link to -lpthread explicitly. If the C++ compiler has decided to not do this for us, it's still a trivial fix to our makefiles.

Changed in mir:
milestone: 0.24.0 → none
Changed in mir:
assignee: nobody → Alexandros Frantzis (afrantzis)
Revision history for this message
Mir CI Bot (mir-ci-bot) wrote :

Fix committed into lp:mir at revision None, scheduled for release in mir, milestone 0.24.0

Changed in mir:
status: New → Fix Committed
Changed in mir:
milestone: none → 0.24.0
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (5.7 KiB)

This bug was fixed in the package mir - 0.24.0+16.10.20160815.3-0ubuntu1

mir (0.24.0+16.10.20160815.3-0ubuntu1) yakkety; urgency=medium

  * New upstream release 0.24.0 (https://launchpad.net/mir/+milestone/0.24.0)
    - ABI summary:
      . mirclient ABI unchanged at 9
      . mirserver ABI bumped to 41
      . mircommon ABI unchanged at 6
      . mirplatform ABI bumped to 12
      . mirprotobuf ABI unchanged at 3
      . mirplatformgraphics ABI bumped to 10
      . mirclientplatform ABI unchanged at 5
      . mirinputplatform ABI unchanged at 5
    - Enhancements:
      . Added a new tool 'mirvanity' which can use a high speed video camera
        to measure client-to-screen latency.
      . Added (build-time) support for desktop full OpenGL servers (disabled
        by default in favor of GLESv2).
      . Introduced new buffer semantics (NBS) and enabled it by default.
      . Avoided using libmirserver in mir_demo_standalone_render_overlays,
        making bringup traces less cluttered.
      . Removed TilingWindowManager from example servers.
      . Added two new mir_*_performance_test tools that are run as part of
      . Added pointer confinement to the client API.
      . Added new platform supporting software EGLStreams.
      . Added an input platform that the nested server can use.
      . Allow configuration of the application_not_responding_detector
      . Handle server-side keymapping using XKBMapper.
      . Remove the offscreen display.
      . Add callback option to notify shells that the server is about to stop.
      . Add logging for ANativeWindow events on Android.
    - Bugs fixed:
      . usage of std:call_once in mirclient causes TLS collisions with some
        android devices (LP: #1599867)
      . AltGr not working on external keyboards (LP: #1565236)
      . [regression] unity8 fails to start when built with 0.24 series (lp:mir)
        (LP: #1597717)
      . CI failure in MirSurfaceVisibilityEvent.exposed_received_when_surface_
        raised_over_occluding_surface [called twice - over-saturated and active]
        (LP: #1556045)
      . package-built mir_demo_server does not start on device (LP: #1577357)
      . During surface creation, first stream in spec becomes default stream.
        (LP: #1577967)
      . mouse is getting stuck on a phantom edge (LP: #1580774)
      . [testsfail] in MirSurfaceVisibilityEvent.exposed_received_when_surface_
        raised_over_occluding_surface [never called] (LP: #1581385)
      . [enhancement] Add support for full OpenGL compositing (LP: #1420581)
      . [testsfail] ServerSignal.terminate_handler_is_called_for_SIGINT|SIGTERM
        (LP: #1570353)
      . [testsfail] ClientLatency.triple_buffered_client_has_less_than_two_
        frames_latency (LP: #1576690)
      . [testsfail] NestedServer.when_monitor_plugged_in_client_is_notified_of_
        new_display_configuration (LP: #1576760)
      . mir server crashed in what(): drmModeMoveCursor failed (returned -13)
        (LP: #1579630)
      . mirtest-dev is hard to use as the objects used are compiled with LTO
        (LP: #1583536)
      . [testsfail] ClientLogging.repo...


Changed in mir (Ubuntu):
status: New → Fix Released
Changed in mir:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers