Comment 1 for bug 1089251

Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: [clang] Multiple segfaults in test: SetSemantics/SettingDefaulImplSetFailure.

valgrind compizconfig/libcompizconfig/tests/compizconfig_test_ccs_setting
==11525== Memcheck, a memory error detector
==11525== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==11525== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==11525== Command: compizconfig/libcompizconfig/tests/compizconfig_test_ccs_setting
==11525==
Running main() from gtest_main.cc
[==========] Running 126 tests from 4 test cases.
[----------] Global test environment set-up.
[----------] 1 test from CCSSettingTest
[ RUN ] CCSSettingTest.TestMock
[ OK ] CCSSettingTest.TestMock (585 ms)
[----------] 1 test from CCSSettingTest (593 ms total)

[----------] 1 test from CCSSettingDefaultImplTest
[ RUN ] CCSSettingDefaultImplTest.Construction
[ OK ] CCSSettingDefaultImplTest.Construction (77 ms)
[----------] 1 test from CCSSettingDefaultImplTest (78 ms total)

[----------] 120 tests from SetSemantics/SettingDefaultImplSet
[ RUN ] SetSemantics/SettingDefaultImplSet.Construction/0
[ OK ] SetSemantics/SettingDefaultImplSet.Construction/0 (47 ms)
[ RUN ] SetSemantics/SettingDefaultImplSet.Construction/1
[ OK ] SetSemantics/SettingDefaultImplSet.Construction/1 (8 ms)
[ RUN ] SetSemantics/SettingDefaultImplSet.Construction/2
[ OK ] SetSemantics/SettingDefaultImplSet.Construction/2 (5 ms)
[ RUN ] SetSemantics/SettingDefaultImplSet.Construction/3
==11525== Invalid read of size 1
==11525== at 0x4C2BD02: __GI_strlen (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==11525== by 0x5D9CD65: strdup (strdup.c:42)
==11525== by 0x4872A6: (anonymous namespace)::NormalValueContainer<char const*>::getContainedValue(_CCSSettingType, boost::shared_ptr<_CCSSettingInfo> const&) (compizconfig_test_ccs_setting.cpp:501)
==11525== by 0x487598: (anonymous namespace)::TypedSetParam<char const*>::SetUpSetting(boost::function<void ()((anonymous namespace)::MockInitFuncs&)> const&) (compizconfig_test_ccs_setting.cpp:1021)
==11525== by 0x47F442: (anonymous namespace)::SettingDefaultImplSet::SetUp() (compizconfig_test_ccs_setting.cpp:1272)
==11525== by 0x4C741A: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2090)
==11525== by 0x4B6DA3: testing::Test::Run() (gtest.cc:2157)
==11525== by 0x4B7B3F: testing::TestInfo::Run() (gtest.cc:2338)
==11525== by 0x4B8168: testing::TestCase::Run() (gtest.cc:2445)
==11525== by 0x4BD0C4: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:4243)
==11525== by 0x4C7D0A: bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2090)
==11525== by 0x4BCD9D: testing::UnitTest::Run() (gtest.cc:3878)
==11525== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11525==
==11525==
==11525== Process terminating with default action of signal 11 (SIGSEGV)
==11525== Access not within mapped region at address 0x0
==11525== at 0x4C2BD02: __GI_strlen (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==11525== by 0x5D9CD65: strdup (strdup.c:42)
==11525== by 0x4872A6: (anonymous namespace)::NormalValueContainer<char const*>::getContainedValue(_CCSSettingType, boost::shared_ptr<_CCSSettingInfo> const&) (compizconfig_test_ccs_setting.cpp:501)
==11525== by 0x487598: (anonymous namespace)::TypedSetParam<char const*>::SetUpSetting(boost::function<void ()((anonymous namespace)::MockInitFuncs&)> const&) (compizconfig_test_ccs_setting.cpp:1021)
==11525== by 0x47F442: (anonymous namespace)::SettingDefaultImplSet::SetUp() (compizconfig_test_ccs_setting.cpp:1272)
==11525== by 0x4C741A: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2090)
==11525== by 0x4B6DA3: testing::Test::Run() (gtest.cc:2157)
==11525== by 0x4B7B3F: testing::TestInfo::Run() (gtest.cc:2338)
==11525== by 0x4B8168: testing::TestCase::Run() (gtest.cc:2445)
==11525== by 0x4BD0C4: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:4243)
==11525== by 0x4C7D0A: bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2090)
==11525== by 0x4BCD9D: testing::UnitTest::Run() (gtest.cc:3878)
==11525== If you believe this happened as a result of a stack
==11525== overflow in your program's main thread (unlikely but
==11525== possible), you can try to increase the size of the
==11525== main thread stack using the --main-stacksize= flag.
==11525== The main thread stack size used in this run was 8388608.
==11525==
==11525== HEAP SUMMARY:
==11525== in use at exit: 141,873 bytes in 2,060 blocks
==11525== total heap usage: 8,184 allocs, 6,124 frees, 845,361 bytes allocated
==11525==
==11525== LEAK SUMMARY:
==11525== definitely lost: 0 bytes in 0 blocks
==11525== indirectly lost: 0 bytes in 0 blocks
==11525== possibly lost: 20,779 bytes in 459 blocks
==11525== still reachable: 121,094 bytes in 1,601 blocks
==11525== suppressed: 0 bytes in 0 blocks
==11525== Rerun with --leak-check=full to see details of leaked memory
==11525==
==11525== For counts of detected and suppressed errors, rerun with: -v
==11525== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 2 from 2)
Segmentation fault (core dumped)