Bugs item #1806421, was opened at 2007-10-02 17:55
Message generated for change (Settings changed) made by mlkersten
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1806421&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: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Riham A. K. (rihamabdelkader)
>Assigned to: Stefan Manegold (stmane)
Summary: Mserver aborting after executing generated MIL

Initial Comment:
I checked out (current) today the MonetDB/XQuery code and Mserver is crashing 
whenever I try to execute MIL statements using the mclient command. More 
details follow.
 
I first compile an XQuery to MIL statements using the command "pf -A"
Then I execute the MIL statements with "mclient -t -l"
Whenever I do so, I get the correct results but Mserver aborts after giving the 
following error message:
======================================================
Mserver: monet_tbl.mx:1743: TBL_M_decref: Assertion `p' failed.
Aborted
====================================================== 

Moreover if I try to run the XQuery with: "mclient -lxquery", then mserver does 
not abort.

It, however, aborts if I use "pf -M | mclient -lmil" and returns the same error 
message as the one above.

I have attached the XQuery file. I could not attach the XML document (size 
problem).

Thank you and best regards,
Riham Abdel Kader

----------------------------------------------------------------------

Comment By: Martin Kersten (mlkersten)
Date: 2007-10-21 20:23

Message:
Logged In: YES 
user_id=490798
Originator: NO

Riham, if you are satisfied with the solution,
you can close the bug report

----------------------------------------------------------------------

Comment By: Riham A. K. (rihamabdelkader)
Date: 2007-10-03 10:55

Message:
Logged In: YES 
user_id=1611221
Originator: YES

Stefan, 

The work-around you suggested works perfectly with me. Thank you for your
time.



----------------------------------------------------------------------

Comment By: Stefan Manegold (stmane)
Date: 2007-10-02 23:04

Message:
Logged In: YES 
user_id=572415
Originator: NO

A quick test revealed that when loading module mapi *before* module
pathfinder, Mserver crashes reported after the first MIL-MAPI connection,
even if that's as simple as

mclient -lmil -s'print(1);'

XQuery-MAPI connections do work fine.

While this is indeed a bug that needs to be analysed --- I'll file a new
bug report including a proper test later or tomorrow,
the work-around for Riham (and others ;-)) is to start the Mserver as I
suggested, i.e., not loading the mapi module explicitly.


----------------------------------------------------------------------

Comment By: Stefan Manegold (stmane)
Date: 2007-10-02 22:53

Message:
Logged In: YES 
user_id=572415
Originator: NO

Idea 1:
try (as I did; see my log) staring Mserver with
Mserver --dbinit='module(pathfinder); mil_start();'
(module pathfinder depends on module mapi, and hence loads it
automatically;
loading it explicitly is hence not required, but *should* not cause any
problem, either...)

Idea 2:
try (as I did; see my log) loading the document with XQuery function
pf:add-doc() instead of MIL command shred_doc().

Try one idea at a time --- in fact, neither should make a difference, but
you never know ...


----------------------------------------------------------------------

Comment By: Riham A. K. (rihamabdelkader)
Date: 2007-10-02 22:47

Message:
Logged In: YES 
user_id=1611221
Originator: YES

Hi Stefan,

I started Mserver in the following way: Mserver --dbinit="module(mapi);
mil_start(); module(pathfinder);"

I shred the XML document using the "shred_doc()" command.

Any idea?

----------------------------------------------------------------------

Comment By: Stefan Manegold (stmane)
Date: 2007-10-02 19:33

Message:
Logged In: YES 
user_id=572415
Originator: NO

For me (on my Fedora Core 6 desktop), the latest developement trunk (cvs
HEAD) works just as fine with all variants.


----------------------------------------------------------------------

Comment By: Stefan Manegold (stmane)
Date: 2007-10-02 19:08

Message:
Logged In: YES 
user_id=572415
Originator: NO

Using the latest release branches
========
$ grep . */CVS/Tag
--------
buildtools/CVS/Tag:TMonetDB_1-20
MonetDB/CVS/Tag:TMonetDB_1-20
clients/CVS/Tag:TClients_1-20
MonetDB4/CVS/Tag:TMonetDB_4-20
pathfinder/CVS/Tag:TXQuery_0-20
========

all three variants

cat /tmp/q100000_10ab_1000pr.xq | mclient -lxquery -fxml
pf -M /tmp/q100000_10ab_1000pr.xq | mclient -lmil
pf -A /tmp/q100000_10ab_1000pr.xq | mclient -lmil

work fine for me (see attached log for details).
(Will test the latest development trunk, once I have time to build it.)


Riham,

how exactly did you start your Mserver and load the document?

File Added: log

----------------------------------------------------------------------

Comment By: Stefan Manegold (stmane)
Date: 2007-10-02 18:06

Message:
Logged In: YES 
user_id=572415
Originator: NO

Riham,

for testing, debugging and (hopefully) fixing the bug, it would be more
than handy to have (access to) the document you're using.
Could you please attach it to this report, or at least provide a link
where we could find/download the document?

Thanks again!

Stefan


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1806421&group_id=56967

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to