Update of /cvsroot/monetdb/pathfinder/compiler/semantics
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv5910/compiler/semantics

Modified Files:
        normalize.brg typecheck.brg 
Log Message:
[ 1607210 ] XQ: server-side compilation crash (member benchmark)
- introduced a stack fence that aborts too deep recursion
  only enabled in embedded mode (to keep Mserver alive on bad queries)



Index: typecheck.brg
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/semantics/typecheck.brg,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- typecheck.brg       15 Mar 2007 14:12:58 -0000      1.57
+++ typecheck.brg       25 May 2007 21:55:21 -0000      1.58
@@ -350,6 +350,8 @@
                                      the current rule */
     PFcnode_t    *kids[MAX_KIDS]; /* leaf nodes of this rule */
 
+    PFrecursion_fence();
+
     /* determine rule that matches for this non-terminal */
     rule = PFtypecheck_rule (STATE_LABEL (p), goalnt);
     assert (rule);

Index: normalize.brg
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/semantics/normalize.brg,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- normalize.brg       18 May 2007 12:27:39 -0000      1.17
+++ normalize.brg       25 May 2007 21:55:21 -0000      1.18
@@ -708,6 +708,8 @@
     short         old_state_label;
     PFpnode_t *   c;
 
+    PFrecursion_fence();
+
     do {
         /* determine rule that matches for this non-terminal */
         rule = PFnormalize_rule (STATE_LABEL (p), goalnt);


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to