Mir

Intermittent memory error in ClientSurfaceEvents.client_can_query_current_orientation

Bug #1335819 reported by Alexandros Frantzis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mir
Fix Released
High
Alan Griffiths
0.4
Fix Released
High
Alan Griffiths
mir (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Under certain circumstances when running ClientSurfaceEvents.client_can_query_current_orientation (and presumably other ClientSurfaceEvents.* tests) we run into a memory error.

I can reproduce this by running:

bin/mir_acceptance_tests --gtest_filter=ClientSurfaceEvents.client_can_query_current_orientation --gtest_repeat=1000

when the system is under high load (e.g. run the tests and at the same time make -j4 in another mir branch).

With address sanitizer I get (see attachment for complete output):

Note: Google Test filter = ClientSurfaceEvents.client_can_query_current_orientation
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from ClientSurfaceEvents
[ RUN ] ClientSurfaceEvents.client_can_query_current_orientation
=================================================================
==16497==ERROR: AddressSanitizer: heap-use-after-free on address 0x6040003a0178 at pc 0x7ff68ba206c5 bp 0x7fffd93df990 sp 0x7fffd93df988
READ of size 8 at 0x6040003a0178 thread T0

Tags: testsfail

Related branches

Revision history for this message
Alexandros Frantzis (afrantzis) wrote :
description: updated
Changed in mir:
status: New → In Progress
assignee: Alexandros Frantzis (afrantzis) → Alan Griffiths (alan-griffiths)
milestone: none → 0.4.0
Changed in mir:
status: In Progress → Fix Released
status: Fix Released → Fix Committed
Changed in mir:
milestone: 0.4.0 → 0.5.0
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Fix backported to the 0.4 series at:
------------------------------------------------------------
revno: 1735
committer: Cemil Azizoglu <email address hidden>
branch nick: mir-0.4.0
timestamp: Tue 2014-07-01 18:50:01 +0300
message:
  Merge r1737 and r1738 from devel.
------------------------------------------------------------

no longer affects: mir
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

mir (0.4.0+14.10.20140701.1-0ubuntu1) utopic; urgency=medium

Changed in mir (Ubuntu):
importance: Undecided → High
status: New → Fix Released
Changed in mir:
milestone: none → 0.5.0
importance: Undecided → High
status: New → Fix Committed
assignee: nobody → Alan Griffiths (alan-griffiths)
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.