Bugs item #2017862, was opened at 2008-07-14 12:41 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2017862&group_id=56967
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: PF/runtime Group: Pathfinder CVS Head Status: Open Resolution: None Priority: 5 Private: No Submitted By: Ying Zhang (yingying) Assigned to: Jan Flokstra (jflokstra) Summary: PF: shredding empty file causes MXQ to crash Initial Comment: Shred an empty file using pf:add-doc() in mclient crashes Mserver: In terminal 1: $ Mserver --dbinit="module(pathfinder);" # MonetDB Server v4.24.1 # based on GDK v1.24.1 # Copyright (c) 1993-2008, CWI. All rights reserved. # Compiled for x86_64-unknown-linux-gnu/64bit with 64bit OIDs; dynamically linked. # Visit http://monetdb.cwi.nl/ for further information. # PF/Tijah module v0.5.0 loaded. http://dbappl.cs.utwente.nl/pftijah # MonetDB/XQuery module v0.24.1 loaded (default back-end is 'milprint_summer') # XRPC administrative console at http://127.0.0.1:50001/admin MonetDB>Segmentation fault In terminal 2: $ mclient -lx xquery>pf:add-doc("/ufs/zhang/tmp/empty.xml", "empty.xml") more><> MAPI = [EMAIL PROTECTED]:50000 ACTION= read_line QUERY = pf:add-doc("/ufs/zhang/tmp/empty.xml", "empty.xml") ERROR = Connection terminated The crash happens in shredder.mx Empty file is not a valid XML document, however, I think it should not cause Mserver to segmentation fault. Shredding the same doc using MIL shred_doc() results (correctly) in an error: MonetDB>shred_doc("/ufs/zhang/tmp/empty.xml", "empty.xml"); !ERROR: Document is empty !ERROR: Start tag expected, '<' not found !ERROR: [shred_url]: 1 times inserted nil due to errors at tuples [EMAIL PROTECTED] !ERROR: [shred_url]: first error was: !ERROR: emit_tuple: node.level(18831648) >= XML_DEPTH_MAX(128) !ERROR: CMDshred_url: operation failed. Kind regards, Jennie ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2017862&group_id=56967 ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Monetdb-bugs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/monetdb-bugs
