Mir

CI segfault in mir-mediumtests-runner-mako in client tests

Bug #1502896 reported by Alexandros Frantzis
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Mir
Fix Released
High
Alan Griffiths
mir (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

https://jenkins.qa.ubuntu.com/job/mir-mediumtests-runner-mako/6883/consoleFull:

/bin/bash: line 1: 6408 Segmentation fault mir_demo_server --test-client /usr/bin/mir_demo_client_fingerpaint

Other recent CI failures that could be related:

https://jenkins.qa.ubuntu.com/job/mir-mediumtests-runner-mako/6874/console

[ RUN ] GLMark2Test.benchmark_fullscreen_default
[1444017567.936891] mirplatform: Found graphics driver: android
[1444017567.937715] mirplatform: Found graphics driver: mesa-kms
[1444017567.937867] mirplatform: Found graphics driver: mesa-x11
[1444017567.938630] mirplatform: Found graphics driver: dummy
/bin/bash: line 1: 5759 Segmentation fault (core dumped) umockdev-run -- mir_performance_tests

And also:

https://bugs.launchpad.net/mir/+bug/1502782

Tags: mako testsfail

Related branches

tags: added: testsfail
Revision history for this message
Alexandros Frantzis (afrantzis) wrote :

https://bugs.launchpad.net/mir/+bug/1503281 could be another instance of this problem

Revision history for this message
Alexandros Frantzis (afrantzis) wrote :

Another instance https://jenkins.qa.ubuntu.com/job/mir-mediumtests-runner-mako/6901/console

/bin/bash: line 1: 6423 Segmentation fault mir_demo_server --test-client /usr/bin/mir_demo_client_fingerpaint
+ mir_rc=-1

Changed in mir:
importance: Undecided → High
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :
Changed in mir:
status: New → Confirmed
Revision history for this message
Andreas Pokorny (andreas-pokorny) wrote :
Download full text (5.3 KiB)

I can reproduce that with krillin here.. and on mx4 I sometimes get it to hang during shutdown..

hread 1 (Thread 0xb6f5e000 (LWP 21998)):
#0 0xb6e59d44 in __libc_do_syscall ()
   from /lib/arm-linux-gnueabihf/libpthread.so.0
No symbol table info available.
#1 0xb6e556b0 in pthread_cond_wait@@GLIBC_2.4 ()
   from /lib/arm-linux-gnueabihf/libpthread.so.0
No symbol table info available.
#2 0xb6ee56e4 in std::condition_variable::wait(std::unique_lock<std::mutex>&)
    () from /usr/lib/arm-linux-gnueabihf/libstdc++.so.6
No symbol table info available.
#3 0xb69d18e2 in std::condition_variable::wait<std::__future_base::_State_baseV2::wait()::{lambda()#1}>(std::unique_lock<std::mutex>&, std::__future_base::_State_baseV2::wait()::{lambda()#1}) (this=0x1d2420, __lock=..., __p=...)
---Type <return> to continue, or q <return> to quit---
    at /usr/arm-linux-gnueabihf/include/c++/4.9.3/condition_variable:98
No locals.
#4 0xb69d0ec6 in std::__future_base::_State_baseV2::wait (this=0x1d2400)
    at /usr/arm-linux-gnueabihf/include/c++/4.9.3/future:323
        __lock = {_M_device = 0x1d2408, _M_owns = true}
#5 0xb69d26bc in std::__basic_future<void>::wait (this=0x1d9a78)
    at /usr/arm-linux-gnueabihf/include/c++/4.9.3/future:596
No locals.
#6 0xb6a5c446 in mir::compositor::MultiThreadedCompositor::destroy_compositing_threads (this=0x1ce5f8)
    at /home/andreas/mir/load-all-platforms/src/server/compositor/multi_threaded_compositor.cpp:341
        f = @0x1d9a78: {<std::__basic_future<void>> = {<std::__future_base> = {<No data fields>},
            _M_state = std::shared_ptr (count 2, weak 0) 0x1d2400}, <No data fields>}
        __for_range = std::vector of length 1, capacity 1 = {
          {<std::__basic_future<void>> = {<std::__future_base> = {<No data fields>}, _M_state = std::shared_ptr (count 2, weak 0) 0x1d2400}, <No data fields>}}
        __for_begin = {<std::__basic_future<void>> = {<std::__future_base> = {<No data fields>},
            _M_state = std::shared_ptr (count 2, weak 0) 0x1d2400}, <No data fields>}
---Type <return> to continue, or q <return> to quit---
        __for_end = {<std::__basic_future<void>> = {<std::__future_base> = {<No data fields>},
            _M_state = <error reading variable: Cannot access memory at address 0x15>}, <No data fields>}
#7 0xb6a5c15e in mir::compositor::MultiThreadedCompositor::stop (
    this=0x1ce5f8)
    at /home/andreas/mir/load-all-platforms/src/server/compositor/multi_threaded_compositor.cpp:307
        started = mir::compositor::CompositorState::started
        cleanup_if_unwinding = {unwind = {__this = 0x1ce5f8}}
#8 0xb6967c72 in mir::DisplayServer::run (this=0xbebc41e8)
    at /home/andreas/mir/load-all-platforms/src/server/display_server.cpp:206
        server = @0x16aa50: {emergency_cleanup =
    std::shared_ptr (count 2, weak 2) 0x16a284, graphics_platform =
    std::shared_ptr (count 1, weak 1) 0x16df64,
          display = std::shared_ptr (count 6, weak 1) 0x16e074,
          input_dispatcher = std::shared_ptr (count 2, weak 1) 0x1b8410,
          compositor = std::shared_ptr (count 2, weak 1) 0x1ce5f8, connector =
    std::shared_ptr (count 1, weak 1) 0x1cee2c,
          p...

Read more...

Changed in mir:
assignee: nobody → Andreas Pokorny (andreas-pokorny)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:mir at revision 3006, scheduled for release in mir, milestone 0.18.0

Changed in mir:
status: Confirmed → Fix Committed
Changed in mir:
milestone: none → 0.17.0
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Just missed the branching of 0.17

Changed in mir:
milestone: 0.17.0 → 0.18.0
Revision history for this message
Andreas Pokorny (andreas-pokorny) wrote :

The problem still exists. It just seems to happen less frequently:
https://jenkins.qa.ubuntu.com/job/mir-mediumtests-runner-touch/6986/console

Changed in mir:
status: Fix Committed → Confirmed
Changed in mir:
assignee: Andreas Pokorny (andreas-pokorny) → nobody
tags: added: mako
Revision history for this message
Andreas Pokorny (andreas-pokorny) wrote :

Another recent example now with the mir_client_basic: https://jenkins.qa.ubuntu.com/job/mir-mediumtests-runner-touch/7015/console

Revision history for this message
Andreas Pokorny (andreas-pokorny) wrote :

set to commited tsince we do have two other bugs to track similar behavior.

Changed in mir:
status: Confirmed → Fix Committed
Revision history for this message
Andreas Pokorny (andreas-pokorny) wrote :

Look for lp:1506137 which also mentions the above scenario with mir_client_basic.

Changed in mir:
assignee: nobody → Alan Griffiths (alan-griffiths)
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (6.3 KiB)

This bug was fixed in the package mir - 0.18.0+16.04.20151216.1-0ubuntu1

---------------
mir (0.18.0+16.04.20151216.1-0ubuntu1) xenial; urgency=medium

  [ Kevin DuBois ]
  * New upstream release 0.18.0 (https://launchpad.net/mir/+milestone/0.18.0)
    - ABI summary: Only servers need rebuilding;
      . Mirclient ABI unchanged at 9
      . Mirserver ABI bumped to 36
      . Mircommon ABI unchanged at 5
      . Mirplatform ABI unchanged at 11
      . Mirprotobuf ABI unchanged at 3
      . Mirplatformgraphics ABI bumped to 7
      . Mirclientplatform ABI unchanged at 3
      . Mirinputplatform ABI added. Current version is 4
    - Enhancements:
      . Use libinput by default, and remove the android input stack
      . Add x11 input probing
      . Add alternative buffer swapping mechanism internally, available with
        --nbuffers 0
      . Automatic searching and selection of input platforms
      . Better support for themed cursors
      . Add demo client that uses multiple buffer streams in one surface
      . Improve fingerpaint demo to use touch pressure
      . Allow for configuring cursor acceleration, scroll speed and left or
        right handed mice
      . Allow for setting a base display configuration via client api
      . Various nested server multimonitor fixes and stability improvements
      . Remove DepthId from the SurfaceStack
    - Bug fixes:
      . Unit test failures in Display.* on Android (LP: #1519276)
      . Build failure due to missing dependency of client rpc code on mir
        protobuf (LP: #1518372)
      . Test failure in
        NestedServer.display_configuration_reset_when_application_exits
        (LP: #1517990)
      . CI test failures in various NesterServer tests (LP: #1517781)
      . FTBFS with -DMIR_PLATFORM=android (LP: #1517532)
      . Nesting Mir servers with assorted display configs causes lockup
        (LP: #1516670)
      . [testsfail] RaiseSurfaces.motion_events_dont_prevent_raise
        (LP: #1515931)
      . CI test failures in GLMark2Test (LP: #1515660)
      . Shells that inject user input events need to agree with the system
        compositor on the clock to use (LP: #1515515)
      . mircookie-dev is missing nettle-dev dependency (LP: #1514391)
      . Segmentation fault on server shutdown with mesa-kms (LP: #1513901)
      . mircookie requires nettle but libmircookie-dev doesn't depend on it
        (LP: #1513792)
      . libmircookie1 package does not list libnettle as dependency
        (LP: #1513225)
      . display configuration not reset when application exits (LP: #1511798)
      . unplugging external monitor causes nested server to throttle client
        (LP: #1511723)
      . 1/2 screen on external monitor (LP: #1511538)
      . unity-system-compositor crash, no interaction on windowed mode
        (LP: #1511095)
      . [regression] arm64/powerpc cross compile doesn't build any more
        (LP: #1510778)
      . mir_connection_get_egl_pixel_format() crashes if libEGL is loaded
        RTLD_LAZY (LP: #1510218)
      . [multimonitor] nested server surface positioning incorrect
        (LP: #1506846)
      . unity-system-compositor fails to build against lp:mir r3027
   ...

Read more...

Changed in mir (Ubuntu):
status: New → Fix Released
Kevin DuBois (kdub)
Changed in mir:
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.