Activity log for bug #1023170

Date Who What changed Old value New value Message
2012-07-10 21:33:32 mb21 bug added bug
2012-07-10 21:33:32 mb21 attachment added reproduce https://bugs.launchpad.net/bugs/1023170/+attachment/3218992/+files/variable-zorba.xq
2012-07-10 21:36:20 mb21 description We compiled the zorba from source, revision 10923 and we still get a segfault when running xml:parse on something we got from either http:get or fetch:content. Maybe reopen bug #867154 Replacing the "let http:get()" with "variable http:get();" fixes it. $ zorba -f -q variable-zorba.xq [Thread debugging using libthread_db enabled] <?xml version="1.0" encoding="UTF-8"?> Program received signal SIGSEGV, Segmentation fault. 0xb54e29de in std::basic_istream<char, std::char_traits<char> >::sentry::sentry(std::basic_istream<char, std::char_traits<char> >&, bool) () from /usr/lib/i386-linux-gnu/libstdc++.so.6 (gdb) bt #0 0xb54e29de in std::basic_istream<char, std::char_traits<char> >::sentry::sentry(std::basic_istream<char, std::char_traits<char> >&, bool) () from /usr/lib/i386-linux-gnu/libstdc++.so.6 #1 0xb54e2fee in std::basic_istream<char, std::char_traits<char> >::read(char*, int) () from /usr/lib/i386-linux-gnu/libstdc++.so.6 #2 0xb7a0eb71 in zorba::simplestore::FastXmlLoader::readPacket (this=0x8134260, stream=..., buf=0x81c6c6b "", size=0) at /home/tillw/code/zorba/zorba/src/store/naive/loader_fast.cpp:242 #3 0xb7a13ac2 in zorba::simplestore::FragmentXmlLoader::fillBuffer (this=0x8134260, theFragmentStream=0x814687c) at /home/tillw/code/zorba/zorba/src/store/naive/loader_dtd.cpp:161 #4 0xb7a143e3 in zorba::simplestore::FragmentXmlLoader::loadXml (this=0x8134260, baseUri=..., docUri=..., stream=...) at /home/tillw/code/zorba/zorba/src/store/naive/loader_dtd.cpp:260 #5 0xb7a36246 in zorba::simplestore::Store::loadDocument (this=0xb7fde600, baseUri=..., docUri=..., stream=..., loadProperties=...) at /home/tillw/code/zorba/zorba/src/store/naive/store.cpp:1030 #6 0xb75ffc88 in zorba::FnZorbaParseXmlFragmentIterator::nextImpl (this=0x81640e0, result=..., planState=...) at /home/tillw/code/zorba/zorba/src/runtime/parsing_and_serializing/parse_fragment_impl.cpp:230 #7 0xb73fc81d in zorba::Batcher<zorba::FnZorbaParseXmlFragmentIterator>::produceNext (this=0x81640e0, result=..., planState=...) at /home/tillw/code/zorba/zorba/src/runtime/base/plan_iterator.h:535 #8 0xb76a67bb in zorba::PlanIterator::consumeNext (result=..., iter=0x81640e0, planState=...) at /home/tillw/code/zorba/zorba/src/runtime/base/plan_iterator.cpp:109 #9 0xb77e7a32 in zorba::SequentialIterator::nextImpl (this=0x8164170, result=..., planState=...) at /home/tillw/code/zorba/zorba/src/runtime/scripting/scripting.cpp:96 #10 0xb77f069d in zorba::Batcher<zorba::SequentialIterator>::produceNext (this=0x8164170, result=..., planState=...) at /home/tillw/code/zorba/zorba/src/runtime/base/plan_iterator.h:535 #11 0xb76a67bb in zorba::PlanIterator::consumeNext (result=..., iter=0x8164170, planState=...) at /home/tillw/code/zorba/zorba/src/runtime/base/plan_iterator.cpp:109 #12 0xb76a6156 in zorba::PlanWrapper::next (this=0x8138d18, result=...) at /home/tillw/code/zorba/zorba/src/runtime/api/plan_wrapper.cpp:151 #13 0xb7014061 in zorba::serializer::serialize (this=0xbfffe5b8, aObject=..., aOStream=..., aHandler=0x0) at /home/tillw/code/zorba/zorba/src/api/serialization/serializer.cpp:2781 #14 0xb7013da2 in zorba::serializer::serialize (this=0xbfffe5b8, aObject=..., aOStream=...) at /home/tillw/code/zorba/zorba/src/api/serialization/serializer.cpp:2733 #15 0xb6fb747e in zorba::XQueryImpl::serialize (this=0x8133258, os=..., aWrapper=..., opt=0xbfffe7f0) at /home/tillw/code/zorba/zorba/src/api/xqueryimpl.cpp:1305 #16 0xb6fb6889 in zorba::XQueryImpl::execute (this=0x8133258, os=..., opt=0xbfffe7f0) at /home/tillw/code/zorba/zorba/src/api/xqueryimpl.cpp:1131 #17 0x0805a91e in compileAndExecute (zorbaInstance=0xb7fda600, properties=..., staticContext=..., qfilepath=..., qfile=..., outputStream=..., timing=...) at /home/tillw/code/zorba/zorba/bin/zorbacmd.cpp:801 #18 0x0805bdee in main (argc=4, argv=0xbffff024) at /home/tillw/code/zorba/zorba/bin/zorbacmd.cpp:1081 We compiled the zorba from source, revision 10923 and we still get a segfault when running xml:parse on something we got from either http:get or fetch:content. Maybe reopen bug #867154 or bug #1020953 Replacing the "let http:get()" with "variable http:get();" fixes it. $ zorba -f -q variable-zorba.xq [Thread debugging using libthread_db enabled] <?xml version="1.0" encoding="UTF-8"?> Program received signal SIGSEGV, Segmentation fault. 0xb54e29de in std::basic_istream<char, std::char_traits<char> >::sentry::sentry(std::basic_istream<char, std::char_traits<char> >&, bool) () from /usr/lib/i386-linux-gnu/libstdc++.so.6 (gdb) bt #0 0xb54e29de in std::basic_istream<char, std::char_traits<char> >::sentry::sentry(std::basic_istream<char, std::char_traits<char> >&, bool) () from /usr/lib/i386-linux-gnu/libstdc++.so.6 #1 0xb54e2fee in std::basic_istream<char, std::char_traits<char> >::read(char*, int) () from /usr/lib/i386-linux-gnu/libstdc++.so.6 #2 0xb7a0eb71 in zorba::simplestore::FastXmlLoader::readPacket (this=0x8134260, stream=..., buf=0x81c6c6b "", size=0)     at /home/tillw/code/zorba/zorba/src/store/naive/loader_fast.cpp:242 #3 0xb7a13ac2 in zorba::simplestore::FragmentXmlLoader::fillBuffer (this=0x8134260, theFragmentStream=0x814687c)     at /home/tillw/code/zorba/zorba/src/store/naive/loader_dtd.cpp:161 #4 0xb7a143e3 in zorba::simplestore::FragmentXmlLoader::loadXml (this=0x8134260, baseUri=..., docUri=..., stream=...)     at /home/tillw/code/zorba/zorba/src/store/naive/loader_dtd.cpp:260 #5 0xb7a36246 in zorba::simplestore::Store::loadDocument (this=0xb7fde600, baseUri=..., docUri=..., stream=..., loadProperties=...)     at /home/tillw/code/zorba/zorba/src/store/naive/store.cpp:1030 #6 0xb75ffc88 in zorba::FnZorbaParseXmlFragmentIterator::nextImpl (this=0x81640e0, result=..., planState=...)     at /home/tillw/code/zorba/zorba/src/runtime/parsing_and_serializing/parse_fragment_impl.cpp:230 #7 0xb73fc81d in zorba::Batcher<zorba::FnZorbaParseXmlFragmentIterator>::produceNext (this=0x81640e0, result=..., planState=...)     at /home/tillw/code/zorba/zorba/src/runtime/base/plan_iterator.h:535 #8 0xb76a67bb in zorba::PlanIterator::consumeNext (result=..., iter=0x81640e0, planState=...)     at /home/tillw/code/zorba/zorba/src/runtime/base/plan_iterator.cpp:109 #9 0xb77e7a32 in zorba::SequentialIterator::nextImpl (this=0x8164170, result=..., planState=...)     at /home/tillw/code/zorba/zorba/src/runtime/scripting/scripting.cpp:96 #10 0xb77f069d in zorba::Batcher<zorba::SequentialIterator>::produceNext (this=0x8164170, result=..., planState=...)     at /home/tillw/code/zorba/zorba/src/runtime/base/plan_iterator.h:535 #11 0xb76a67bb in zorba::PlanIterator::consumeNext (result=..., iter=0x8164170, planState=...)     at /home/tillw/code/zorba/zorba/src/runtime/base/plan_iterator.cpp:109 #12 0xb76a6156 in zorba::PlanWrapper::next (this=0x8138d18, result=...)     at /home/tillw/code/zorba/zorba/src/runtime/api/plan_wrapper.cpp:151 #13 0xb7014061 in zorba::serializer::serialize (this=0xbfffe5b8, aObject=..., aOStream=..., aHandler=0x0)     at /home/tillw/code/zorba/zorba/src/api/serialization/serializer.cpp:2781 #14 0xb7013da2 in zorba::serializer::serialize (this=0xbfffe5b8, aObject=..., aOStream=...)     at /home/tillw/code/zorba/zorba/src/api/serialization/serializer.cpp:2733 #15 0xb6fb747e in zorba::XQueryImpl::serialize (this=0x8133258, os=..., aWrapper=..., opt=0xbfffe7f0)     at /home/tillw/code/zorba/zorba/src/api/xqueryimpl.cpp:1305 #16 0xb6fb6889 in zorba::XQueryImpl::execute (this=0x8133258, os=..., opt=0xbfffe7f0)     at /home/tillw/code/zorba/zorba/src/api/xqueryimpl.cpp:1131 #17 0x0805a91e in compileAndExecute (zorbaInstance=0xb7fda600, properties=..., staticContext=..., qfilepath=..., qfile=...,     outputStream=..., timing=...) at /home/tillw/code/zorba/zorba/bin/zorbacmd.cpp:801 #18 0x0805bdee in main (argc=4, argv=0xbffff024) at /home/tillw/code/zorba/zorba/bin/zorbacmd.cpp:1081
2012-07-11 00:30:38 Chris Hillery zorba: status New Confirmed
2012-07-11 00:30:40 Chris Hillery zorba: importance Undecided High
2012-07-11 00:30:42 Chris Hillery zorba: assignee Chris Hillery (ceejatec)
2012-07-11 00:30:45 Chris Hillery zorba: milestone 2.7
2012-07-13 00:09:07 Chris Hillery marked as duplicate 1024033
2012-07-31 15:54:42 Nicolae Brinza branch linked lp:~nbrinza/zorba/parse-fragment
2012-07-31 20:44:44 Chris Hillery removed duplicate marker 1024033
2012-09-11 11:08:36 Chris Hillery zorba: status Confirmed Fix Committed
2012-10-24 15:19:55 Dana Florescu zorba: status Fix Committed Fix Released