{"action":"opened","issue":{"url":"https://api.github.com/repos/google/googlemock/issues/193","repository_url":"https://api.github.com/repos/google/googlemock","labels_url":"https://api.github.com/repos/google/googlemock/issues/193/labels{/name}","comments_url":"https://api.github.com/repos/google/googlemock/issues/193/comments","events_url":"https://api.github.com/repos/google/googlemock/issues/193/events","html_url":"https://github.com/google/googlemock/issues/193","id":144699009,"number":193,"title":"GMock 1.6.0 - Core dump in testing::internal::FunctionMockerBase<>::AddNewExpectation","user":{"login":"pguermo","id":6735320,"avatar_url":"https://avatars.githubusercontent.com/u/6735320?v=3","gravatar_id":"","url":"https://api.github.com/users/pguermo","html_url":"https://github.com/pguermo","followers_url":"https://api.github.com/users/pguermo/followers","following_url":"https://api.github.com/users/pguermo/following{/other_user}","gists_url":"https://api.github.com/users/pguermo/gists{/gist_id}","starred_url":"https://api.github.com/users/pguermo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pguermo/subscriptions","organizations_url":"https://api.github.com/users/pguermo/orgs","repos_url":"https://api.github.com/users/pguermo/repos","events_url":"https://api.github.com/users/pguermo/events{/privacy}","received_events_url":"https://api.github.com/users/pguermo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-30T19:39:34Z","updated_at":"2016-03-30T19:39:34Z","closed_at":null,"body":"Hello,\r\n\r\nI'm facing the following core dump when running a 32bits tests with gmock 1.6.0 on linux (Debian Jessie 64bits). I wonder the object g_gmock_implicit_sequence is 0x2... Would I miss an initialisation or used gmock by a wrong way ? \r\n\r\nThanks.\r\nPatrick\r\n\r\n```\r\n#0  0x083289f6 in testing::internal::linked_ptr<testing::Expectation>::operator* (this=0x2) at ../gtest/include/gtest/internal/gtest-linked_ptr.h:174\r\n174       T& operator*() const { return *value_; }\r\n(gdb) where\r\n#0  0x083289f6 in testing::internal::linked_ptr<testing::Expectation>::operator* (this=0x2) at ../gtest/include/gtest/internal/gtest-linked_ptr.h:174\r\n#1  0x08325901 in testing::Sequence::AddExpectation (this=0x2, expectation=...) at ../src/gmock-spec-builders.cc:769\r\n#2  0x0828f233 in testing::internal::FunctionMockerBase<void (icomp::core::sp<icomp::core::Event const> const&)>::AddNewExpectation(char const*, int, std::string const&, std::tr1::tuple<testing::Matcher<icomp::core::sp<icomp::core::Event const> const&> > const&) (this=0x994d7e4, file=0x834f2bc \"/teamcity/buildarea/IComP-TRUNK-GCC49-Address-PGUERMO/core/src/test/cpp/test_check.h\", line=1304,\r\n    source_text=\"EXPECT_CALL(*mockEventBus, publish(PropertiesEventStringEq(\\\"checkmgr\\\", defCheckresult.createProperty(std::string(\\\"UNKNOWN\\\")))))\", m=...)\r\n    at /teamcity/buildarea/IComP-TRUNK-GCC49-Address-PGUERMO/development/build/make//../cpp-test/gmock/include/gmock/gmock-spec-builders.h:1520\r\n#3  0x08279345 in testing::internal::MockSpec<void (icomp::core::sp<icomp::core::Event const> const&)>::InternalExpectedAt(char const*, int, char const*, char const*) (this=0x994d808,\r\n    file=0x834f2bc \"/teamcity/buildarea/IComP-TRUNK-GCC49-Address-PGUERMO/core/src/test/cpp/test_check.h\", line=1304, obj=0x8350018 \"*mockEventBus\",\r\n    call=0x834ffb4 \"publish(PropertiesEventStringEq(\\\"checkmgr\\\", defCheckresult.createProperty(std::string(\\\"UNKNOWN\\\"))))\")\r\n    at /teamcity/buildarea/IComP-TRUNK-GCC49-Address-PGUERMO/development/build/make//../cpp-test/gmock/include/gmock/gmock-spec-builders.h:1257\r\n#4  0x0812bf26 in CheckTest::testActiveAlreadyActiveCheck (this=0x8405064 <suite_CheckTest>) at /teamcity/buildarea/IComP-TRUNK-GCC49-Address-PGUERMO/core/src/test/cpp/test_check.h:1304\r\n#5  0x08132198 in TestDescription_CheckTest_testActiveAlreadyActiveCheck::runTest (this=0x8405260 <testDescription_CheckTest_testActiveAlreadyActiveCheck>)\r\n    at /teamcity/buildarea/IComP-TRUNK-GCC49-Address-PGUERMO/core/target/generated-sources/cxxtest/test_main_gen.cpp:133\r\n#6  0x080ac1ed in CxxTest::RealTestDescription::run (this=0x8405260 <testDescription_CheckTest_testActiveAlreadyActiveCheck>)\r\n    at /teamcity/buildarea/IComP-TRUNK-GCC49-Address-PGUERMO/development/build/make//../cpp-test/cxxtest/cxxtest/RealDescriptions.cpp:100\r\n#7  0x080a2b94 in CxxTest::TestRunner::runTest (this=0xffe4c44f, td=...) at /teamcity/buildarea/IComP-TRUNK-GCC49-Address-PGUERMO/development/build/make//../cpp-test/cxxtest/cxxtest/TestRunner.h:74\r\n#8  0x080a27d3 in CxxTest::TestRunner::runSuite (this=0xffe4c44f, sd=...) at /teamcity/buildarea/IComP-TRUNK-GCC49-Address-PGUERMO/development/build/make//../cpp-test/cxxtest/cxxtest/TestRunner.h:61\r\n#9  0x080a22b8 in CxxTest::TestRunner::runWorld (this=0xffe4c44f) at /teamcity/buildarea/IComP-TRUNK-GCC49-Address-PGUERMO/development/build/make//../cpp-test/cxxtest/cxxtest/TestRunner.h:46\r\n#10 0x080a1db8 in CxxTest::TestRunner::runAllTests (listener=...) at /teamcity/buildarea/IComP-TRUNK-GCC49-Address-PGUERMO/development/build/make//../cpp-test/cxxtest/cxxtest/TestRunner.h:23\r\n#11 0x080a48ff in CxxTest::XMLPrinter::run (this=0xffe4c49c) at /teamcity/buildarea/IComP-TRUNK-GCC49-Address-PGUERMO/development/build/make//../cpp-test/cxxtest/cxxtest/XMLPrinter.h:164\r\n#12 0x080a12ed in main () at /teamcity/buildarea/IComP-TRUNK-GCC49-Address-PGUERMO/core/src/test/cpp/test_main.cpp:18\r\n(gdb) up\r\n#1  0x08325901 in testing::Sequence::AddExpectation (this=0x2, expectation=...) at ../src/gmock-spec-builders.cc:769\r\n769       if (*last_expectation_ != expectation) {\r\n(gdb) up\r\n#2  0x0828f233 in testing::internal::FunctionMockerBase<void (icomp::core::sp<icomp::core::Event const> const&)>::AddNewExpectation(char const*, int, std::string const&, std::tr1::tuple<testing::Matcher<icomp::core::sp<icomp::core::Event const> const&> > const&) (this=0x994d7e4, file=0x834f2bc \"/teamcity/buildarea/IComP-TRUNK-GCC49-Address-PGUERMO/core/src/test/cpp/test_check.h\", line=1304,\r\n    source_text=\"EXPECT_CALL(*mockEventBus, publish(PropertiesEventStringEq(\\\"checkmgr\\\", defCheckresult.createProperty(std::string(\\\"UNKNOWN\\\")))))\", m=...)\r\n    at /teamcity/buildarea/IComP-TRUNK-GCC49-Address-PGUERMO/development/build/make//../cpp-test/gmock/include/gmock/gmock-spec-builders.h:1520\r\n1520          implicit_sequence->AddExpectation(Expectation(untyped_expectation));\r\n(gdb) l\r\n1515        untyped_expectations_.push_back(untyped_expectation);\r\n1516\r\n1517        // Adds this expectation into the implicit sequence if there is one.\r\n1518        Sequence* const implicit_sequence = g_gmock_implicit_sequence.get();\r\n1519        if (implicit_sequence != NULL) {\r\n1520          implicit_sequence->AddExpectation(Expectation(untyped_expectation));\r\n1521        }\r\n1522\r\n1523        return *expectation;\r\n1524      }\r\n(gdb) p g_gmock_implicit_sequence\r\n$4 = {value_ = 0x2}\r\n(gdb) p implicit_sequence\r\n$5 = (testing::Sequence * const) 0x2\r\n(gdb)\r\n\r\n"}}