Under certain circumstances when running ClientSurfaceEvents.client_can_query_current_orientation (and presumably other ClientSurfaceEvents.* tests) we run into a memory error.
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:
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
Under certain circumstances when running ClientSurfaceEv ents.client_ can_query_ current_ orientation (and presumably other ClientSurfaceEv ents.* tests) we run into a memory error.
I can reproduce this by running:
bin/mir_ acceptance_ tests --gtest_ filter= ClientSurfaceEv ents.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:
Note: Google Test filter = ClientSurfaceEv ents.client_ can_query_ current_ orientation ents.client_ can_query_ current_ orientation ======= ======= ======= ======= ======= ======= ======= ======= ==
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from ClientSurfaceEvents
[ RUN ] ClientSurfaceEv
=======
==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
More http:// paste.ubuntu. com/7725250/