[Zorba-coders] [Bug 867156] Re: Import schema segfaults
** Changed in: zorba Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Zorba Coders, which is the registrant for Zorba. https://bugs.launchpad.net/bugs/867156 Title: Import schema segfaults Status in Zorba - The XQuery Processor: Fix Released Bug description: Starting program: /Users/wcandillon/28msec/zorba/build/dist/bin/zorba -q CheckTaxonomy.xq -f Reading symbols for shared libraries ... done Reading symbols for shared libraries . done Reading symbols for shared libraries done Reading symbols for shared libraries ... done Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: 13 at address: 0x 0x7fff87b4b062 in std::istream::sentry::sentry () (gdb) where #0 0x7fff87b4b062 in std::istream::sentry::sentry () #1 0x7fff87b4b553 in std::istream::read () #2 0x00010162168d in zorba::IstreamBinInputStream::readBytes () #3 0x000103d921e3 in xercesc_2_8::XMLReader::refreshRawBuffer () #4 0x000103d93b47 in xercesc_2_8::XMLReader::XMLReader () #5 0x000103d93c39 in xercesc_2_8::XMLReader::XMLReader () #6 0x000103d17eda in xercesc_2_8::ReaderMgr::createReader () #7 0x000103cef908 in xercesc_2_8::IGXMLScanner::scanReset () #8 0x000103cedc18 in xercesc_2_8::IGXMLScanner::scanDocument () #9 0x000103c66998 in xercesc_2_8::AbstractDOMParser::parse () #10 0x000103d58c77 in xercesc_2_8::TraverseSchema::preprocessImport () #11 0x000103d57e72 in xercesc_2_8::TraverseSchema::preprocessChildren () #12 0x000103d58690 in xercesc_2_8::TraverseSchema::preprocessSchema () #13 0x000103d6d899 in xercesc_2_8::TraverseSchema::TraverseSchema () #14 0x000103d6d972 in xercesc_2_8::TraverseSchema::TraverseSchema () #15 0x000103d2eb5d in xercesc_2_8::SGXMLScanner::loadXMLSchemaGrammar () #16 0x000103d2ee01 in xercesc_2_8::SGXMLScanner::loadGrammar () #17 0x000103d9a0e5 in xercesc_2_8::XMLScanner::loadGrammar () #18 0x000103d9a1a7 in xercesc_2_8::XMLScanner::loadGrammar () #19 0x000103d2879a in xercesc_2_8::SAX2XMLReaderImpl::loadGrammar () #20 0x000101614c4d in zorba::Schema::registerXSD () #21 0x000100347e7a in zorba::TranslatorImpl::import_schema () #22 0x000100290924 in zorba::TranslatorImpl::begin_visit () #23 0x00010019f6e0 in zorba::SchemaImport::accept () #24 0x0001001ab8ac in zorba::SIND_DeclList::accept () #25 0x00010019f52e in zorba::Prolog::accept () #26 0x00010019f21d in zorba::MainModule::accept () #27 0x000100214d7d in zorba::translate_aux () #28 0x0001002148eb in zorba::translate () #29 0x0001005d87c6 in zorba::XQueryCompiler::normalize () #30 0x0001005d89c3 in zorba::XQueryCompiler::compile () #31 0x0001005da700 in zorba::XQueryCompiler::compile () #32 0x00010004ba8a in zorba::XQueryImpl::doCompile () #33 0x00010004c796 in zorba::XQueryImpl::compile () #34 0x000153e8 in compileAndExecute () #35 0x00019a87 in main () To manage notifications about this bug go to: https://bugs.launchpad.net/zorba/+bug/867156/+subscriptions -- Mailing list: https://launchpad.net/~zorba-coders Post to : zorba-coders@lists.launchpad.net Unsubscribe : https://launchpad.net/~zorba-coders More help : https://help.launchpad.net/ListHelp
[Zorba-coders] [Bug 867156] Re: Import schema segfaults
According to a Xerces developer ( see comment at https://issues.apache.org/jira/browse/XERCESC-1980 ) Xerces should not import the XMLSchema.xsd schema. Fix was added in translator to skip importing it. Query in conformance-dimentions fails now as in previous comment, it seems that there is a bug in the script logic. ** Changed in: zorba Status: New => Fix Committed -- You received this bug notification because you are a member of Zorba Coders, which is the registrant for Zorba. https://bugs.launchpad.net/bugs/867156 Title: Import schema segfaults Status in Zorba - The XQuery Processor: Fix Committed Bug description: Starting program: /Users/wcandillon/28msec/zorba/build/dist/bin/zorba -q CheckTaxonomy.xq -f Reading symbols for shared libraries ... done Reading symbols for shared libraries . done Reading symbols for shared libraries done Reading symbols for shared libraries ... done Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: 13 at address: 0x 0x7fff87b4b062 in std::istream::sentry::sentry () (gdb) where #0 0x7fff87b4b062 in std::istream::sentry::sentry () #1 0x7fff87b4b553 in std::istream::read () #2 0x00010162168d in zorba::IstreamBinInputStream::readBytes () #3 0x000103d921e3 in xercesc_2_8::XMLReader::refreshRawBuffer () #4 0x000103d93b47 in xercesc_2_8::XMLReader::XMLReader () #5 0x000103d93c39 in xercesc_2_8::XMLReader::XMLReader () #6 0x000103d17eda in xercesc_2_8::ReaderMgr::createReader () #7 0x000103cef908 in xercesc_2_8::IGXMLScanner::scanReset () #8 0x000103cedc18 in xercesc_2_8::IGXMLScanner::scanDocument () #9 0x000103c66998 in xercesc_2_8::AbstractDOMParser::parse () #10 0x000103d58c77 in xercesc_2_8::TraverseSchema::preprocessImport () #11 0x000103d57e72 in xercesc_2_8::TraverseSchema::preprocessChildren () #12 0x000103d58690 in xercesc_2_8::TraverseSchema::preprocessSchema () #13 0x000103d6d899 in xercesc_2_8::TraverseSchema::TraverseSchema () #14 0x000103d6d972 in xercesc_2_8::TraverseSchema::TraverseSchema () #15 0x000103d2eb5d in xercesc_2_8::SGXMLScanner::loadXMLSchemaGrammar () #16 0x000103d2ee01 in xercesc_2_8::SGXMLScanner::loadGrammar () #17 0x000103d9a0e5 in xercesc_2_8::XMLScanner::loadGrammar () #18 0x000103d9a1a7 in xercesc_2_8::XMLScanner::loadGrammar () #19 0x000103d2879a in xercesc_2_8::SAX2XMLReaderImpl::loadGrammar () #20 0x000101614c4d in zorba::Schema::registerXSD () #21 0x000100347e7a in zorba::TranslatorImpl::import_schema () #22 0x000100290924 in zorba::TranslatorImpl::begin_visit () #23 0x00010019f6e0 in zorba::SchemaImport::accept () #24 0x0001001ab8ac in zorba::SIND_DeclList::accept () #25 0x00010019f52e in zorba::Prolog::accept () #26 0x00010019f21d in zorba::MainModule::accept () #27 0x000100214d7d in zorba::translate_aux () #28 0x0001002148eb in zorba::translate () #29 0x0001005d87c6 in zorba::XQueryCompiler::normalize () #30 0x0001005d89c3 in zorba::XQueryCompiler::compile () #31 0x0001005da700 in zorba::XQueryCompiler::compile () #32 0x00010004ba8a in zorba::XQueryImpl::doCompile () #33 0x00010004c796 in zorba::XQueryImpl::compile () #34 0x000153e8 in compileAndExecute () #35 0x00019a87 in main () To manage notifications about this bug go to: https://bugs.launchpad.net/zorba/+bug/867156/+subscriptions -- Mailing list: https://launchpad.net/~zorba-coders Post to : zorba-coders@lists.launchpad.net Unsubscribe : https://launchpad.net/~zorba-coders More help : https://help.launchpad.net/ListHelp
[Zorba-coders] [Bug 867156] Re: Import schema segfaults
** Branch linked: lp:~zorba-coders/zorba/bug867156-importsegfaults -- You received this bug notification because you are a member of Zorba Coders, which is the registrant for Zorba. https://bugs.launchpad.net/bugs/867156 Title: Import schema segfaults Status in Zorba - The XQuery Processor: New Bug description: Starting program: /Users/wcandillon/28msec/zorba/build/dist/bin/zorba -q CheckTaxonomy.xq -f Reading symbols for shared libraries ... done Reading symbols for shared libraries . done Reading symbols for shared libraries done Reading symbols for shared libraries ... done Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: 13 at address: 0x 0x7fff87b4b062 in std::istream::sentry::sentry () (gdb) where #0 0x7fff87b4b062 in std::istream::sentry::sentry () #1 0x7fff87b4b553 in std::istream::read () #2 0x00010162168d in zorba::IstreamBinInputStream::readBytes () #3 0x000103d921e3 in xercesc_2_8::XMLReader::refreshRawBuffer () #4 0x000103d93b47 in xercesc_2_8::XMLReader::XMLReader () #5 0x000103d93c39 in xercesc_2_8::XMLReader::XMLReader () #6 0x000103d17eda in xercesc_2_8::ReaderMgr::createReader () #7 0x000103cef908 in xercesc_2_8::IGXMLScanner::scanReset () #8 0x000103cedc18 in xercesc_2_8::IGXMLScanner::scanDocument () #9 0x000103c66998 in xercesc_2_8::AbstractDOMParser::parse () #10 0x000103d58c77 in xercesc_2_8::TraverseSchema::preprocessImport () #11 0x000103d57e72 in xercesc_2_8::TraverseSchema::preprocessChildren () #12 0x000103d58690 in xercesc_2_8::TraverseSchema::preprocessSchema () #13 0x000103d6d899 in xercesc_2_8::TraverseSchema::TraverseSchema () #14 0x000103d6d972 in xercesc_2_8::TraverseSchema::TraverseSchema () #15 0x000103d2eb5d in xercesc_2_8::SGXMLScanner::loadXMLSchemaGrammar () #16 0x000103d2ee01 in xercesc_2_8::SGXMLScanner::loadGrammar () #17 0x000103d9a0e5 in xercesc_2_8::XMLScanner::loadGrammar () #18 0x000103d9a1a7 in xercesc_2_8::XMLScanner::loadGrammar () #19 0x000103d2879a in xercesc_2_8::SAX2XMLReaderImpl::loadGrammar () #20 0x000101614c4d in zorba::Schema::registerXSD () #21 0x000100347e7a in zorba::TranslatorImpl::import_schema () #22 0x000100290924 in zorba::TranslatorImpl::begin_visit () #23 0x00010019f6e0 in zorba::SchemaImport::accept () #24 0x0001001ab8ac in zorba::SIND_DeclList::accept () #25 0x00010019f52e in zorba::Prolog::accept () #26 0x00010019f21d in zorba::MainModule::accept () #27 0x000100214d7d in zorba::translate_aux () #28 0x0001002148eb in zorba::translate () #29 0x0001005d87c6 in zorba::XQueryCompiler::normalize () #30 0x0001005d89c3 in zorba::XQueryCompiler::compile () #31 0x0001005da700 in zorba::XQueryCompiler::compile () #32 0x00010004ba8a in zorba::XQueryImpl::doCompile () #33 0x00010004c796 in zorba::XQueryImpl::compile () #34 0x000153e8 in compileAndExecute () #35 0x00019a87 in main () To manage notifications about this bug go to: https://bugs.launchpad.net/zorba/+bug/867156/+subscriptions -- Mailing list: https://launchpad.net/~zorba-coders Post to : zorba-coders@lists.launchpad.net Unsubscribe : https://launchpad.net/~zorba-coders More help : https://help.launchpad.net/ListHelp
[Zorba-coders] [Bug 867156] Re: Import schema segfaults
The import to XMLSchema is not required, since Zorba knows about xs:string and the rest of built-in types used in this query. If I remove the import of XMLSchema.xsd still fails, but it looks like it's an error in the script logic, it's doing doc($file) for a file that doesn't exist: TR [0]: xs:anyURI(file:///home/cezar/dev/xqSample/conformance-dimensions/conf/hypercubeDimensionValid-definition.xml) :1147,19: dynamic error [err:FODC0002]: "file:///home/cezar/dev/xqSample/conformance-dimensions/conf/hypercubeDimensionValid-definition.xml": error retrieving resource; raised at /media/sdd/dev/repo/bug867156-importsegfaults/src/runtime/sequences/sequences_impl.cpp:1849 -- You received this bug notification because you are a member of Zorba Coders, which is the registrant for Zorba. https://bugs.launchpad.net/bugs/867156 Title: Import schema segfaults Status in Zorba - The XQuery Processor: New Bug description: Starting program: /Users/wcandillon/28msec/zorba/build/dist/bin/zorba -q CheckTaxonomy.xq -f Reading symbols for shared libraries ... done Reading symbols for shared libraries . done Reading symbols for shared libraries done Reading symbols for shared libraries ... done Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: 13 at address: 0x 0x7fff87b4b062 in std::istream::sentry::sentry () (gdb) where #0 0x7fff87b4b062 in std::istream::sentry::sentry () #1 0x7fff87b4b553 in std::istream::read () #2 0x00010162168d in zorba::IstreamBinInputStream::readBytes () #3 0x000103d921e3 in xercesc_2_8::XMLReader::refreshRawBuffer () #4 0x000103d93b47 in xercesc_2_8::XMLReader::XMLReader () #5 0x000103d93c39 in xercesc_2_8::XMLReader::XMLReader () #6 0x000103d17eda in xercesc_2_8::ReaderMgr::createReader () #7 0x000103cef908 in xercesc_2_8::IGXMLScanner::scanReset () #8 0x000103cedc18 in xercesc_2_8::IGXMLScanner::scanDocument () #9 0x000103c66998 in xercesc_2_8::AbstractDOMParser::parse () #10 0x000103d58c77 in xercesc_2_8::TraverseSchema::preprocessImport () #11 0x000103d57e72 in xercesc_2_8::TraverseSchema::preprocessChildren () #12 0x000103d58690 in xercesc_2_8::TraverseSchema::preprocessSchema () #13 0x000103d6d899 in xercesc_2_8::TraverseSchema::TraverseSchema () #14 0x000103d6d972 in xercesc_2_8::TraverseSchema::TraverseSchema () #15 0x000103d2eb5d in xercesc_2_8::SGXMLScanner::loadXMLSchemaGrammar () #16 0x000103d2ee01 in xercesc_2_8::SGXMLScanner::loadGrammar () #17 0x000103d9a0e5 in xercesc_2_8::XMLScanner::loadGrammar () #18 0x000103d9a1a7 in xercesc_2_8::XMLScanner::loadGrammar () #19 0x000103d2879a in xercesc_2_8::SAX2XMLReaderImpl::loadGrammar () #20 0x000101614c4d in zorba::Schema::registerXSD () #21 0x000100347e7a in zorba::TranslatorImpl::import_schema () #22 0x000100290924 in zorba::TranslatorImpl::begin_visit () #23 0x00010019f6e0 in zorba::SchemaImport::accept () #24 0x0001001ab8ac in zorba::SIND_DeclList::accept () #25 0x00010019f52e in zorba::Prolog::accept () #26 0x00010019f21d in zorba::MainModule::accept () #27 0x000100214d7d in zorba::translate_aux () #28 0x0001002148eb in zorba::translate () #29 0x0001005d87c6 in zorba::XQueryCompiler::normalize () #30 0x0001005d89c3 in zorba::XQueryCompiler::compile () #31 0x0001005da700 in zorba::XQueryCompiler::compile () #32 0x00010004ba8a in zorba::XQueryImpl::doCompile () #33 0x00010004c796 in zorba::XQueryImpl::compile () #34 0x000153e8 in compileAndExecute () #35 0x00019a87 in main () To manage notifications about this bug go to: https://bugs.launchpad.net/zorba/+bug/867156/+subscriptions -- Mailing list: https://launchpad.net/~zorba-coders Post to : zorba-coders@lists.launchpad.net Unsubscribe : https://launchpad.net/~zorba-coders More help : https://help.launchpad.net/ListHelp
[Zorba-coders] [Bug 867156] Re: Import schema segfaults
I was able to reproduce it exactly as Chris. The error is thrown by Xerces, even if the type it complains about 'derivationControl' is defined lower in the same file XMLSchema.xsd at line 2082. The bug is in Xerces, I filed it in their Jira bug tracker: https://issues.apache.org/jira/browse/XERCESC-1980 -- You received this bug notification because you are a member of Zorba Coders, which is the registrant for Zorba. https://bugs.launchpad.net/bugs/867156 Title: Import schema segfaults Status in Zorba - The XQuery Processor: New Bug description: Starting program: /Users/wcandillon/28msec/zorba/build/dist/bin/zorba -q CheckTaxonomy.xq -f Reading symbols for shared libraries ... done Reading symbols for shared libraries . done Reading symbols for shared libraries done Reading symbols for shared libraries ... done Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: 13 at address: 0x 0x7fff87b4b062 in std::istream::sentry::sentry () (gdb) where #0 0x7fff87b4b062 in std::istream::sentry::sentry () #1 0x7fff87b4b553 in std::istream::read () #2 0x00010162168d in zorba::IstreamBinInputStream::readBytes () #3 0x000103d921e3 in xercesc_2_8::XMLReader::refreshRawBuffer () #4 0x000103d93b47 in xercesc_2_8::XMLReader::XMLReader () #5 0x000103d93c39 in xercesc_2_8::XMLReader::XMLReader () #6 0x000103d17eda in xercesc_2_8::ReaderMgr::createReader () #7 0x000103cef908 in xercesc_2_8::IGXMLScanner::scanReset () #8 0x000103cedc18 in xercesc_2_8::IGXMLScanner::scanDocument () #9 0x000103c66998 in xercesc_2_8::AbstractDOMParser::parse () #10 0x000103d58c77 in xercesc_2_8::TraverseSchema::preprocessImport () #11 0x000103d57e72 in xercesc_2_8::TraverseSchema::preprocessChildren () #12 0x000103d58690 in xercesc_2_8::TraverseSchema::preprocessSchema () #13 0x000103d6d899 in xercesc_2_8::TraverseSchema::TraverseSchema () #14 0x000103d6d972 in xercesc_2_8::TraverseSchema::TraverseSchema () #15 0x000103d2eb5d in xercesc_2_8::SGXMLScanner::loadXMLSchemaGrammar () #16 0x000103d2ee01 in xercesc_2_8::SGXMLScanner::loadGrammar () #17 0x000103d9a0e5 in xercesc_2_8::XMLScanner::loadGrammar () #18 0x000103d9a1a7 in xercesc_2_8::XMLScanner::loadGrammar () #19 0x000103d2879a in xercesc_2_8::SAX2XMLReaderImpl::loadGrammar () #20 0x000101614c4d in zorba::Schema::registerXSD () #21 0x000100347e7a in zorba::TranslatorImpl::import_schema () #22 0x000100290924 in zorba::TranslatorImpl::begin_visit () #23 0x00010019f6e0 in zorba::SchemaImport::accept () #24 0x0001001ab8ac in zorba::SIND_DeclList::accept () #25 0x00010019f52e in zorba::Prolog::accept () #26 0x00010019f21d in zorba::MainModule::accept () #27 0x000100214d7d in zorba::translate_aux () #28 0x0001002148eb in zorba::translate () #29 0x0001005d87c6 in zorba::XQueryCompiler::normalize () #30 0x0001005d89c3 in zorba::XQueryCompiler::compile () #31 0x0001005da700 in zorba::XQueryCompiler::compile () #32 0x00010004ba8a in zorba::XQueryImpl::doCompile () #33 0x00010004c796 in zorba::XQueryImpl::compile () #34 0x000153e8 in compileAndExecute () #35 0x00019a87 in main () To manage notifications about this bug go to: https://bugs.launchpad.net/zorba/+bug/867156/+subscriptions -- Mailing list: https://launchpad.net/~zorba-coders Post to : zorba-coders@lists.launchpad.net Unsubscribe : https://launchpad.net/~zorba-coders More help : https://help.launchpad.net/ListHelp
[Zorba-coders] [Bug 867156] Re: Import schema segfaults
Zorba knows without any import about the built-in schema types but those are only a small subset of schema4schema. Depending on which set is used it is or is not required to import schema4schema. ** Changed in: zorba Assignee: Chris Hillery (ceejatec) => Cezar Andrei (cezar-andrei) -- You received this bug notification because you are a member of Zorba Coders, which is the registrant for Zorba. https://bugs.launchpad.net/bugs/867156 Title: Import schema segfaults Status in Zorba - The XQuery Processor: New Bug description: Starting program: /Users/wcandillon/28msec/zorba/build/dist/bin/zorba -q CheckTaxonomy.xq -f Reading symbols for shared libraries ... done Reading symbols for shared libraries . done Reading symbols for shared libraries done Reading symbols for shared libraries ... done Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: 13 at address: 0x 0x7fff87b4b062 in std::istream::sentry::sentry () (gdb) where #0 0x7fff87b4b062 in std::istream::sentry::sentry () #1 0x7fff87b4b553 in std::istream::read () #2 0x00010162168d in zorba::IstreamBinInputStream::readBytes () #3 0x000103d921e3 in xercesc_2_8::XMLReader::refreshRawBuffer () #4 0x000103d93b47 in xercesc_2_8::XMLReader::XMLReader () #5 0x000103d93c39 in xercesc_2_8::XMLReader::XMLReader () #6 0x000103d17eda in xercesc_2_8::ReaderMgr::createReader () #7 0x000103cef908 in xercesc_2_8::IGXMLScanner::scanReset () #8 0x000103cedc18 in xercesc_2_8::IGXMLScanner::scanDocument () #9 0x000103c66998 in xercesc_2_8::AbstractDOMParser::parse () #10 0x000103d58c77 in xercesc_2_8::TraverseSchema::preprocessImport () #11 0x000103d57e72 in xercesc_2_8::TraverseSchema::preprocessChildren () #12 0x000103d58690 in xercesc_2_8::TraverseSchema::preprocessSchema () #13 0x000103d6d899 in xercesc_2_8::TraverseSchema::TraverseSchema () #14 0x000103d6d972 in xercesc_2_8::TraverseSchema::TraverseSchema () #15 0x000103d2eb5d in xercesc_2_8::SGXMLScanner::loadXMLSchemaGrammar () #16 0x000103d2ee01 in xercesc_2_8::SGXMLScanner::loadGrammar () #17 0x000103d9a0e5 in xercesc_2_8::XMLScanner::loadGrammar () #18 0x000103d9a1a7 in xercesc_2_8::XMLScanner::loadGrammar () #19 0x000103d2879a in xercesc_2_8::SAX2XMLReaderImpl::loadGrammar () #20 0x000101614c4d in zorba::Schema::registerXSD () #21 0x000100347e7a in zorba::TranslatorImpl::import_schema () #22 0x000100290924 in zorba::TranslatorImpl::begin_visit () #23 0x00010019f6e0 in zorba::SchemaImport::accept () #24 0x0001001ab8ac in zorba::SIND_DeclList::accept () #25 0x00010019f52e in zorba::Prolog::accept () #26 0x00010019f21d in zorba::MainModule::accept () #27 0x000100214d7d in zorba::translate_aux () #28 0x0001002148eb in zorba::translate () #29 0x0001005d87c6 in zorba::XQueryCompiler::normalize () #30 0x0001005d89c3 in zorba::XQueryCompiler::compile () #31 0x0001005da700 in zorba::XQueryCompiler::compile () #32 0x00010004ba8a in zorba::XQueryImpl::doCompile () #33 0x00010004c796 in zorba::XQueryImpl::compile () #34 0x000153e8 in compileAndExecute () #35 0x00019a87 in main () To manage notifications about this bug go to: https://bugs.launchpad.net/zorba/+bug/867156/+subscriptions -- Mailing list: https://launchpad.net/~zorba-coders Post to : zorba-coders@lists.launchpad.net Unsubscribe : https://launchpad.net/~zorba-coders More help : https://help.launchpad.net/ListHelp
[Zorba-coders] [Bug 867156] Re: Import schema segfaults
I'll take a look at it. -- You received this bug notification because you are a member of Zorba Coders, which is the registrant for Zorba. https://bugs.launchpad.net/bugs/867156 Title: Import schema segfaults Status in Zorba - The XQuery Processor: New Bug description: Starting program: /Users/wcandillon/28msec/zorba/build/dist/bin/zorba -q CheckTaxonomy.xq -f Reading symbols for shared libraries ... done Reading symbols for shared libraries . done Reading symbols for shared libraries done Reading symbols for shared libraries ... done Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: 13 at address: 0x 0x7fff87b4b062 in std::istream::sentry::sentry () (gdb) where #0 0x7fff87b4b062 in std::istream::sentry::sentry () #1 0x7fff87b4b553 in std::istream::read () #2 0x00010162168d in zorba::IstreamBinInputStream::readBytes () #3 0x000103d921e3 in xercesc_2_8::XMLReader::refreshRawBuffer () #4 0x000103d93b47 in xercesc_2_8::XMLReader::XMLReader () #5 0x000103d93c39 in xercesc_2_8::XMLReader::XMLReader () #6 0x000103d17eda in xercesc_2_8::ReaderMgr::createReader () #7 0x000103cef908 in xercesc_2_8::IGXMLScanner::scanReset () #8 0x000103cedc18 in xercesc_2_8::IGXMLScanner::scanDocument () #9 0x000103c66998 in xercesc_2_8::AbstractDOMParser::parse () #10 0x000103d58c77 in xercesc_2_8::TraverseSchema::preprocessImport () #11 0x000103d57e72 in xercesc_2_8::TraverseSchema::preprocessChildren () #12 0x000103d58690 in xercesc_2_8::TraverseSchema::preprocessSchema () #13 0x000103d6d899 in xercesc_2_8::TraverseSchema::TraverseSchema () #14 0x000103d6d972 in xercesc_2_8::TraverseSchema::TraverseSchema () #15 0x000103d2eb5d in xercesc_2_8::SGXMLScanner::loadXMLSchemaGrammar () #16 0x000103d2ee01 in xercesc_2_8::SGXMLScanner::loadGrammar () #17 0x000103d9a0e5 in xercesc_2_8::XMLScanner::loadGrammar () #18 0x000103d9a1a7 in xercesc_2_8::XMLScanner::loadGrammar () #19 0x000103d2879a in xercesc_2_8::SAX2XMLReaderImpl::loadGrammar () #20 0x000101614c4d in zorba::Schema::registerXSD () #21 0x000100347e7a in zorba::TranslatorImpl::import_schema () #22 0x000100290924 in zorba::TranslatorImpl::begin_visit () #23 0x00010019f6e0 in zorba::SchemaImport::accept () #24 0x0001001ab8ac in zorba::SIND_DeclList::accept () #25 0x00010019f52e in zorba::Prolog::accept () #26 0x00010019f21d in zorba::MainModule::accept () #27 0x000100214d7d in zorba::translate_aux () #28 0x0001002148eb in zorba::translate () #29 0x0001005d87c6 in zorba::XQueryCompiler::normalize () #30 0x0001005d89c3 in zorba::XQueryCompiler::compile () #31 0x0001005da700 in zorba::XQueryCompiler::compile () #32 0x00010004ba8a in zorba::XQueryImpl::doCompile () #33 0x00010004c796 in zorba::XQueryImpl::compile () #34 0x000153e8 in compileAndExecute () #35 0x00019a87 in main () To manage notifications about this bug go to: https://bugs.launchpad.net/zorba/+bug/867156/+subscriptions -- Mailing list: https://launchpad.net/~zorba-coders Post to : zorba-coders@lists.launchpad.net Unsubscribe : https://launchpad.net/~zorba-coders More help : https://help.launchpad.net/ListHelp
[Zorba-coders] [Bug 867156] Re: Import schema segfaults
I'm not able to reproduce any crash, but I can't get the query to run. The query imports the XMLSchema schema directly: import schema namespace xs = "http://www.w3.org/2001/XMLSchema"; at "http://www.w3.org/2001/XMLSchema.xsd";; and this doesn't seem to work: :42,1: static error [err:XQST0059]: "Fatal error in schema with system id http://www.w3.org/2001/XMLSchema.xsd, line 1, column 3. markup declaration expected": target namespace not found for schema/module; raised at /home/ceej/zo/src/src/types/schema/LoadSchemaErrorHandler.cpp:88 I don't know what's going on here, but I did try downloading XMLSchema.xsd and putting it on Zorba's URI path so it would be loaded locally. This led me to also download XMLSchema.dtd and datatypes.dtd which are referenced by XMLSchema.xsd. With all those on the URI path, I now get a bunch of warnings like Warning at file file:///home/ceej/zo/src/build/URI_PATH/org/w3/www/2001/XMLSchema.xsd, line 346, char 13 Message: attribute 'id' has already been declared for element 'xs:field' finally followed by an error: :42,1: static error [err:XQST0059]: "Error in schema with system id file:///home/ceej/zo/src/build/URI_PATH/org/w3/www/2001/XMLSchema.xsd, line 177, column 47. type 'http://www.w3.org/2001/XMLSchema:derivationControl' not found": target namespace not found for schema/module; raised at /home/ceej/zo/src/src/types/schema/LoadSchemaErrorHandler.cpp:68 It kind of seems like Zorba has some idea of the contents of XMLSchema.xsd built-in; is that correct? I'm afraid I don't know how to debug this any further, but it doesn't immediately seem to indicate a problem in URI resolution which is why I assume the bug was assigned to me. Does anyone else know how schema-for-schema is "supposed" to work with Zorba? -- You received this bug notification because you are a member of Zorba Coders, which is the registrant for Zorba. https://bugs.launchpad.net/bugs/867156 Title: Import schema segfaults Status in Zorba - The XQuery Processor: New Bug description: Starting program: /Users/wcandillon/28msec/zorba/build/dist/bin/zorba -q CheckTaxonomy.xq -f Reading symbols for shared libraries ... done Reading symbols for shared libraries . done Reading symbols for shared libraries done Reading symbols for shared libraries ... done Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: 13 at address: 0x 0x7fff87b4b062 in std::istream::sentry::sentry () (gdb) where #0 0x7fff87b4b062 in std::istream::sentry::sentry () #1 0x7fff87b4b553 in std::istream::read () #2 0x00010162168d in zorba::IstreamBinInputStream::readBytes () #3 0x000103d921e3 in xercesc_2_8::XMLReader::refreshRawBuffer () #4 0x000103d93b47 in xercesc_2_8::XMLReader::XMLReader () #5 0x000103d93c39 in xercesc_2_8::XMLReader::XMLReader () #6 0x000103d17eda in xercesc_2_8::ReaderMgr::createReader () #7 0x000103cef908 in xercesc_2_8::IGXMLScanner::scanReset () #8 0x000103cedc18 in xercesc_2_8::IGXMLScanner::scanDocument () #9 0x000103c66998 in xercesc_2_8::AbstractDOMParser::parse () #10 0x000103d58c77 in xercesc_2_8::TraverseSchema::preprocessImport () #11 0x000103d57e72 in xercesc_2_8::TraverseSchema::preprocessChildren () #12 0x000103d58690 in xercesc_2_8::TraverseSchema::preprocessSchema () #13 0x000103d6d899 in xercesc_2_8::TraverseSchema::TraverseSchema () #14 0x000103d6d972 in xercesc_2_8::TraverseSchema::TraverseSchema () #15 0x000103d2eb5d in xercesc_2_8::SGXMLScanner::loadXMLSchemaGrammar () #16 0x000103d2ee01 in xercesc_2_8::SGXMLScanner::loadGrammar () #17 0x000103d9a0e5 in xercesc_2_8::XMLScanner::loadGrammar () #18 0x000103d9a1a7 in xercesc_2_8::XMLScanner::loadGrammar () #19 0x000103d2879a in xercesc_2_8::SAX2XMLReaderImpl::loadGrammar () #20 0x000101614c4d in zorba::Schema::registerXSD () #21 0x000100347e7a in zorba::TranslatorImpl::import_schema () #22 0x000100290924 in zorba::TranslatorImpl::begin_visit () #23 0x00010019f6e0 in zorba::SchemaImport::accept () #24 0x0001001ab8ac in zorba::SIND_DeclList::accept () #25 0x00010019f52e in zorba::Prolog::accept () #26 0x00010019f21d in zorba::MainModule::accept () #27 0x000100214d7d in zorba::translate_aux () #28 0x0001002148eb in zorba::translate () #29 0x0001005d87c6 in zorba::XQueryCompiler::normalize () #30 0x0001005d89c3 in zorba::XQueryCompiler::compile () #31 0x0001005da700 in zorba::XQueryCompiler::compile () #32 0x00010004ba8a in zorba::XQueryImpl::doCompile () #33 0x00010004c796 in zorba::XQueryImpl::compile () #34 0x000153e8 in compileAndExecute () #35 0x00019a87 in main () To manage notifications about this bug go to: https://bugs.launchpad.net/zorba/+bug/867156/+subscr
[Zorba-coders] [Bug 867156] Re: Import schema segfaults
** Changed in: zorba Milestone: None => 2.5 -- You received this bug notification because you are a member of Zorba Coders, which is the registrant for Zorba. https://bugs.launchpad.net/bugs/867156 Title: Import schema segfaults Status in Zorba - The XQuery Processor: New Bug description: Starting program: /Users/wcandillon/28msec/zorba/build/dist/bin/zorba -q CheckTaxonomy.xq -f Reading symbols for shared libraries ... done Reading symbols for shared libraries . done Reading symbols for shared libraries done Reading symbols for shared libraries ... done Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: 13 at address: 0x 0x7fff87b4b062 in std::istream::sentry::sentry () (gdb) where #0 0x7fff87b4b062 in std::istream::sentry::sentry () #1 0x7fff87b4b553 in std::istream::read () #2 0x00010162168d in zorba::IstreamBinInputStream::readBytes () #3 0x000103d921e3 in xercesc_2_8::XMLReader::refreshRawBuffer () #4 0x000103d93b47 in xercesc_2_8::XMLReader::XMLReader () #5 0x000103d93c39 in xercesc_2_8::XMLReader::XMLReader () #6 0x000103d17eda in xercesc_2_8::ReaderMgr::createReader () #7 0x000103cef908 in xercesc_2_8::IGXMLScanner::scanReset () #8 0x000103cedc18 in xercesc_2_8::IGXMLScanner::scanDocument () #9 0x000103c66998 in xercesc_2_8::AbstractDOMParser::parse () #10 0x000103d58c77 in xercesc_2_8::TraverseSchema::preprocessImport () #11 0x000103d57e72 in xercesc_2_8::TraverseSchema::preprocessChildren () #12 0x000103d58690 in xercesc_2_8::TraverseSchema::preprocessSchema () #13 0x000103d6d899 in xercesc_2_8::TraverseSchema::TraverseSchema () #14 0x000103d6d972 in xercesc_2_8::TraverseSchema::TraverseSchema () #15 0x000103d2eb5d in xercesc_2_8::SGXMLScanner::loadXMLSchemaGrammar () #16 0x000103d2ee01 in xercesc_2_8::SGXMLScanner::loadGrammar () #17 0x000103d9a0e5 in xercesc_2_8::XMLScanner::loadGrammar () #18 0x000103d9a1a7 in xercesc_2_8::XMLScanner::loadGrammar () #19 0x000103d2879a in xercesc_2_8::SAX2XMLReaderImpl::loadGrammar () #20 0x000101614c4d in zorba::Schema::registerXSD () #21 0x000100347e7a in zorba::TranslatorImpl::import_schema () #22 0x000100290924 in zorba::TranslatorImpl::begin_visit () #23 0x00010019f6e0 in zorba::SchemaImport::accept () #24 0x0001001ab8ac in zorba::SIND_DeclList::accept () #25 0x00010019f52e in zorba::Prolog::accept () #26 0x00010019f21d in zorba::MainModule::accept () #27 0x000100214d7d in zorba::translate_aux () #28 0x0001002148eb in zorba::translate () #29 0x0001005d87c6 in zorba::XQueryCompiler::normalize () #30 0x0001005d89c3 in zorba::XQueryCompiler::compile () #31 0x0001005da700 in zorba::XQueryCompiler::compile () #32 0x00010004ba8a in zorba::XQueryImpl::doCompile () #33 0x00010004c796 in zorba::XQueryImpl::compile () #34 0x000153e8 in compileAndExecute () #35 0x00019a87 in main () To manage notifications about this bug go to: https://bugs.launchpad.net/zorba/+bug/867156/+subscriptions -- Mailing list: https://launchpad.net/~zorba-coders Post to : zorba-coders@lists.launchpad.net Unsubscribe : https://launchpad.net/~zorba-coders More help : https://help.launchpad.net/ListHelp