[jbossts-issues] [JBoss JIRA] (JBTM-1087) Investigate strspn issue

Tom Jenkinson (JIRA) jira-events at lists.jboss.org
Sat Mar 31 02:22:47 EDT 2012


Tom Jenkinson created JBTM-1087:
-----------------------------------

             Summary: Investigate strspn issue
                 Key: JBTM-1087
                 URL: https://issues.jboss.org/browse/JBTM-1087
             Project: JBoss Transaction Manager
          Issue Type: Task
      Security Level: Public (Everyone can see)
            Reporter: Tom Jenkinson
            Assignee: Michael Musgrove
             Fix For: 5.0.0.M2


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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbossts-issues mailing list