Mediascanner2 test failure on yakkety/{armhf,arm64,ppc64el} with latest dbus-cpp
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dbus-cpp (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
mediascanner2 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When trying to build a new mediascanner2 release, tests failed on a number of architectures when building under Yakkety. Some relevant logs:
https:/
https:/
https:/
The failure is occurring in code not touched by the changes in the silo, and I suspect that this is related to dbus-cpp or possibly GCC 6.
The segfault doesn't occur on x86, but I was able to reproduce it on my Chromebook. Attached is a stacktrace from the test_dbus test program.
Related branches
- Michi Henning (community): Approve
- unity-api-1-bot: Approve (continuous-integration)
-
Diff: 37 lines (+13/-2)2 files modifieddebian/rules (+7/-1)
src/ms-dbus/CMakeLists.txt (+6/-1)
This is looking like a case of the code being miscompiled under optimisation. To reproduce, build mediascanner2 using the "RelWithDebInfo" build type and then run:
./test/ test_dbus --gtest_ filter= *filter_ codec
The test program segfaults when calling Variant: :as<std: :string> () on a variant that should have been initialised by reading out of a Message::Reader.
When compiling with the "Debug" build type, the test program completes without error.
I can probably solve the immediate problem in mediascanner2 by disabling optimisation for the affected file.