Public bug reported: I experienced a segmentation fault when running the following report, whether or not the files have been previously tidied to well-formed xhtml by w3c's tidy utility. If I substitute the doc() function for html:parse() then the query proceeds as expected and produces results with no segmentation fault ...
>>>>>>>>>>> import module namespace file = "http://expath.org/ns/file"; import module namespace html = "http://www.zorba-xquery.com/modules/converters/html"; declare variable $origpath := "../notes/"; <html xmlns="http://www.w3.org/1999/xhtml"> <body> { for $origfile in file:list($origpath) where matches($origfile,'.+\.html') let $absfile := file:resolve-path(concat($origpath,$origfile)) return html:parse($absfile)//h1 } </body> </html> ProblemType: Crash DistroRelease: Ubuntu 13.10 Package: python2.7-minimal 2.7.5-5ubuntu1 ProcVersionSignature: Ubuntu 3.11.0-7.14-generic 3.11.1 Uname: Linux 3.11.0-7-generic i686 ApportVersion: 2.12.1-0ubuntu4 Architecture: i386 Date: Wed Sep 18 13:05:41 2013 ExecutablePath: /usr/bin/python2.7 InstallationDate: Installed on 2013-08-15 (34 days ago) InstallationMedia: Ubuntu-GNOME 13.10 "Saucy Salamander" - Alpha i386 (20130626) MarkForUpload: True ProcCmdline: python report.py SegvAnalysis: Segfault happened at: 0xb3772454 <_ZN5zorba17GlobalEnvironment8getStoreEv+4>: mov (%eax),%eax PC (0xb3772454) ok source "(%eax)" (0x00000000) not located in a known VMA region (needed readable region)! destination "%eax" ok SegvReason: reading NULL VMA Signal: 11 SourcePackage: python2.7 StacktraceTop: zorba::GlobalEnvironment::getStore() () from /usr/lib/libzorba_simplestore.so.2.9.1 zorba::Item::isStreamable() const () from /usr/lib/libzorba_simplestore.so.2.9.1 zorba::htmlmodule::ParseFunction::evaluate(std::vector<zorba::ItemSequence*, std::allocator<zorba::ItemSequence*> > const&, zorba::StaticContext const*, zorba::DynamicContext const*) const () from /usr/lib/zorba/com/zorba-xquery/www/modules/converters/libhtml_1.0.so ?? () from /usr/lib/libzorba_simplestore.so.2.9.0 ?? () from /usr/lib/libzorba_simplestore.so.2.9.0 Title: python2.7 crashed with SIGSEGV in zorba::GlobalEnvironment::getStore() UpgradeStatus: No upgrade log present (probably fresh install) UserGroups: adm cdrom dialout dip lpadmin plugdev sambashare sudo ** Affects: python2.7 (Ubuntu) Importance: Undecided Status: New ** Tags: apport-crash i386 need-i386-retrace saucy ** Information type changed from Private to Public -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1227136 Title: python2.7 crashed with SIGSEGV in zorba::GlobalEnvironment::getStore() To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/1227136/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs