{"action":"created","issue":{"url":"https://api.github.com/repos/mtconnect/cppagent/issues/16","labels_url":"https://api.github.com/repos/mtconnect/cppagent/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/mtconnect/cppagent/issues/16/comments","events_url":"https://api.github.com/repos/mtconnect/cppagent/issues/16/events","html_url":"https://github.com/mtconnect/cppagent/issues/16","id":53964020,"number":16,"title":"Tests failing","user":{"login":"Ghost-script","id":1991934,"avatar_url":"https://avatars.githubusercontent.com/u/1991934?v=3","gravatar_id":"","url":"https://api.github.com/users/Ghost-script","html_url":"https://github.com/Ghost-script","followers_url":"https://api.github.com/users/Ghost-script/followers","following_url":"https://api.github.com/users/Ghost-script/following{/other_user}","gists_url":"https://api.github.com/users/Ghost-script/gists{/gist_id}","starred_url":"https://api.github.com/users/Ghost-script/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ghost-script/subscriptions","organizations_url":"https://api.github.com/users/Ghost-script/orgs","repos_url":"https://api.github.com/users/Ghost-script/repos","events_url":"https://api.github.com/users/Ghost-script/events{/privacy}","received_events_url":"https://api.github.com/users/Ghost-script/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-10T16:59:58Z","updated_at":"2015-01-11T00:13:01Z","closed_at":null,"body":"While running the tests i am getting errors. Running on Fedora 21, gcc 4.9.2\r\nSteps followed:\r\n\r\n1. cmake . (in cppagent/)\r\n\r\n2. make (in cppagent/)\r\n\r\n3. ./agent_test (in cppgent/test/)\r\n\r\n[subho@localhost] test $ (master) ./agent_test \r\nAdapterTest::testAdapter : OK\r\nAgentTest::testConstructor  104 ERROR [0] xml.parser: XML: I/O \r\n  104 ERROR [0] xml.parser: XML: warning : \r\n  104 ERROR [0] xml.parser: XML: failed to load external entity \"../samples/badPath.xml\"\r\n\r\n  104 FATAL [0] agent: Error loading xml configuration: ../samples/badPath.xml\r\n  104 FATAL [0] agent: Error detail: XML Error at /home/subho/work/github/cppagent/agent/xml_parser.cpp(74): mDoc = xmlReadFile(aPath.c_str(), NULL, XML_PARSE_NOBLANKS)\r\nXML Error at /home/subho/work/github/cppagent/agent/xml_parser.cpp(74): mDoc = xmlReadFile(aPath.c_str(), NULL, XML_PARSE_NOBLANKS)\r\n : OK\r\nAgentTest::testBadPath : OK\r\nAgentTest::testProbe : OK\r\nAgentTest::testBadXPath  116 ERROR [0] xml.parser: XML: Invalid expression\r\n\r\n  116 ERROR [0] xml.parser: XML: Invalid expression\r\n\r\n  116 ERROR [0] xml.parser: XML: Invalid expression\r\n\r\n  116 ERROR [0] xml.parser: XML: Invalid predicate\r\n\r\n  116 ERROR [0] xml.parser: XML: Invalid expression\r\n\r\n : OK\r\nAgentTest::testXPath : OK\r\nAgentTest::testBadCount : OK\r\nAgentTest::testBadFreq : OK\r\nAgentTest::testGoodPath : OK\r\nAgentTest::testEmptyStream : OK\r\nAgentTest::testBadDevices : OK\r\nAgentTest::testAddAdapter : OK\r\nAgentTest::testAddToBuffer : OK\r\nAgentTest::testAdapter : OK\r\nAgentTest::testCurrentAt : OK\r\nAgentTest::testCurrentAt64 : OK\r\nAgentTest::testCurrentAtOutOfRange : OK\r\nAgentTest::testSampleAtNextSeq : OK\r\nAgentTest::testAdapterCommands : OK\r\nAgentTest::testFileDownload : OK\r\nAgentTest::testFailedFileDownload  410 ERROR [0] agent: Cannot register file: ./BadFileName.xsd: Unable to find file ./BadFileName.xsd\r\n : OK\r\nAgentTest::testDuplicateCheck : OK\r\nAgentTest::testAutoAvailable : OK\r\nAgentTest::testIgnoreTimestamps : OK\r\nAgentTest::testAssetStorage : OK\r\nAgentTest::testAssetError : OK\r\nAgentTest::testAssetBuffer : OK\r\nAgentTest::testPut : OK\r\nAgentTest::testPutBlocking : OK\r\nAgentTest::testPutBlockingFrom : OK\r\nAgentTest::testAdapterAddAsset : OK\r\nAgentTest::testMultiLineAsset : OK\r\nAgentTest::testAssetProbe : OK\r\nAgentTest::testAssetStorageWithoutType : OK\r\nAgentTest::testStreamData : OK\r\nAgentTest::testSequenceNumberRollover : OK\r\nAgentTest::testSampleCount : OK\r\nAgentTest::testStreamDataObserver : OK\r\nAgentTest::testFailWithDuplicateDeviceUUID 3665 ERROR [0] xml.parser: XML: I/O \r\n 3665 ERROR [0] xml.parser: XML: warning : \r\n 3665 ERROR [0] xml.parser: XML: failed to load external entity \"../samples/dup_uuid.xml\"\r\n\r\n 3665 FATAL [0] agent: Error loading xml configuration: ../samples/dup_uuid.xml\r\n 3665 FATAL [0] agent: Error detail: XML Error at /home/subho/work/github/cppagent/agent/xml_parser.cpp(74): mDoc = xmlReadFile(aPath.c_str(), NULL, XML_PARSE_NOBLANKS)\r\nXML Error at /home/subho/work/github/cppagent/agent/xml_parser.cpp(74): mDoc = xmlReadFile(aPath.c_str(), NULL, XML_PARSE_NOBLANKS)\r\n : OK\r\nAgentTest::testMultipleDisconnect : OK\r\nAgentTest::testRelativeTime : OK\r\nAgentTest::testRelativeParsedTime : OK\r\nAgentTest::testRelativeParsedTimeDetection : OK\r\nAgentTest::testRelativeOffsetDetection : OK\r\nAgentTest::testDynamicCalibration : OK\r\nAgentTest::testInitialTimeSeriesValues : OK\r\nAgentTest::testUUIDChange : OK\r\nAgentTest::testFilterValues : OK\r\nAgentTest::testReferences : OK\r\nAgentTest::testDiscrete : OK\r\nAgentTest::testUpcaseValues : OK\r\nAgentTest::testConditionSequence : OK\r\nAgentTest::testAssetRemoval : OK\r\nAgentTest::testAssetRemovalByAdapter : OK\r\nAgentTest::testAssetAdditionOfAssetChanged12 : OK\r\nAgentTest::testAssetAdditionOfAssetRemoved13 : OK\r\nAgentTest::testAssetPrependId : OK\r\nAgentTest::testBadAsset 3773 ERROR [0] xml.parser: XML: file://111.xml:1: \r\n 3773 ERROR [0] xml.parser: XML: parser \r\n 3773 ERROR [0] xml.parser: XML: error : \r\n 3773 ERROR [0] xml.parser: XML: Opening and ending tag mismatch: CuttingItem line 1 and CuttingItmems\r\n\r\n 3773 ERROR [0] xml.parser: XML: <PointAngle code=\"SIG\" nominal=\"0\">0</PointAngle></Measurements></CuttingItmems>\r\n\r\n 3773 ERROR [0] xml.parser: XML:                                                                                ^\r\n\r\n 3773 ERROR [0] xml.parser: XML: file://111.xml:1: \r\n 3773 ERROR [0] xml.parser: XML: parser \r\n 3773 ERROR [0] xml.parser: XML: error : \r\n 3773 ERROR [0] xml.parser: XML: Opening and ending tag mismatch: CuttingItem line 1 and CuttingToolLifeCycle\r\n\r\n 3773 ERROR [0] xml.parser: XML: nominal=\"0\">0</PointAngle></Measurements></CuttingItmems></CuttingToolLifeCycle>\r\n\r\n 3773 ERROR [0] xml.parser: XML:                                                                                ^\r\n\r\n 3773 ERROR [0] xml.parser: XML: file://111.xml:1: \r\n 3773 ERROR [0] xml.parser: XML: parser \r\n 3773 ERROR [0] xml.parser: XML: error : \r\n 3773 ERROR [0] xml.parser: XML: Opening and ending tag mismatch: CuttingItem line 1 and CuttingTool\r\n\r\n 3774 ERROR [0] xml.parser: XML: </PointAngle></Measurements></CuttingItmems></CuttingToolLifeCycle></CuttingTool\r\n\r\n 3774 ERROR [0] xml.parser: XML:                                                                                ^\r\n\r\n 3774 ERROR [0] xml.parser: XML: file://111.xml:2: \r\n 3774 ERROR [0] xml.parser: XML: parser \r\n 3774 ERROR [0] xml.parser: XML: error : \r\n 3774 ERROR [0] xml.parser: XML: Premature end of data in tag CuttingItems line 1\r\n\r\n 3774 ERROR [0] xml.parser: XML: \r\n\r\n 3774 ERROR [0] xml.parser: XML: ^\r\n\r\n 3774 ERROR [0] xml.parser: XML: file://111.xml:2: \r\n 3774 ERROR [0] xml.parser: XML: parser \r\n 3774 ERROR [0] xml.parser: XML: error : \r\n 3774 ERROR [0] xml.parser: XML: Premature end of data in tag CuttingToolLifeCycle line 1\r\n\r\n 3774 ERROR [0] xml.parser: XML: \r\n\r\n 3774 ERROR [0] xml.parser: XML: ^\r\n\r\n 3774 ERROR [0] xml.parser: XML: file://111.xml:2: \r\n 3774 ERROR [0] xml.parser: XML: parser \r\n 3774 ERROR [0] xml.parser: XML: error : \r\n 3774 ERROR [0] xml.parser: XML: Premature end of data in tag CuttingTool line 1\r\n\r\n 3774 ERROR [0] xml.parser: XML: \r\n\r\n 3774 ERROR [0] xml.parser: XML: ^\r\n\r\n 3774 ERROR [0] xml.parser: Cannot parse asset XML, Unknown execption occurred\r\n 3774 ERROR [0] agent: addAssete: Error parsing asset\r\n : OK\r\nAgentTest::testAssetWithSimpleCuttingItems : OK\r\nAgentTest::testRemoveLastAssetChanged : OK\r\nAgentTest::testRemoveAllAssets : OK\r\nAgentTest::testEmptyLastItemFromAdapter : OK\r\nAgentTest::testAdapterDeviceCommand 3798 ERROR [0] xml.parser: XML: I/O \r\n 3798 ERROR [0] xml.parser: XML: warning : \r\n 3798 ERROR [0] xml.parser: XML: failed to load external entity \"../samples/two_devices.xml\"\r\n\r\n 3798 FATAL [0] agent: Error loading xml configuration: ../samples/two_devices.xml\r\n 3798 FATAL [0] agent: Error detail: XML Error at /home/subho/work/github/cppagent/agent/xml_parser.cpp(74): mDoc = xmlReadFile(aPath.c_str(), NULL, XML_PARSE_NOBLANKS)\r\nXML Error at /home/subho/work/github/cppagent/agent/xml_parser.cpp(74): mDoc = xmlReadFile(aPath.c_str(), NULL, XML_PARSE_NOBLANKS)\r\nSegmentation fault (core dumped)"},"comment":{"url":"https://api.github.com/repos/mtconnect/cppagent/issues/comments/69477818","html_url":"https://github.com/mtconnect/cppagent/issues/16#issuecomment-69477818","issue_url":"https://api.github.com/repos/mtconnect/cppagent/issues/16","id":69477818,"user":{"login":"wsobel","id":1302665,"avatar_url":"https://avatars.githubusercontent.com/u/1302665?v=3","gravatar_id":"","url":"https://api.github.com/users/wsobel","html_url":"https://github.com/wsobel","followers_url":"https://api.github.com/users/wsobel/followers","following_url":"https://api.github.com/users/wsobel/following{/other_user}","gists_url":"https://api.github.com/users/wsobel/gists{/gist_id}","starred_url":"https://api.github.com/users/wsobel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wsobel/subscriptions","organizations_url":"https://api.github.com/users/wsobel/orgs","repos_url":"https://api.github.com/users/wsobel/repos","events_url":"https://api.github.com/users/wsobel/events{/privacy}","received_events_url":"https://api.github.com/users/wsobel/received_events","type":"User","site_admin":false},"created_at":"2015-01-11T00:13:01Z","updated_at":"2015-01-11T00:13:01Z","body":"Looks like a stack corruption. What platform are you testing on?\r\n\r\nSent from my iPhone\r\n\r\n> On Jan 10, 2015, at 13:26, Subhendu Ghosh <notifications@github.com> wrote:\r\n> \r\n> gdb run ends with this.\r\n> \r\n> Program received signal SIGSEGV, Segmentation fault.\r\n> 0x0000003368bb81b8 in main_arena () from /lib64/libc.so.6\r\n> \r\n> Also a backtrace report is here:\r\n> \r\n> (gdb) bt\r\n> #0 0x0000003368bb81b8 in main_arena () from /lib64/libc.so.6\r\n> #1 0x00000000005f2bce in ?? ()\r\n> #2 0x00007fffffffd8a0 in ?? ()\r\n> #3 0x0000000000989150 in ?? ()\r\n> #4 0x00007fffffffd840 in ?? ()\r\n> #5 0x0000000000642afb in ?? ()\r\n> #6 0x00007fffffffda60 in ?? ()\r\n> #7 0x00000000009890c0 in ?? ()\r\n> #8 0x00007fffffffda60 in ?? ()\r\n> #9 0x00000033684233a2 in CppUnit::TestCaseMethodFunctor::operator() (\r\n> this=) at TestCase.cpp:32\r\n> #10 0x0000003368418f73 in CppUnit::DefaultProtector::protect (this=0x97c3d0, \r\n> functor=..., context=...) at DefaultProtector.cpp:15\r\n> #11 0x000000336842038d in operator() (this=)\r\n> at ProtectorChain.cpp:20\r\n> #12 CppUnit::ProtectorChain::protect (this=0x97c110, functor=..., context=...)\r\n> at ProtectorChain.cpp:77\r\n> #13 0x0000003368429459 in CppUnit::TestResult::protect (\r\n> this=this@entry=0x7fffffffdcb0, functor=..., test=test@entry=0x9890c0, \r\n> shortDescription=\"tearDown() failed\") at TestResult.cpp:178\r\n> #14 0x0000003368423110 in CppUnit::TestCase::run (this=0x9890c0, \r\n> result=0x7fffffffdcb0) at TestCase.cpp:97\r\n> #15 0x0000003368423743 in CppUnit::TestComposite::doRunChildTests (\r\n> ---Type to continue, or q to quit---\r\n> this=0x97ca20, controller=0x7fffffffdcb0) at TestComposite.cpp:64\r\n> #16 0x000000336842365e in CppUnit::TestComposite::run (this=0x97ca20, \r\n> result=0x7fffffffdcb0) at TestComposite.cpp:23\r\n> #17 0x0000003368423743 in CppUnit::TestComposite::doRunChildTests (\r\n> this=0x97c960, controller=0x7fffffffdcb0) at TestComposite.cpp:64\r\n> #18 0x000000336842365e in CppUnit::TestComposite::run (this=0x97c960, \r\n> result=0x7fffffffdcb0) at TestComposite.cpp:23\r\n> #19 0x0000003368429022 in CppUnit::TestResult::runTest (this=0x7fffffffdcb0, \r\n> test=0x97c900) at TestResult.cpp:145\r\n> #20 0x000000336842ba4e in CppUnit::TestRunner::run (this=, \r\n> controller=..., testPath=...) at TestRunner.cpp:96\r\n> #21 0x00000000005264a0 in ?? ()\r\n> #22 0x00007fffffffdf38 in ?? ()\r\n> #23 0x00000001ffffdcbf in ?? ()\r\n> #24 0x0000000000000028 in ?? ()\r\n> #25 0x0000003000000003 in ?? ()\r\n> #26 0x0000000000000000 in ?? ()\r\n> \r\n> —\r\n> Reply to this email directly or view it on GitHub.\r\n> "}}