Update of /cvsroot/monetdb/pathfinder/runtime
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv5910/runtime
Modified Files:
pathfinder.mx
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: pathfinder.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/pathfinder.mx,v
retrieving revision 1.365
retrieving revision 1.366
diff -u -d -r1.365 -r1.366
--- pathfinder.mx 25 May 2007 09:52:57 -0000 1.365
+++ pathfinder.mx 25 May 2007 21:55:22 -0000 1.366
@@ -4233,6 +4233,7 @@
err = (char*) alloca(strlen(_url)+80);\
sprintf(err, "%s(%s): could not retrieve query\n", fcn, _url);\
} }
+extern char* PFmaxstack;
static int
xquery_compile_exec(xquery_client *ctx,
char* url,
@@ -4262,6 +4263,7 @@
if (is_mil && query == NULL) {
*prologue = xquery; *epilogue = NULL;
} else {
+ PFmaxstack = ((char*) &xquery) - 2*THREAD_STACK_SIZE;
err = PFcompile_MonetDB(xquery, url, prologue, &del, epilogue,
options);
if (err == NULL && nsurl != NULL){
/* get the module namespace URL Y from pattern: "module
namespace X = Y" */
-------------------------------------------------------------------------
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