Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 5.0.0.M2
    • Component/s: Testing
    • Labels:
      None

      Description

      On some configurations we are getting strspn invalid read of size 8

      http://albany/view/Narayana+BlackTie/job/blacktie-linux64/1361/artifact/atmibroker-xatmi/target/cpp-test-classes/atmibroker-xatmi-valgrind.log
      ==32023== Invalid read of size 8
      ==32023== at 0xA151454: __strspn_sse42 (in /lib64/libc-2.12.so)
      ==32023== by 0x526337A: TAO_IIOP_Profile::parse_string_i(char const*) (OS_NS_string.inl:450)
      ==32023== by 0x523C6F8: TAO_CORBALOC_Parser::parse_string(char const*, CORBA::ORB*) (CORBALOC_Parser.cpp:214)
      ==32023== by 0x52859C1: CORBA::ORB::resolve_initial_references(char const*, ACE_Time_Value*) (ORB.cpp:943)
      ==32023== by 0x74760D8: initOrb(char*) (OrbManagement.cxx:89)
      ==32023== by 0x7E98E9A: atmibroker::tx::TxManager::TxManager() (TxManager.cxx:95)
      ==32023== by 0x7EA1C36: atmibroker::tx::OTSTxManager::OTSTxManager(char*) (OTSTxManager.cxx:37)
      ==32023== by 0x7EA1EDA: atmibroker::tx::OTSTxManager::create(char*) (OTSTxManager.cxx:47)
      ==32023== by 0x7E98967: atmibroker::tx::TxManager::get_instance() (TxManager.cxx:63)
      ==32023== by 0x7ED12F8: txManager_open() (TxManagerAvoid.cxx:23)
      ==32023== by 0x7EC05E0: tx_open (TxAvoid.cxx:53)
      ==32023== by 0x94BDB4E: AtmiBrokerServer::AtmiBrokerServer() (AtmiBrokerServer.cxx:408)
      ==32023== by 0x94BC00E: serverinit (AtmiBrokerServer.cxx:182)
      ==32023== by 0x4C39F7: BaseServerTest::startServer() (BaseServerTest.cxx:58)
      ==32023== by 0x4C3708: BaseServerTest::setUp() (BaseServerTest.cxx:46)
      ==32023== by 0x47A2E4: TestTxTPCall::setUp() (TestTxTPCall.cxx:72)
      ==32023== by 0x483D3C: CppUnit::TestCaller<TestTxTPCall>::setUp() (TestCaller.h:177)
      ==32023== by 0x3707A29B36: CppUnit::TestCaseMethodFunctor::operator()() const (TestCase.cpp:32)
      ==32023== by 0x3707A1BEA3: CppUnit::DefaultProtector::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) (DefaultProtector.cpp:15)
      ==32023== by 0x3707A25C18: CppUnit::ProtectorChain::ProtectFunctor::operator()() const (ProtectorChain.cpp:20)
      ==32023== by 0x3707A2595B: CppUnit::ProtectorChain::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) (ProtectorChain.cpp:77)
      ==32023== by 0x3707A3164F: CppUnit::TestResult::protect(CppUnit::Functor const&, CppUnit::Test*, std::string const&) (TestResult.cpp:178)
      ==32023== by 0x3707A2977F: CppUnit::TestCase::run(CppUnit::TestResult*) (TestCase.cpp:87)
      ==32023== by 0x3707A2A10B: CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) (TestComposite.cpp:64)
      ==32023== by 0x3707A2A035: CppUnit::TestComposite::run(CppUnit::TestResult*) (TestComposite.cpp:23)
      ==32023== by 0x3707A2A10B: CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) (TestComposite.cpp:64)
      ==32023== by 0x3707A2A035: CppUnit::TestComposite::run(CppUnit::TestResult*) (TestComposite.cpp:23)
      ==32023== by 0x3707A31429: CppUnit::TestResult::runTest(CppUnit::Test*) (TestResult.cpp:145)
      ==32023== by 0x3707A33A21: CppUnit::TestRunner::run(CppUnit::TestResult&, std::string const&) (TestRunner.cpp:96)
      ==32023== by 0x3707A369CA: CppUnit::TextTestRunner::run(std::string, bool, bool, bool) (TextTestRunner.cpp:64)
      ==32023== by 0x50044B: main (TestRunner.cxx:27)
      ==32023== Address 0xc135620 is 0 bytes inside a block of size 5 alloc'd
      ==32023== at 0x4C26C7E: operator new[](unsigned long, std::nothrow_t const&) (vg_replace_malloc.c:325)
      ==32023== by 0x52AACB2: CORBA::string_alloc(unsigned int) (String_Alloc.cpp:39)
      ==32023== by 0x526333E: TAO_IIOP_Profile::parse_string_i(char const*) (IIOP_Profile.cpp:214)
      ==32023== by 0x523C6F8: TAO_CORBALOC_Parser::parse_string(char const*, CORBA::ORB*) (CORBALOC_Parser.cpp:214)
      ==32023== by 0x52859C1: CORBA::ORB::resolve_initial_references(char const*, ACE_Time_Value*) (ORB.cpp:943)
      ==32023== by 0x74760D8: initOrb(char*) (OrbManagement.cxx:89)
      ==32023== by 0x7E98E9A: atmibroker::tx::TxManager::TxManager() (TxManager.cxx:95)
      ==32023== by 0x7EA1C36: atmibroker::tx::OTSTxManager::OTSTxManager(char*) (OTSTxManager.cxx:37)
      ==32023== by 0x7EA1EDA: atmibroker::tx::OTSTxManager::create(char*) (OTSTxManager.cxx:47)
      ==32023== by 0x7E98967: atmibroker::tx::TxManager::get_instance() (TxManager.cxx:63)
      ==32023== by 0x7ED12F8: txManager_open() (TxManagerAvoid.cxx:23)
      ==32023== by 0x7EC05E0: tx_open (TxAvoid.cxx:53)
      ==32023== by 0x94BDB4E: AtmiBrokerServer::AtmiBrokerServer() (AtmiBrokerServer.cxx:408)
      ==32023== by 0x94BC00E: serverinit (AtmiBrokerServer.cxx:182)
      ==32023== by 0x4C39F7: BaseServerTest::startServer() (BaseServerTest.cxx:58)
      ==32023== by 0x4C3708: BaseServerTest::setUp() (BaseServerTest.cxx:46)
      ==32023== by 0x47A2E4: TestTxTPCall::setUp() (TestTxTPCall.cxx:72)
      ==32023== by 0x483D3C: CppUnit::TestCaller<TestTxTPCall>::setUp() (TestCaller.h:177)
      ==32023== by 0x3707A29B36: CppUnit::TestCaseMethodFunctor::operator()() const (TestCase.cpp:32)
      ==32023== by 0x3707A1BEA3: CppUnit::DefaultProtector::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) (DefaultProtector.cpp:15)
      ==32023== by 0x3707A25C18: CppUnit::ProtectorChain::ProtectFunctor::operator()() const (ProtectorChain.cpp:20)
      ==32023== by 0x3707A2595B: CppUnit::ProtectorChain::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) (ProtectorChain.cpp:77)
      ==32023== by 0x3707A3164F: CppUnit::TestResult::protect(CppUnit::Functor const&, CppUnit::Test*, std::string const&) (TestResult.cpp:178)
      ==32023== by 0x3707A2977F: CppUnit::TestCase::run(CppUnit::TestResult*) (TestCase.cpp:87)
      ==32023== by 0x3707A2A10B: CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) (TestComposite.cpp:64)
      ==32023== by 0x3707A2A035: CppUnit::TestComposite::run(CppUnit::TestResult*) (TestComposite.cpp:23)
      ==32023== by 0x3707A2A10B: CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) (TestComposite.cpp:64)
      ==32023== by 0x3707A2A035: CppUnit::TestComposite::run(CppUnit::TestResult*) (TestComposite.cpp:23)
      ==32023== by 0x3707A31429: CppUnit::TestResult::runTest(CppUnit::Test*) (TestResult.cpp:145)
      ==32023== by 0x3707A33A21: CppUnit::TestRunner::run(CppUnit::TestResult&, std::string const&) (TestRunner.cpp:96)
      ==32023== by 0x3707A369CA: CppUnit::TextTestRunner::run(std::string, bool, bool, bool) (TextTestRunner.cpp:64)
      ==32023== by 0x50044B: main (TestRunner.cxx:27)

      I tracked this down to a known issue:
      http://sourceforge.net/mailarchive/forum.php?thread_name=201111140845.37008.jseward%40acm.org&forum_name=valgrind-users
      The question I have, is is it valgrind, or is it the underlying strspn. I think it is the later as the build wouldn't fail if it was just a spurious report from VG.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tomjenkinson Thomas Jenkinson
                  Reporter:
                  tomjenkinson Thomas Jenkinson
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: