<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-4363</id>
	<title>Nabble - monetdb-bugs</title>
	<updated>2009-11-21T06:35:03Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/monetdb-bugs-f4363.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/monetdb-bugs-f4363.html" />
	<subtitle type="html">Mailing list archive for monetdb-bugs</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26457103</id>
	<title>[ monetdb-Bugs-1607210 ] XQ: server-side compilation crash (member benchmark)</title>
	<published>2009-11-21T06:35:03Z</published>
	<updated>2009-11-21T06:35:03Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #1607210, was opened at 2006-12-02 01:27
&lt;br&gt;Message generated for change (Comment added) made by stmane
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=1607210&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=1607210&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: PF/runtime
&lt;br&gt;Group: Pathfinder CVS Head
&lt;br&gt;Status: Open
&lt;br&gt;Resolution: Fixed
&lt;br&gt;Priority: 8
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Peter Boncz (boncz)
&lt;br&gt;Assigned to: Peter Boncz (boncz)
&lt;br&gt;Summary: XQ: server-side compilation crash (member benchmark)
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;Philippe Michiels reported at dagstuhl that the simple CHILD test of the MemBeR benchmark crashes when run in MapiClient -lx; crashing during the *compilation* process
&lt;br&gt;&lt;br&gt;It works with pf standalone, translating to MIL explicitly
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://ilps.science.uva.nl/Resources/MemBeR/CHILD.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ilps.science.uva.nl/Resources/MemBeR/CHILD.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;The query used in this micro-benchmark navigates downward from the root, performing n successive child navigation steps, where n is to be varied.
&lt;br&gt;For every integer n, the corresponding query, named CHILD(n), is:
&lt;br&gt;&lt;br&gt;/t1/t2/.../tn
&lt;br&gt;&lt;br&gt;THE BUG ONLY OCCURS WITH n&amp;gt;15
&lt;br&gt;AND WITH SERVER SIDE COMPILATION
&lt;br&gt;&lt;br&gt;may well be some buffer overflow..
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-21 15:35
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;===================================================================
&lt;br&gt;2009/11/21 - stmane: pathfinder/runtime/pathfinder.mx,1.462.4.12
&lt;br&gt;&lt;br&gt;use more conservative stack limit (PFmaxstack)
&lt;br&gt;for too deep recusion check (PFrecursion_fence())
&lt;br&gt;to prevent segfault (due to too deep recursion and
&lt;br&gt;consequent stack overflow) in tests
&lt;br&gt;tests/BugTracker/Tests/collection_management.SF-1726599.*
&lt;br&gt;tests/BugTracker/Tests/crash_on_concatenated_query.SF-1730547.*
&lt;br&gt;cf.,
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;aid=1607210&amp;group_id=56967&amp;atid=482468&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;aid=1607210&amp;group_id=56967&amp;atid=482468&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;aid=1730547&amp;group_id=56967&amp;atid=482468&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;aid=1730547&amp;group_id=56967&amp;atid=482468&lt;/a&gt;&lt;br&gt;===================================================================
&lt;br&gt;&lt;br&gt;Report can be closed once nightly testing confirms the fix for all
&lt;br&gt;platforms.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-16 22:18
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;re-opened as the respective test fails on all platform with timeout or
&lt;br&gt;segfault at least since 2009.03.25
&lt;br&gt;cf.,
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/server-side_compilation_crash.SF-1607210.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/server-side_compilation_crash.SF-1607210.err.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/server-side_compilation_crash.SF-1607210.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/server-side_compilation_crash.SF-1607210.out.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2008-02-10 14:12
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=572415
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;Appears to work fine on most platforms, again;
&lt;br&gt;exceptions:
&lt;br&gt;&lt;br&gt;Segfault on RedHat (on Itanium):
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/Int.64.64.d-RedHat4WS/tests_BugTracker/server-side_compilation_crash.SF-1607210.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/Int.64.64.d-RedHat4WS/tests_BugTracker/server-side_compilation_crash.SF-1607210.err.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Timeout on Windows:
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/Int.64.32.d-Windows5.2/tests_BugTracker/server-side_compilation_crash.SF-1607210.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/Int.64.32.d-Windows5.2/tests_BugTracker/server-side_compilation_crash.SF-1607210.err.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2008-01-22 14:58
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=572415
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;re-opened as it fails, again, since 2008.01.12, i.e., after checkins on
&lt;br&gt;2008.01.11, now with
&lt;br&gt;&lt;br&gt;ERROR = !fatal error: aborted too deep recursion
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Current/pathfinder/.mTests103/GNU.32.32.d-Fedora6/tests_BugTracker/server-side_compilation_crash.SF-1607210.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Current/pathfinder/.mTests103/GNU.32.32.d-Fedora6/tests_BugTracker/server-side_compilation_crash.SF-1607210.err.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Peter Boncz (boncz)
&lt;br&gt;Date: 2007-06-05 18:37
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=591107
&lt;br&gt;Originator: YES
&lt;br&gt;&lt;br&gt;fixed
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2007-06-04 21:19
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=572415
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;See also
&lt;br&gt;[ 1730547 ] XQ: Mserver crashes on concatenated query
&lt;br&gt;&lt;a href=&quot;http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1730547&amp;group_id=56967&amp;atid=482468&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1730547&amp;group_id=56967&amp;atid=482468&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2007-05-29 10:24
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=572415
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;See also
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Current/pathfinder/.mTests103/GNU.64.64.d-Fedora6/tests_BugTracker/server-side_compilation_crash.SF-1607210.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Current/pathfinder/.mTests103/GNU.64.64.d-Fedora6/tests_BugTracker/server-side_compilation_crash.SF-1607210.err.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Current/pathfinder/.mTests103/GNU.64.64.d-Fedora6/tests_BugTracker/server-side_compilation_crash.SF-1607210.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Current/pathfinder/.mTests103/GNU.64.64.d-Fedora6/tests_BugTracker/server-side_compilation_crash.SF-1607210.out.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2007-05-28 12:33
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=572415
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;Added test in
&lt;br&gt;pathfinder/tests/BugTracker/Tests/server-side_compilation_crash.SF-1607210*
&lt;br&gt;&lt;br&gt;As opposed to
&lt;br&gt;[ 1207048 ] XQuery: crashtest
&lt;br&gt;&lt;a href=&quot;http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1207048&amp;group_id=56967&amp;atid=482468&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1207048&amp;group_id=56967&amp;atid=482468&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Current/pathfinder/.mTests103/GNU.64.64.d-Fedora6/tests_BugDay_2005-11-09_0.9.3/xquery_crashtest.SF-1207048.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Current/pathfinder/.mTests103/GNU.64.64.d-Fedora6/tests_BugDay_2005-11-09_0.9.3/xquery_crashtest.SF-1207048.out.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Current/pathfinder/.mTests103/GNU.64.64.d-Fedora6/tests_BugDay_2005-11-09_0.9.3/xquery_crashtest.SF-1207048.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Current/pathfinder/.mTests103/GNU.64.64.d-Fedora6/tests_BugDay_2005-11-09_0.9.3/xquery_crashtest.SF-1207048.err.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;it still crashes with a segfault, i.e.,
&lt;br&gt;the new fence does not catch the stack overflow in this case, yet.
&lt;br&gt;&lt;br&gt;Not analysed, yet.
&lt;br&gt;&lt;br&gt;Re-opend to keep us reminded to have another look at this one.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Peter Boncz (boncz)
&lt;br&gt;Date: 2007-05-25 23:55
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=591107
&lt;br&gt;Originator: YES
&lt;br&gt;&lt;br&gt;fixed using a fence
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2006-12-11 16:10
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=572415
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;I am pretty sure, this is a problem with recursive burg-generated code
&lt;br&gt;running out of stack space, which in unfortunately out of out stack space
&lt;br&gt;control, and hence IMHO very hard to prevent/fix...
&lt;br&gt;With &amp;quot;pf&amp;quot; standalone, it happens as well, just with a longer path
&lt;br&gt;expression (29 child steps in my case):
&lt;br&gt;&lt;br&gt;$ n=28 ; i=0 ; q='doc(&amp;quot;MyDoc.xml&amp;quot;)' ; while [ $i -lt $n ] ; do i=$[i+1] ;
&lt;br&gt;q=&amp;quot;$q`printf &amp;quot;/t%02d&amp;quot; $i`&amp;quot; ; done ; echo $q | tee /tmp/q.xq ; pf /tmp/q.xq
&lt;br&gt;&amp;gt;/dev/null
&lt;br&gt;doc(&amp;quot;MyDoc.xml&amp;quot;)/t01/t02/t03/t04/t05/t06/t07/t08/t09/t10/t11/t12/t13/t14/t15/t16/t17/t18/t19/t20/t21/t22/t23/t24/t25/t26/t27/t28
&lt;br&gt;&lt;br&gt;$ n=29 ; i=0 ; q='doc(&amp;quot;MyDoc.xml&amp;quot;)' ; while [ $i -lt $n ] ; do i=$[i+1] ;
&lt;br&gt;q=&amp;quot;$q`printf &amp;quot;/t%02d&amp;quot; $i`&amp;quot; ; done ; echo $q | tee /tmp/q.xq ; pf /tmp/q.xq
&lt;br&gt;&amp;gt;/dev/null
&lt;br&gt;doc(&amp;quot;MyDoc.xml&amp;quot;)/t01/t02/t03/t04/t05/t06/t07/t08/t09/t10/t11/t12/t13/t14/t15/t16/t17/t18/t19/t20/t21/t22/t23/t24/t25/t26/t27/t28/t29
&lt;br&gt;Segmentation fault
&lt;br&gt;&lt;br&gt;$ gdb --args pf /tmp/q.xq
&lt;br&gt;GNU gdb Red Hat Linux (6.3.0.0-1.84rh)
&lt;br&gt;Copyright 2004 Free Software Foundation, Inc.
&lt;br&gt;GDB is free software, covered by the GNU General Public License, and you
&lt;br&gt;are
&lt;br&gt;welcome to change it and/or distribute copies of it under certain
&lt;br&gt;conditions.
&lt;br&gt;Type &amp;quot;show copying&amp;quot; to see the conditions.
&lt;br&gt;There is absolutely no warranty for GDB. &amp;nbsp;Type &amp;quot;show warranty&amp;quot; for
&lt;br&gt;details.
&lt;br&gt;This GDB was configured as &amp;quot;x86_64-redhat-linux-gnu&amp;quot;...Using host
&lt;br&gt;libthread_db library &amp;quot;/lib64/libthread_db.so.1&amp;quot;.
&lt;br&gt;&lt;br&gt;(gdb) r
&lt;br&gt;Starting program:
&lt;br&gt;/net/corona.ins.cwi.nl/export/scratch0/manegold/Monet/Testing/Stable/.GNU.64.32.d.--disable-optimize_--enable-debug_--enable-assert.PREFIX./PATHFINDER/bin/pf
&lt;br&gt;/tmp/q.xq
&lt;br&gt;[Thread debugging using libthread_db enabled]
&lt;br&gt;[New Thread 46912496328800 (LWP 30516)]
&lt;br&gt;&lt;br&gt;Program received signal SIGSEGV, Segmentation fault.
&lt;br&gt;[Switching to Thread 46912496328800 (LWP 30516)]
&lt;br&gt;0x0000000000483666 in reduce (p=0x2aaaaaae0b90, goalnt=50) at
&lt;br&gt;/ufs/manegold/_/scratch0/Monet/Testing/Stable/pathfinder/compiler/core/fs.brg:874
&lt;br&gt;874 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rule = PFfs_rule (STATE_LABEL (p), goalnt);
&lt;br&gt;(gdb) li
&lt;br&gt;869 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PFpnode_t &amp;nbsp; &amp;nbsp;*kids[MAX_KIDS]; /* leaf nodes of this rule */
&lt;br&gt;870 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bool &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;topdown; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* is this a top-down rule? */
&lt;br&gt;871 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PFcnode_t &amp;nbsp; &amp;nbsp;*c; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* temporary helper variable */
&lt;br&gt;872
&lt;br&gt;873 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* determine rule that matches for this non-terminal */
&lt;br&gt;874 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rule = PFfs_rule (STATE_LABEL (p), goalnt);
&lt;br&gt;875
&lt;br&gt;876 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* PFinfo (OOPS_NOTICE, &amp;quot;match for rule %i&amp;quot;, rule); */
&lt;br&gt;877 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; assert (rule);
&lt;br&gt;878
&lt;br&gt;(gdb) up
&lt;br&gt;#1 &amp;nbsp;0x00000000004837d9 in reduce (p=0x2aaaaaae0b90, goalnt=49) at
&lt;br&gt;/ufs/manegold/_/scratch0/Monet/Testing/Stable/pathfinder/compiler/core/fs.brg:929
&lt;br&gt;929 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; reduce (kids[i], nts[i]);
&lt;br&gt;(gdb) li
&lt;br&gt;924 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*
&lt;br&gt;925 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* Recursively invoke compilation. &amp;nbsp;This means bottom-up
&lt;br&gt;compilation.
&lt;br&gt;926 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;927 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (!topdown)
&lt;br&gt;928 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (unsigned short i = 0; nts[i]; i++)
&lt;br&gt;929 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; reduce (kids[i], nts[i]);
&lt;br&gt;930
&lt;br&gt;931 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*
&lt;br&gt;932 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PFinfo (OOPS_NOTICE, &amp;quot;processing rule %i&amp;quot;, rule);
&lt;br&gt;933 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; */
&lt;br&gt;(gdb) bt
&lt;br&gt;#0 &amp;nbsp;0x0000000000483666 in reduce (p=0x2aaaaaae0b90, goalnt=50) at
&lt;br&gt;/ufs/manegold/_/scratch0/Monet/Testing/Stable/pathfinder/compiler/core/fs.brg:874
&lt;br&gt;#1 &amp;nbsp;0x00000000004837d9 in reduce (p=0x2aaaaaae0b90, goalnt=49) at
&lt;br&gt;/ufs/manegold/_/scratch0/Monet/Testing/Stable/pathfinder/compiler/core/fs.brg:929
&lt;br&gt;[...]
&lt;br&gt;#680 0x00000000004837d9 in reduce (p=0x2aaaaaae5f00, goalnt=1) at #680
&lt;br&gt;0x00000000004837d9 in reduce (p=0x2aaaaaae5f00, goalnt=1) at
&lt;br&gt;/ufs/manegold/_/scratch0/Monet/Testing/Stable/pathfinder/compiler/core/fs.brg:929
&lt;br&gt;#681 0x0000000000491eaf in PFfs (r=0x2aaaaaae5f00) at
&lt;br&gt;/ufs/manegold/_/scratch0/Monet/Testing/Stable/pathfinder/compiler/core/fs.brg:4209
&lt;br&gt;#682 0x00000000004065da in PFcompile (url=0x7ffffffb672e &amp;quot;/tmp/q.xq&amp;quot;,
&lt;br&gt;pfout=0x38ecf318c0, status=0x731f40) at
&lt;br&gt;/ufs/manegold/_/scratch0/Monet/Testing/Stable/pathfinder/compiler/compile.c:381
&lt;br&gt;#683 0x0000000000405f11 in main (argc=2, argv=0x7ffffffb4e78) at
&lt;br&gt;/ufs/manegold/_/scratch0/Monet/Testing/Stable/pathfinder/compiler/main.c:905
&lt;br&gt;(gdb)
&lt;br&gt;/ufs/manegold/_/scratch0/Monet/Testing/Stable/pathfinder/compiler/core/fs.brg:929
&lt;br&gt;#681 0x0000000000491eaf in PFfs (r=0x2aaaaaae5f00) at
&lt;br&gt;/ufs/manegold/_/scratch0/Monet/Testing/Stable/pathfinder/compiler/core/fs.brg:4209
&lt;br&gt;#682 0x00000000004065da in PFcompile (url=0x7ffffffb672e &amp;quot;/tmp/q.xq&amp;quot;,
&lt;br&gt;pfout=0x38ecf318c0, status=0x731f40) at
&lt;br&gt;/ufs/manegold/_/scratch0/Monet/Testing/Stable/pathfinder/compiler/compile.c:381
&lt;br&gt;#683 0x0000000000405f11 in main (argc=2, argv=0x7ffffffb4e78) at
&lt;br&gt;/ufs/manegold/_/scratch0/Monet/Testing/Stable/pathfinder/compiler/main.c:905
&lt;br&gt;(gdb)
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2006-12-02 08:38
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=572415
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;How does it crash?
&lt;br&gt;Is there any error message or exit status?
&lt;br&gt;Does it work for stand-alone pf also for n &amp;gt;&amp;gt; 15?
&lt;br&gt;&lt;br&gt;Might well be a stack-overflow in some burg generated code...
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=1607210&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=1607210&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26457103&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-1607210---XQ%3A-server-side-compilation-crash-%28member-benchmark%29-tp26457103p26457103.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26457102</id>
	<title>[ monetdb-Bugs-1730547 ] XQ: Mserver crashes on concatenated query</title>
	<published>2009-11-21T06:34:54Z</published>
	<updated>2009-11-21T06:34:54Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #1730547, was opened at 2007-06-04 10:42
&lt;br&gt;Message generated for change (Comment added) made by stmane
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=1730547&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=1730547&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: PF/runtime
&lt;br&gt;Group: Pathfinder CVS Head
&lt;br&gt;Status: Open
&lt;br&gt;Resolution: Fixed
&lt;br&gt;Priority: 8
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Wouter Alink (vzzzbx)
&lt;br&gt;Assigned to: Stefan Manegold (stmane)
&lt;br&gt;Summary: XQ: Mserver crashes on concatenated query
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;The attached query looks like:
&lt;br&gt;&lt;br&gt;&amp;quot;aap&amp;quot;,
&lt;br&gt;&amp;quot;aap&amp;quot;,
&lt;br&gt;&amp;quot;aap&amp;quot;,
&lt;br&gt;&amp;quot;aap&amp;quot;,
&lt;br&gt;... (1000 times)
&lt;br&gt;&amp;quot;aap&amp;quot;,
&lt;br&gt;&amp;quot;aap&amp;quot;
&lt;br&gt;&lt;br&gt;When given to Mserver, it says: Segmentation Fault (0.12 as well as 0.17 (build last week)).
&lt;br&gt;&lt;br&gt;This bug should not have high priority.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-21 15:34
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;===================================================================
&lt;br&gt;2009/11/21 - stmane: pathfinder/runtime/pathfinder.mx,1.462.4.12
&lt;br&gt;&lt;br&gt;use more conservative stack limit (PFmaxstack)
&lt;br&gt;for too deep recusion check (PFrecursion_fence())
&lt;br&gt;to prevent segfault (due to too deep recursion and
&lt;br&gt;consequent stack overflow) in tests
&lt;br&gt;tests/BugTracker/Tests/collection_management.SF-1726599.*
&lt;br&gt;tests/BugTracker/Tests/crash_on_concatenated_query.SF-1730547.*
&lt;br&gt;cf.,
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;aid=1607210&amp;group_id=56967&amp;atid=482468&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;aid=1607210&amp;group_id=56967&amp;atid=482468&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;aid=1730547&amp;group_id=56967&amp;atid=482468&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;aid=1730547&amp;group_id=56967&amp;atid=482468&lt;/a&gt;&lt;br&gt;===================================================================
&lt;br&gt;2009/11/21 - stmane:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/crash_on_concatenated_query.SF-1730547.timeout,1.1.2.1
&lt;br&gt;&lt;br&gt;extended timeout for slow(er) systems
&lt;br&gt;===================================================================
&lt;br&gt;&lt;br&gt;Report can be closed once nightly testing confirms the fix for all
&lt;br&gt;platforms.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-17 10:15
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Instead of a &amp;quot;ERROR = !fatal error: aborted too deep recursion&amp;quot;
&lt;br&gt;the test now (again) triggers a timeout or segfault on all platform:
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/crash_on_concatenated_query.SF-1730547.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/crash_on_concatenated_query.SF-1730547.err.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2008-11-19 14:52
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;It was the &amp;quot;expected&amp;quot; output, since this test used to trigger a &amp;quot;ERROR =
&lt;br&gt;!fatal error: aborted too deep recursion&amp;quot; (and hence produce no output) on
&lt;br&gt;all platforms.
&lt;br&gt;&lt;br&gt;Apparently, this is no longer the case but now some platforms are able to
&lt;br&gt;run the test without error, i.e., producing some (correct? -&amp;gt; to be
&lt;br&gt;checked! ...) output.
&lt;br&gt;&lt;br&gt;Maybe, we need to split this test into two, a small one that works on all
&lt;br&gt;platforms and a huge one that fails (i.e., triggers a reasonable error
&lt;br&gt;message) on all platforms ...
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Jan Rittinger (tsheyar)
&lt;br&gt;Date: 2008-11-19 14:42
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Hmm I'm not sure if the 'correct' output is indeed the correct one:
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Current/pathfinder/.mTests103/Int.64.32.d.1-Fedora8/tests_BugTracker/crash_on_concatenated_query.SF-1730547.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Current/pathfinder/.mTests103/Int.64.32.d.1-Fedora8/tests_BugTracker/crash_on_concatenated_query.SF-1730547.out.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;@ Stefan could you please verify.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2007-06-05 20:44
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=572415
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;Test added in
&lt;br&gt;pathfinder/tests/BugTracker/Tests/Attic/crash_on_concatenated_query.SF-1730547.*
&lt;br&gt;&lt;br&gt;Thanks to Peter's latest fix, it now correctly triggers
&lt;br&gt;&amp;quot;ERROR = !fatal error: aborted too deep recursion&amp;quot;
&lt;br&gt;instead of crashing the server.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Peter Boncz (boncz)
&lt;br&gt;Date: 2007-06-05 18:31
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=591107
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;fixed
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Peter Boncz (boncz)
&lt;br&gt;Date: 2007-06-05 18:31
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=591107
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;fixed
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2007-06-04 21:19
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=572415
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;Debugging releaved that the segfault is indeed caused by burg running out
&lt;br&gt;of stack space due to too deep recursion.
&lt;br&gt;&lt;br&gt;See also
&lt;br&gt;[ 1607210 ] XQ: server-side compilation crash (member benchmark)
&lt;br&gt;&lt;a href=&quot;http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1607210&amp;group_id=56967&amp;atid=482468&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1607210&amp;group_id=56967&amp;atid=482468&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2007-06-04 18:21
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=572415
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;for got to mention:
&lt;br&gt;pf &amp;quot;eventually&amp;quot; produces some MIL plan; no error.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2007-06-04 18:20
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=572415
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;Running this through plain pf (0.18), i.e.,
&lt;br&gt;&lt;br&gt;{ for i in `seq 1 999` ; do echo '&amp;quot;aap&amp;quot;,' ; done ; echo '&amp;quot;aap&amp;quot;' ; } | pf
&lt;br&gt;&lt;br&gt;makes pf grow to 2.7 GB virt (1.8 GB res) on my 64-bit FC6 machine;
&lt;br&gt;hence, this might well be a memory and/or burg problem,
&lt;br&gt;especially on 32-bit machines.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=1730547&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=1730547&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26457102&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-1730547---XQ%3A-Mserver-crashes-on-concatenated-query-tp26457102p26457102.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26455335</id>
	<title>[ monetdb-Bugs-1726599 ] XQuery: collection management broken</title>
	<published>2009-11-21T02:42:22Z</published>
	<updated>2009-11-21T02:42:22Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #1726599, was opened at 2007-05-27 22:32
&lt;br&gt;Message generated for change (Comment added) made by stmane
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=1726599&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=1726599&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: PF/runtime
&lt;br&gt;Group: Pathfinder CVS Head
&lt;br&gt;&amp;gt;Status: Closed
&lt;br&gt;Resolution: Fixed
&lt;br&gt;Priority: 8
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Wouter Alink (vzzzbx)
&lt;br&gt;Assigned to: Peter Boncz (boncz)
&lt;br&gt;Summary: XQuery: collection management broken
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;Today's MonetDB 4.17
&lt;br&gt;&lt;br&gt;Given a small document: &amp;lt;aap id=&amp;quot;1&amp;quot;/&amp;gt;
&lt;br&gt;&lt;br&gt;shredding it once, deleting it, and shredding it again corrupts the database.
&lt;br&gt;&lt;br&gt;&lt;br&gt;[wouter@localhost test]$
&lt;br&gt;/opt/MonetDB-4.17/bin/MapiClient -lxq -p50170 
&lt;br&gt;xquery&amp;gt;pf:add-doc(&amp;quot;/home/wouter/test.xml&amp;quot;,&amp;quot;doc1.xml&amp;quot;) 
&lt;br&gt;more&amp;gt;xquery&amp;gt;pf:del-doc(&amp;quot;doc1.xml&amp;quot;) 
&lt;br&gt;more&amp;gt;xquery&amp;gt;pf:add-doc(&amp;quot;/home/wouter/test.xml&amp;quot;,&amp;quot;doc1.xml&amp;quot;) 
&lt;br&gt;more&amp;gt;xquery&amp;gt;pf:collection(&amp;quot;doc1.xml&amp;quot;)
&lt;br&gt;more&amp;gt;&amp;lt;aap id=&amp;quot;1&amp;quot;/&amp;gt;&amp;lt;aap id=&amp;quot;1&amp;quot;/&amp;gt;
&lt;br&gt;xquery&amp;gt;
&lt;br&gt;&lt;br&gt;At first sight the document still looks intact:
&lt;br&gt;&lt;br&gt;xquery&amp;gt;doc(&amp;quot;doc1.xml&amp;quot;) 
&lt;br&gt;more&amp;gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;lt;aap id=&amp;quot;1&amp;quot;/&amp;gt;
&lt;br&gt;&lt;br&gt;But then it looks like the document's document node has gone, because:
&lt;br&gt;&lt;br&gt;xquery&amp;gt;doc(&amp;quot;doc1.xml&amp;quot;)/aap
&lt;br&gt;more&amp;gt;
&lt;br&gt;xquery&amp;gt;
&lt;br&gt;&lt;br&gt;gives an empty result.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-21 11:42
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;===================================================================
&lt;br&gt;2009/11/20 - boncz:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/collection_management.SF-1726599.stable.err,1.3.24.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/collection_management.SF-1726599.stable.out,1.3.24.1
&lt;br&gt;approving test output
&lt;br&gt;===================================================================
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-16 22:20
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;re-opened as the test fails on all platforms at least since 2009.04.09
&lt;br&gt;cf.,
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/collection_management.SF-1726599.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/collection_management.SF-1726599.out.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.32.32.d.1-Debian4.0/tests_BugTracker/collection_management.SF-1726599.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.32.32.d.1-Debian4.0/tests_BugTracker/collection_management.SF-1726599.err.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Peter Boncz (boncz)
&lt;br&gt;Date: 2007-06-08 02:23
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=591107
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;fixed
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2007-05-29 10:26
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=572415
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;See also
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Current/pathfinder/.mTests103/GNU.64.64.d-Fedora6/tests_BugTracker/collection_management.SF-1726599.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Current/pathfinder/.mTests103/GNU.64.64.d-Fedora6/tests_BugTracker/collection_management.SF-1726599.err.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Current/pathfinder/.mTests103/GNU.64.64.d-Fedora6/tests_BugTracker/collection_management.SF-1726599.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Current/pathfinder/.mTests103/GNU.64.64.d-Fedora6/tests_BugTracker/collection_management.SF-1726599.out.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2007-05-28 12:55
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=572415
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;Test added in
&lt;br&gt;pathfinder/tests/BugTracker/Tests/collection_management.SF-1726599*
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Peter Boncz (boncz)
&lt;br&gt;Date: 2007-05-28 01:16
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=591107
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;yes indeed, it seems that:
&lt;br&gt;&lt;br&gt;- pf:del-doc() does not cleanup empty-collections, while MIL delete_doc()
&lt;br&gt;does this
&lt;br&gt;&amp;nbsp; as a result, the second add-doc adds the document to the previous
&lt;br&gt;collection
&lt;br&gt;&lt;br&gt;- there seems to be a bug in index filtering for deleted documents in a
&lt;br&gt;multi-doc collection
&lt;br&gt;&amp;nbsp; as the functinality is new, so it is not that surprising
&lt;br&gt;&lt;br&gt;will fix soon
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=1726599&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=1726599&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26455335&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-1726599---XQuery%3A-collection-management-broken-tp26455335p26455335.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26444015</id>
	<title>[ monetdb-Bugs-2808353 ] SQL: not (...) goes far out of hand</title>
	<published>2009-11-20T06:18:28Z</published>
	<updated>2009-11-20T06:18:28Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #2808353, was opened at 2009-06-18 12:48
&lt;br&gt;Message generated for change (Settings changed) made by nielsnes
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2808353&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2808353&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: SQL/Core
&lt;br&gt;Group: SQL CVS Head
&lt;br&gt;&amp;gt;Status: Closed
&lt;br&gt;&amp;gt;Resolution: Rejected
&lt;br&gt;Priority: 3
&lt;br&gt;Private: Yes
&lt;br&gt;Submitted By: Stefan de Konink (skinkie)
&lt;br&gt;Assigned to: Niels Nes (nielsnes)
&lt;br&gt;Summary: SQL: not (...) goes far out of hand
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;To create the table; /export refers to loki.
&lt;br&gt;&lt;br&gt;create table kvk (kvk bigint, bedrijfsnaam varchar(255), adres varchar(64), 
&lt;br&gt;postcode varchar(6), plaats varchar(32), type varchar(16));
&lt;br&gt;create table anbikvk (naam varchar(256), vestigingsplaats varchar(32), besch
&lt;br&gt;ikking date, intrekking date, kvk bigint);
&lt;br&gt;create table anbi (naam varchar(256), vestigingsplaats varchar(32), beschikk
&lt;br&gt;ing timestamp, intrekking timestamp);
&lt;br&gt;COPY 27598 RECORDS INTO anbi FROM '/export/scratch1/konink/anbi.csv' USING DELIMITERS ',', '\n', '&amp;quot;&amp;quot;';
&lt;br&gt;COPY 1621594 RECORDS INTO kvk FROM '/export/scratch1/konink/allesn' USING DELIMITERS ',', '\n', '&amp;quot;&amp;quot;';
&lt;br&gt;insert into anbikvk select naam, vestigingsplaats, beschikking, intrekking, 
&lt;br&gt;kvk from kvk,anbi where lower(naam) = lower(bedrijfsnaam) and lower(plaats) = lo
&lt;br&gt;wer(vestigingsplaats);
&lt;br&gt;select count(*) from kvk,anbi where not (lower(naam) = lower(bedrijfsnaam) and lower(plaats) = lowers(vestigingsplaats));
&lt;br&gt;&lt;br&gt;Known errors are:
&lt;br&gt;- Segmentation fault (64/32)
&lt;br&gt;- BUN error
&lt;br&gt;- !ERROR: GDKsave: error on: name=54/5412, ext=head, mode=1
&lt;br&gt;&amp;nbsp; !OS: No space left on device
&lt;br&gt;&amp;nbsp;!ERROR: GDKload: failed name=54/5412, ext=head
&lt;br&gt;&lt;br&gt;The database is by far smaller than main memory.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Niels Nes (nielsnes)
&lt;br&gt;Date: 2009-11-20 14:18
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;closing as the generated plan is correct. The crossproduct is in this case
&lt;br&gt;needed because of the not and and lower. As long as we do not have a case
&lt;br&gt;insensitive join, rewriting lower(x) = lower(y) isn't possible/usefull.
&lt;br&gt;No test possible as the crash (caused by the large crossproduct result)
&lt;br&gt;would re quire a bit table.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-08-14 11:58
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;tagged subject
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan de Konink (skinkie)
&lt;br&gt;Date: 2009-08-11 00:30
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Points:
&lt;br&gt;1) Can lower = lower (or upper = upper) be recognized in the parser as
&lt;br&gt;case insensitive comparison? Instead of transforming two entire columns to
&lt;br&gt;another value.
&lt;br&gt;&lt;br&gt;Plan:
&lt;br&gt;#project (
&lt;br&gt;#| group by (
&lt;br&gt;#| | select (
&lt;br&gt;#| | | crossproduct (
&lt;br&gt;#| | | | table(sys.kvk) [ kvk.bedrijfsnaam, kvk.plaats, kvk.%TID% NOT NULL
&lt;br&gt;],
&lt;br&gt;#| | | | table(sys.anbi) [ anbi.naam, anbi.vestigingsplaats, anbi.%TID%
&lt;br&gt;NOT NULL ]
&lt;br&gt;#| | | )
&lt;br&gt;#| | ) [ not(and(=(lower(anbi.naam), lower(kvk.bedrijfsnaam)),
&lt;br&gt;=(lower(kvk.plaats), lower(anbi.vestigingsplaats)))) = true ]
&lt;br&gt;#| ) [ &amp;nbsp;] [ count NOT NULL as L1 ]
&lt;br&gt;#) [ L1 NOT NULL ]
&lt;br&gt;&lt;br&gt;Trace (doesn't run on a full database) as will be attached.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Martin Kersten (mlkersten)
&lt;br&gt;Date: 2009-08-06 14:03
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;To be further investigated when the minimal database + testscript is
&lt;br&gt;provided.
&lt;br&gt;Alternatively, a TRACE of this query against the original might provide
&lt;br&gt;the information needed.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2808353&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2808353&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26444015&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-2808353---SQL%3A-not-%28...%29-goes-far-out-of-hand-tp26444015p26444015.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26442972</id>
	<title>[ monetdb-Bugs-2686008 ] SQL: multi-attribute GROUP BY may ignore sortedness</title>
	<published>2009-11-20T05:05:37Z</published>
	<updated>2009-11-20T05:05:37Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #2686008, was opened at 2009-03-13 09:43
&lt;br&gt;Message generated for change (Settings changed) made by nielsnes
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2686008&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2686008&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: SQL/Core
&lt;br&gt;Group: SQL &amp;quot;stable&amp;quot;
&lt;br&gt;&amp;gt;Status: Closed
&lt;br&gt;&amp;gt;Resolution: Fixed
&lt;br&gt;Priority: 5
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Roberto Cornacchia (cornuz)
&lt;br&gt;Assigned to: Niels Nes (nielsnes)
&lt;br&gt;Summary: SQL: multi-attribute GROUP BY may ignore sortedness
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;-- A table with unsorted values in a and b
&lt;br&gt;create table unsorted (a int,b int);
&lt;br&gt;insert into unsorted values (2, 3);
&lt;br&gt;insert into unsorted values (1, 2);
&lt;br&gt;insert into unsorted values (4, 1);
&lt;br&gt;insert into unsorted values (3, 2);
&lt;br&gt;insert into unsorted values (2, 3);
&lt;br&gt;insert into unsorted values (3, 3);
&lt;br&gt;insert into unsorted values (3, 1);
&lt;br&gt;insert into unsorted values (4, 3);
&lt;br&gt;&lt;br&gt;-- Store it in a new table with tuples sorted on a,b
&lt;br&gt;create table sorted (a int, b int);
&lt;br&gt;insert into sorted
&lt;br&gt;select * from unsorted
&lt;br&gt;order by a,b;
&lt;br&gt;&lt;br&gt;-- these tho are semantically equivalent (the group by attributes are swapped)
&lt;br&gt;trace select a,b from sorted group by a,b;
&lt;br&gt;trace select a,b from sorted group by b,a;
&lt;br&gt;&lt;br&gt;The first version is much faster, as it exploits the sortedness on a,b when grouping on a,b.
&lt;br&gt;The second version identifies the same groups. Therefore, the sortedness on a,b could be exploited when grouping on b,a, but it isn't.
&lt;br&gt;&lt;br&gt;Even on such a small example, the trace shows already a performance difference, which becomes dramatic on larger data.
&lt;br&gt;&lt;br&gt;In general, when a table is sorted on a1,a2,...,aN ,
&lt;br&gt;grouping on any permutation of a1,a2,...,aK with K&amp;lt;=N should exploit sortedness.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Niels Nes (nielsnes)
&lt;br&gt;Date: 2009-11-20 13:05
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;added a test to
&lt;br&gt;src/test/BugTracker-2009/Tests/use_order_column_first.SF-2686008.sql
&lt;br&gt;&lt;br&gt;fixed by an optimizer which checks for sorted columns in the group by
&lt;br&gt;(only works when we can easily derive the base table)
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-03-13 09:51
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Good point --- while performance can be considered bugs, a solution might
&lt;br&gt;only become available as new feature in the CVS HEAD and hence in the next
&lt;br&gt;feature release --- Martin's recently added &amp;quot;derivepath&amp;quot; MAL optimizer
&lt;br&gt;provides a framework that can be exploited to do the proposed (and other,
&lt;br&gt;e.g., exploit also uniqueness) optimization for multi-attribute grouping,
&lt;br&gt;very similar to what the &amp;quot;joinpath&amp;quot; optimizer does for (binary- / mapping-
&lt;br&gt;/ pivot-) join paths.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2686008&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2686008&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26442972&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-2686008---SQL%3A-multi-attribute-GROUP-BY-may-ignore-sortedness-tp26442972p26442972.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26433332</id>
	<title>[ monetdb-Bugs-2898944 ] pf takes 'forever' (&gt; 1 hour) to compile particular query</title>
	<published>2009-11-19T12:15:56Z</published>
	<updated>2009-11-19T12:15:56Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #2898944, was opened at 2009-11-17 09:27
&lt;br&gt;Message generated for change (Comment added) made by tsheyar
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: PF/compiler
&lt;br&gt;Group: Pathfinder &amp;quot;candidate&amp;quot;
&lt;br&gt;Status: Open
&lt;br&gt;Resolution: Fixed
&lt;br&gt;Priority: 6
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Axel Belinfante (axelbel)
&lt;br&gt;Assigned to: Jan Rittinger (tsheyar)
&lt;br&gt;Summary: pf takes 'forever' (&amp;gt; 1 hour) to compile particular query
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;I don't know whether the following really qualifies as bug, or just is a case of 'user error by giving stupid input.
&lt;br&gt;In any case, I would like to bring this to your attention.
&lt;br&gt;&lt;br&gt;When I compile a query for attached module definition with pf (may or aug or pre-nov version), compilation takes 'forever'.
&lt;br&gt;When I replace &amp;nbsp;the clause &amp;nbsp;ecv:to-human($g0, $human_type) &amp;nbsp; by simple &amp;nbsp; $g0
&lt;br&gt;and remove definitions of &amp;nbsp; $human_type &amp;nbsp; and &amp;nbsp; to-human &amp;nbsp; it compiles almost instantly.
&lt;br&gt;It is the huge difference in compilation time that surprises me.
&lt;br&gt;&lt;br&gt;The query I compile is:
&lt;br&gt;&lt;br&gt;import module namespace ecv = &amp;quot;&lt;a href=&quot;http://www.cs.utwente.nl/~belinfan/ecv&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.utwente.nl/~belinfan/ecv&lt;/a&gt;&amp;quot; at &amp;quot;/tmp/long-compilation.xq&amp;quot;; ecv:view-from-save(&amp;quot;eprints-export-conv-fmt.xml&amp;quot;)
&lt;br&gt;&lt;br&gt;where tmp/long-compilation.xq is the attached module.
&lt;br&gt;&lt;br&gt;&lt;br&gt;What the query attempts to do: obtain results from the database, order these on two criteria, and when listing the results, insert human-readable headers.
&lt;br&gt;The human-readable headers are obtained by the to-human mapping from field value (used as ordering criterium) to human-readable string.
&lt;br&gt;At some point I just used if-then-else-if-then-else etc. to do the mapping, but that seemed slower to compile than the approach I took here.
&lt;br&gt;&lt;br&gt;Suggestions for rewriting the query to a fast-compiling one would be considered as a fix too, I guess.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Jan Rittinger (tsheyar)
&lt;br&gt;Date: 2009-11-19 21:15
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Alex,
&lt;br&gt;&lt;br&gt;if you want to toy around with the algebraic optimizations (option -o of
&lt;br&gt;pf) and its effect on compile and runtime, then feel free to try out the
&lt;br&gt;following optimizations:
&lt;br&gt;&lt;br&gt;-oOIKCGP
&lt;br&gt;-oOIKCG_VG_IS_GYSVR_DC_GP
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-19 18:22
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;&amp;nbsp;time &amp;nbsp;pf -oOIKCG_VG_IS_GYECSVR_DC_GP /tmp/long-compilation3.req &amp;gt;
&lt;br&gt;/tmp/long-compilation3.mil
&lt;br&gt;15.868u 0.472s 0:16.33 100.0% &amp;nbsp; 0+0k 0+0io 0pf+0w
&lt;br&gt;&lt;br&gt;time mclient -lmil -p 51012 /tmp/long-compilation3.mil &amp;gt; /dev/null 
&lt;br&gt;0.016u 0.032s 0:03.80 1.0% &amp;nbsp; &amp;nbsp; &amp;nbsp;0+0k 0+0io 0pf+0w
&lt;br&gt;&lt;br&gt;compilation time is indeed much, much better (though still a bit long)
&lt;br&gt;run time of resulting .mil is kind of ok (even faster would be even
&lt;br&gt;better, of course :-)
&lt;br&gt;&lt;br&gt;anything else I could try?
&lt;br&gt;otherwise, I guess I will just use the options you suggested when
&lt;br&gt;compiling those generated queries,
&lt;br&gt;and that should do for now.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Jan Rittinger (tsheyar)
&lt;br&gt;Date: 2009-11-19 18:04
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Axel,
&lt;br&gt;&lt;br&gt;you hit different problems here. Your original bug caused the planner to
&lt;br&gt;take generate millions of plans. 
&lt;br&gt;&lt;br&gt;Your latest example however generates a plan that features 5420 operators
&lt;br&gt;out of which 660 are joins. Here the join optimization takes a little
&lt;br&gt;bit...
&lt;br&gt;&lt;br&gt;What happens if you don't optimize much? -- Try e.g., the following (if
&lt;br&gt;you leave out the 'E' letter compilation time will probably halve):
&lt;br&gt;&lt;br&gt;echo 'import module namespace ecv =
&lt;br&gt;&amp;quot;&lt;a href=&quot;http://www.cs.utwente.nl/~belinfan/ecv&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.utwente.nl/~belinfan/ecv&lt;/a&gt;&amp;quot; at &amp;quot;/tmp/long-compilation3.xq&amp;quot;;
&lt;br&gt;ecv:view-from-save(&amp;quot;eprints-export-conv-fmt.xml&amp;quot;)' | pf
&lt;br&gt;-oOIKCG_VG_IS_GYECSVR_DC_GP &amp;gt; foo; Mserver foo
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-19 14:13
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;I have tried the latest fix.
&lt;br&gt;there is a good thing, and there is a bad thing.
&lt;br&gt;&lt;br&gt;the good thing is that for these queries the fix works.
&lt;br&gt;that is really, really great.
&lt;br&gt;&lt;br&gt;the bad thing is that it is easy to add complexity (add more of the same
&lt;br&gt;thing),
&lt;br&gt;and again have a relatively slow compilation - although, due to the fix
&lt;br&gt;now compilation does finish.
&lt;br&gt;&lt;br&gt;fact is, those queries are not hand-written, but generated from more
&lt;br&gt;high-level user input.
&lt;br&gt;it is easy for the user to make a slight change to the intended
&lt;br&gt;presentation of the query results 
&lt;br&gt;(add more refined structuring/grouping of the results), which can result
&lt;br&gt;in query for which
&lt;br&gt;again compilation time is long.
&lt;br&gt;&lt;br&gt;to give an example:
&lt;br&gt;in long-compilation2.xq I have 3 levels of structure. it compiles in about
&lt;br&gt;3 secs.
&lt;br&gt;file long-compilation3.xq (attached) &amp;nbsp;has 6 levels of structure. it
&lt;br&gt;compiles in approx. 37 minutes.
&lt;br&gt;running the compiled query takes iat most a couple of seconds
&lt;br&gt;&lt;br&gt;I tried rewriting the queries.
&lt;br&gt;I could only obtain reduced compilation time (only 2 minutes) by adding
&lt;br&gt;additional
&lt;br&gt;(pre=-processed) data to the database.
&lt;br&gt;even then, running the compiled query takes approximately a minute...
&lt;br&gt;&lt;br&gt;(I also tried compiling with -M -- this is fast, but I &amp;nbsp;was unable to run
&lt;br&gt;it
&lt;br&gt;&amp;nbsp;MAPI &amp;nbsp;= dbguest@localhost:51012
&lt;br&gt;QUERY = proc_vid.insert(&amp;quot;fnC8CAED69_print_4_eprint_xs_element1&amp;quot;,
&lt;br&gt;1059825001LL);
&lt;br&gt;&amp;nbsp; &amp;nbsp; ...
&lt;br&gt;ERROR = !ERROR: interpret: unknown variable 'proc_vid'.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; !ERROR: interpret_params: insert(param 1): evaluation error.
&lt;br&gt;)
&lt;br&gt;&lt;br&gt;I'm not sure you want to close this issue while such 'slight' changes to a
&lt;br&gt;query
&lt;br&gt;have such huge effects on compilation time. 
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-19 10:00
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Test works fine:
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/slow_compilation.SF-2898944.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/slow_compilation.SF-2898944.out.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/slow_compilation.SF-2898944.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/slow_compilation.SF-2898944.err.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Axel,
&lt;br&gt;&lt;br&gt;could you please check and report whether Jan's fix also works for you,
&lt;br&gt;and if so, close this bug report?
&lt;br&gt;&lt;br&gt;Thanks!
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Sjoerd Mullender (sjoerd)
&lt;br&gt;Date: 2009-11-18 19:35
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;If this fix works out, it will be in the upcoming release. &amp;nbsp;(We had some
&lt;br&gt;show stoppers with yesterday's release candidate.)
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 18:34
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;===================================================================
&lt;br&gt;2009/11/18 - stmane: pathfinder/tests/BugTracker/Tests/All,1.146.2.11
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.bat,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.mod1.xq,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.mod2.xq,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.q1.xq.in,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.q2.xq.in,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.sh,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.stable.err,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.stable.out,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.timeout,1.1.2.1
&lt;br&gt;&lt;br&gt;added test (compilation via pf, only) for
&lt;br&gt;ID: 2898944 &amp;quot;pf takes 'forever' (&amp;gt; 1 hour) to compile particular query&amp;quot;
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;aid=2898944&amp;group_id=56967&amp;atid=482468&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;aid=2898944&amp;group_id=56967&amp;atid=482468&lt;/a&gt;&lt;br&gt;&lt;br&gt;Seems to work fine, now;
&lt;br&gt;compiling both queries with both `pf -A` &amp; `pf -M`
&lt;br&gt;takes less than 2 secs on my machine with a debug build.
&lt;br&gt;Set timeout to 6 secs.
&lt;br&gt;===================================================================
&lt;br&gt;&lt;br&gt;report can be closed, once nightly testing and Axel confirm the fix.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Jan Rittinger (tsheyar)
&lt;br&gt;Date: 2009-11-18 16:51
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Plan generation with permutations gets you into trouble.
&lt;br&gt;&lt;br&gt;Planning the distinct operator requires a full ordering of the table as we
&lt;br&gt;use the order extend in MIL to remove duplicates. To calculate the plans
&lt;br&gt;for all possible orders we generate all permutations. (In the first
&lt;br&gt;long-compilation example distinct was applied to a table with 7 columns and
&lt;br&gt;for the second example distinct operated on 8 columns.)
&lt;br&gt;&lt;br&gt;Now we first eliminate all functionally dependent and constant columns as
&lt;br&gt;they do not add any order information. If we still have too many
&lt;br&gt;permutations we ignore all orderings (plans) after a magic boundary.
&lt;br&gt;&lt;br&gt;With this changes in place the compile times are (almost) acceptable:
&lt;br&gt;&lt;br&gt;pf -T query-long-compilation.xq 
&lt;br&gt;...
&lt;br&gt;overall compilation time:		 974ms
&lt;br&gt;&lt;br&gt;pf -T query-long-compilation2.xq 
&lt;br&gt;...
&lt;br&gt;overall compilation time:		 02s 781ms
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 12:53
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Just a few general notes:
&lt;br&gt;&lt;br&gt;1)
&lt;br&gt;A user program can at most trigger a machine crash, but never cause it.
&lt;br&gt;If a user program triggers a machine crash (e.g., by using resources
&lt;br&gt;(too?) many resources, it's in the end a problem (bug) in the OS (or the
&lt;br&gt;hardware) that cannot properly handle (or prevent) such (over-)load
&lt;br&gt;properly.
&lt;br&gt;&lt;br&gt;2)
&lt;br&gt;If you kill (via keyboard interrupt ^C or by sending, say, SIGTERM or
&lt;br&gt;SIGKILL) a process that uses lots of memory (and possibly virtual memory,
&lt;br&gt;i.e., swap), it might indeed take some time until that process is gone and
&lt;br&gt;your prompt is back, since the systems needs to clean up that memory (and
&lt;br&gt;swap) and possibly swap your shell back into main memory ...
&lt;br&gt;&lt;br&gt;3)
&lt;br&gt;Yes, a process that is using much memory (i.e., close to or more than the
&lt;br&gt;machine has physical memory) might (usually will) affect the interactive
&lt;br&gt;responsiveness of the machine.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-18 12:36
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;the original long-compilation.xq now finishes in about 10 secs, which is
&lt;br&gt;still longer than I would like,
&lt;br&gt;but much shorter than it used to.
&lt;br&gt;&lt;br&gt;regarding time measurements, I may have caused some confusion, in the
&lt;br&gt;sense that:
&lt;br&gt;&amp;nbsp;- the original long-compilation.xq definitely took 'too long', but likely
&lt;br&gt;I always interruped it
&lt;br&gt;&amp;nbsp; &amp;nbsp;long before 1 hour passed
&lt;br&gt;&amp;nbsp;- the query that prompted me change the bug summmary line to include '&amp;gt; 1
&lt;br&gt;hour' &amp;nbsp;was a
&lt;br&gt;&amp;nbsp; &amp;nbsp;different one, I'm sure that was &amp;nbsp;long-compilation2.xq
&lt;br&gt;&lt;br&gt;long-compilation2.xq might have taken down a machine before the fix
&lt;br&gt;(machine did crash while that pf was running, but we do not know whether
&lt;br&gt;that was the cause)
&lt;br&gt;after applying the fix and rerunning the pf on long-compilation2.xq I do
&lt;br&gt;notice that 
&lt;br&gt;at some point the machine stops being responsive,
&lt;br&gt;only to become responsive again after the segfault -
&lt;br&gt;maybe the segfault saved us from a second machine crash :-)
&lt;br&gt;&lt;br&gt;I wonder whether the memory consumption is what so badly affects
&lt;br&gt;responsivity of the machine.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 12:03
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Axel,
&lt;br&gt;&lt;br&gt;what about your original long-compilation.xq?
&lt;br&gt;Does that now work fine for you (i.e., with Jan's fix)?
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-18 11:30
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;I don't want to spoil the fun, but after the fix pf still runs pretty long
&lt;br&gt;on the file I just attached
&lt;br&gt;(long-compilation2.xq)
&lt;br&gt;&lt;br&gt;top gives me:
&lt;br&gt;&amp;nbsp; PID USER &amp;nbsp; &amp;nbsp; &amp;nbsp;NI &amp;nbsp;VIRT &amp;nbsp;RES &amp;nbsp;SHR P S %CPU %MEM &amp;nbsp; TIME COMMAND &amp;nbsp; &amp;nbsp;
&lt;br&gt;26940 dbguest &amp;nbsp; &amp;nbsp;0 7164m 3.7g &amp;nbsp;172 4 R &amp;nbsp; 27 96.5 &amp;nbsp;14:07
&lt;br&gt;/local/dbguest/Install/MonetDB-XQuery_Nov2009/bin/pf -T /tmp/talt11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;I tried to kill it with ^C, without too much success
&lt;br&gt;(and I already started to fear that the machine was hung up on it),
&lt;br&gt;until a little later I saw (I started it as: time /path/to/pf &amp;nbsp;
&lt;br&gt;xqueryfile)
&lt;br&gt;&lt;br&gt;Killed
&lt;br&gt;828.295u 39.446s 16:38.94 86.8% 0+0k 0+0io 5pf+0w
&lt;br&gt;Segmentation fault
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 11:03
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;I think, adding a test (also) for this one should be done; it should be not
&lt;br&gt;only possible, but also easy:
&lt;br&gt;the query that (used to) compile for for than one hour is given, just make
&lt;br&gt;a test that calls pf to compile the query, sending the output to, say,
&lt;br&gt;/dev/null/ .
&lt;br&gt;If that finishes without error and within the default 1 minute timeout (or
&lt;br&gt;less, if desired/required; add a TSTNME.timeout file with a &amp;lt;1 scale
&lt;br&gt;factor), the test succeeded and everything is fine; otherwise, the test
&lt;br&gt;fails ...
&lt;br&gt;&lt;br&gt;... just an idea to help assessing and monitoring this issue and hence the
&lt;br&gt;stability and usability of MonetDB as such ...
&lt;br&gt;&lt;br&gt;... does not apply to this bug report, only; see also my email of last
&lt;br&gt;weekend ...
&lt;br&gt;&lt;br&gt;... if there is no time right no to add the test, keep the bug report open
&lt;br&gt;to remind us ...
&lt;br&gt;&lt;br&gt;... in fact, I do exactly that ...
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Jan Rittinger (tsheyar)
&lt;br&gt;Date: 2009-11-18 10:20
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;The reason for the 'forever' compile time is that the physical plan space
&lt;br&gt;blows up in a heuristic that tries to find good plan orders. I now added a
&lt;br&gt;check that avoids generating to many plans.
&lt;br&gt;&lt;br&gt;I checked in the fix in the Nov2009 stable branch. I'm however not sure
&lt;br&gt;whether it makes it into the release -- probably not. So please get it from
&lt;br&gt;either CVS or nightly-builds.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-17 09:32
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;not sure about category or group - chose seemingly most appropriate.
&lt;br&gt;&lt;br&gt;even though I did not change default priority , having some answer for
&lt;br&gt;this
&lt;br&gt;(whether fix in code, or guideline for fast compiling query) would be very
&lt;br&gt;helpful.
&lt;br&gt;In my application the pf compilation run is triggered from a web-gui -
&lt;br&gt;fast compilation
&lt;br&gt;is very important there, and predicatable compilation times maybe even
&lt;br&gt;more.
&lt;br&gt;(i.e. it would be nice when all compilations would take the same order of
&lt;br&gt;time).
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26433332&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-2898944---pf-takes-%27forever%27-%28%3E-1-hour%29-to-compile-particular-query-tp26433332p26433332.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26430385</id>
	<title>[ monetdb-Bugs-2898944 ] pf takes 'forever' (&gt; 1 hour) to compile particular query</title>
	<published>2009-11-19T09:22:46Z</published>
	<updated>2009-11-19T09:22:46Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #2898944, was opened at 2009-11-17 09:27
&lt;br&gt;Message generated for change (Comment added) made by axelbel
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: PF/compiler
&lt;br&gt;Group: Pathfinder &amp;quot;candidate&amp;quot;
&lt;br&gt;Status: Open
&lt;br&gt;Resolution: Fixed
&lt;br&gt;Priority: 6
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Axel Belinfante (axelbel)
&lt;br&gt;Assigned to: Jan Rittinger (tsheyar)
&lt;br&gt;Summary: pf takes 'forever' (&amp;gt; 1 hour) to compile particular query
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;I don't know whether the following really qualifies as bug, or just is a case of 'user error by giving stupid input.
&lt;br&gt;In any case, I would like to bring this to your attention.
&lt;br&gt;&lt;br&gt;When I compile a query for attached module definition with pf (may or aug or pre-nov version), compilation takes 'forever'.
&lt;br&gt;When I replace &amp;nbsp;the clause &amp;nbsp;ecv:to-human($g0, $human_type) &amp;nbsp; by simple &amp;nbsp; $g0
&lt;br&gt;and remove definitions of &amp;nbsp; $human_type &amp;nbsp; and &amp;nbsp; to-human &amp;nbsp; it compiles almost instantly.
&lt;br&gt;It is the huge difference in compilation time that surprises me.
&lt;br&gt;&lt;br&gt;The query I compile is:
&lt;br&gt;&lt;br&gt;import module namespace ecv = &amp;quot;&lt;a href=&quot;http://www.cs.utwente.nl/~belinfan/ecv&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.utwente.nl/~belinfan/ecv&lt;/a&gt;&amp;quot; at &amp;quot;/tmp/long-compilation.xq&amp;quot;; ecv:view-from-save(&amp;quot;eprints-export-conv-fmt.xml&amp;quot;)
&lt;br&gt;&lt;br&gt;where tmp/long-compilation.xq is the attached module.
&lt;br&gt;&lt;br&gt;&lt;br&gt;What the query attempts to do: obtain results from the database, order these on two criteria, and when listing the results, insert human-readable headers.
&lt;br&gt;The human-readable headers are obtained by the to-human mapping from field value (used as ordering criterium) to human-readable string.
&lt;br&gt;At some point I just used if-then-else-if-then-else etc. to do the mapping, but that seemed slower to compile than the approach I took here.
&lt;br&gt;&lt;br&gt;Suggestions for rewriting the query to a fast-compiling one would be considered as a fix too, I guess.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-19 18:22
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;&amp;nbsp;time &amp;nbsp;pf -oOIKCG_VG_IS_GYECSVR_DC_GP /tmp/long-compilation3.req &amp;gt;
&lt;br&gt;/tmp/long-compilation3.mil
&lt;br&gt;15.868u 0.472s 0:16.33 100.0% &amp;nbsp; 0+0k 0+0io 0pf+0w
&lt;br&gt;&lt;br&gt;time mclient -lmil -p 51012 /tmp/long-compilation3.mil &amp;gt; /dev/null 
&lt;br&gt;0.016u 0.032s 0:03.80 1.0% &amp;nbsp; &amp;nbsp; &amp;nbsp;0+0k 0+0io 0pf+0w
&lt;br&gt;&lt;br&gt;compilation time is indeed much, much better (though still a bit long)
&lt;br&gt;run time of resulting .mil is kind of ok (even faster would be even
&lt;br&gt;better, of course :-)
&lt;br&gt;&lt;br&gt;anything else I could try?
&lt;br&gt;otherwise, I guess I will just use the options you suggested when
&lt;br&gt;compiling those generated queries,
&lt;br&gt;and that should do for now.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Jan Rittinger (tsheyar)
&lt;br&gt;Date: 2009-11-19 18:04
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Axel,
&lt;br&gt;&lt;br&gt;you hit different problems here. Your original bug caused the planner to
&lt;br&gt;take generate millions of plans. 
&lt;br&gt;&lt;br&gt;Your latest example however generates a plan that features 5420 operators
&lt;br&gt;out of which 660 are joins. Here the join optimization takes a little
&lt;br&gt;bit...
&lt;br&gt;&lt;br&gt;What happens if you don't optimize much? -- Try e.g., the following (if
&lt;br&gt;you leave out the 'E' letter compilation time will probably halve):
&lt;br&gt;&lt;br&gt;echo 'import module namespace ecv =
&lt;br&gt;&amp;quot;&lt;a href=&quot;http://www.cs.utwente.nl/~belinfan/ecv&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.utwente.nl/~belinfan/ecv&lt;/a&gt;&amp;quot; at &amp;quot;/tmp/long-compilation3.xq&amp;quot;;
&lt;br&gt;ecv:view-from-save(&amp;quot;eprints-export-conv-fmt.xml&amp;quot;)' | pf
&lt;br&gt;-oOIKCG_VG_IS_GYECSVR_DC_GP &amp;gt; foo; Mserver foo
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-19 14:13
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;I have tried the latest fix.
&lt;br&gt;there is a good thing, and there is a bad thing.
&lt;br&gt;&lt;br&gt;the good thing is that for these queries the fix works.
&lt;br&gt;that is really, really great.
&lt;br&gt;&lt;br&gt;the bad thing is that it is easy to add complexity (add more of the same
&lt;br&gt;thing),
&lt;br&gt;and again have a relatively slow compilation - although, due to the fix
&lt;br&gt;now compilation does finish.
&lt;br&gt;&lt;br&gt;fact is, those queries are not hand-written, but generated from more
&lt;br&gt;high-level user input.
&lt;br&gt;it is easy for the user to make a slight change to the intended
&lt;br&gt;presentation of the query results 
&lt;br&gt;(add more refined structuring/grouping of the results), which can result
&lt;br&gt;in query for which
&lt;br&gt;again compilation time is long.
&lt;br&gt;&lt;br&gt;to give an example:
&lt;br&gt;in long-compilation2.xq I have 3 levels of structure. it compiles in about
&lt;br&gt;3 secs.
&lt;br&gt;file long-compilation3.xq (attached) &amp;nbsp;has 6 levels of structure. it
&lt;br&gt;compiles in approx. 37 minutes.
&lt;br&gt;running the compiled query takes iat most a couple of seconds
&lt;br&gt;&lt;br&gt;I tried rewriting the queries.
&lt;br&gt;I could only obtain reduced compilation time (only 2 minutes) by adding
&lt;br&gt;additional
&lt;br&gt;(pre=-processed) data to the database.
&lt;br&gt;even then, running the compiled query takes approximately a minute...
&lt;br&gt;&lt;br&gt;(I also tried compiling with -M -- this is fast, but I &amp;nbsp;was unable to run
&lt;br&gt;it
&lt;br&gt;&amp;nbsp;MAPI &amp;nbsp;= dbguest@localhost:51012
&lt;br&gt;QUERY = proc_vid.insert(&amp;quot;fnC8CAED69_print_4_eprint_xs_element1&amp;quot;,
&lt;br&gt;1059825001LL);
&lt;br&gt;&amp;nbsp; &amp;nbsp; ...
&lt;br&gt;ERROR = !ERROR: interpret: unknown variable 'proc_vid'.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; !ERROR: interpret_params: insert(param 1): evaluation error.
&lt;br&gt;)
&lt;br&gt;&lt;br&gt;I'm not sure you want to close this issue while such 'slight' changes to a
&lt;br&gt;query
&lt;br&gt;have such huge effects on compilation time. 
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-19 10:00
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Test works fine:
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/slow_compilation.SF-2898944.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/slow_compilation.SF-2898944.out.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/slow_compilation.SF-2898944.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/slow_compilation.SF-2898944.err.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Axel,
&lt;br&gt;&lt;br&gt;could you please check and report whether Jan's fix also works for you,
&lt;br&gt;and if so, close this bug report?
&lt;br&gt;&lt;br&gt;Thanks!
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Sjoerd Mullender (sjoerd)
&lt;br&gt;Date: 2009-11-18 19:35
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;If this fix works out, it will be in the upcoming release. &amp;nbsp;(We had some
&lt;br&gt;show stoppers with yesterday's release candidate.)
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 18:34
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;===================================================================
&lt;br&gt;2009/11/18 - stmane: pathfinder/tests/BugTracker/Tests/All,1.146.2.11
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.bat,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.mod1.xq,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.mod2.xq,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.q1.xq.in,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.q2.xq.in,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.sh,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.stable.err,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.stable.out,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.timeout,1.1.2.1
&lt;br&gt;&lt;br&gt;added test (compilation via pf, only) for
&lt;br&gt;ID: 2898944 &amp;quot;pf takes 'forever' (&amp;gt; 1 hour) to compile particular query&amp;quot;
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;aid=2898944&amp;group_id=56967&amp;atid=482468&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;aid=2898944&amp;group_id=56967&amp;atid=482468&lt;/a&gt;&lt;br&gt;&lt;br&gt;Seems to work fine, now;
&lt;br&gt;compiling both queries with both `pf -A` &amp; `pf -M`
&lt;br&gt;takes less than 2 secs on my machine with a debug build.
&lt;br&gt;Set timeout to 6 secs.
&lt;br&gt;===================================================================
&lt;br&gt;&lt;br&gt;report can be closed, once nightly testing and Axel confirm the fix.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Jan Rittinger (tsheyar)
&lt;br&gt;Date: 2009-11-18 16:51
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Plan generation with permutations gets you into trouble.
&lt;br&gt;&lt;br&gt;Planning the distinct operator requires a full ordering of the table as we
&lt;br&gt;use the order extend in MIL to remove duplicates. To calculate the plans
&lt;br&gt;for all possible orders we generate all permutations. (In the first
&lt;br&gt;long-compilation example distinct was applied to a table with 7 columns and
&lt;br&gt;for the second example distinct operated on 8 columns.)
&lt;br&gt;&lt;br&gt;Now we first eliminate all functionally dependent and constant columns as
&lt;br&gt;they do not add any order information. If we still have too many
&lt;br&gt;permutations we ignore all orderings (plans) after a magic boundary.
&lt;br&gt;&lt;br&gt;With this changes in place the compile times are (almost) acceptable:
&lt;br&gt;&lt;br&gt;pf -T query-long-compilation.xq 
&lt;br&gt;...
&lt;br&gt;overall compilation time:		 974ms
&lt;br&gt;&lt;br&gt;pf -T query-long-compilation2.xq 
&lt;br&gt;...
&lt;br&gt;overall compilation time:		 02s 781ms
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 12:53
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Just a few general notes:
&lt;br&gt;&lt;br&gt;1)
&lt;br&gt;A user program can at most trigger a machine crash, but never cause it.
&lt;br&gt;If a user program triggers a machine crash (e.g., by using resources
&lt;br&gt;(too?) many resources, it's in the end a problem (bug) in the OS (or the
&lt;br&gt;hardware) that cannot properly handle (or prevent) such (over-)load
&lt;br&gt;properly.
&lt;br&gt;&lt;br&gt;2)
&lt;br&gt;If you kill (via keyboard interrupt ^C or by sending, say, SIGTERM or
&lt;br&gt;SIGKILL) a process that uses lots of memory (and possibly virtual memory,
&lt;br&gt;i.e., swap), it might indeed take some time until that process is gone and
&lt;br&gt;your prompt is back, since the systems needs to clean up that memory (and
&lt;br&gt;swap) and possibly swap your shell back into main memory ...
&lt;br&gt;&lt;br&gt;3)
&lt;br&gt;Yes, a process that is using much memory (i.e., close to or more than the
&lt;br&gt;machine has physical memory) might (usually will) affect the interactive
&lt;br&gt;responsiveness of the machine.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-18 12:36
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;the original long-compilation.xq now finishes in about 10 secs, which is
&lt;br&gt;still longer than I would like,
&lt;br&gt;but much shorter than it used to.
&lt;br&gt;&lt;br&gt;regarding time measurements, I may have caused some confusion, in the
&lt;br&gt;sense that:
&lt;br&gt;&amp;nbsp;- the original long-compilation.xq definitely took 'too long', but likely
&lt;br&gt;I always interruped it
&lt;br&gt;&amp;nbsp; &amp;nbsp;long before 1 hour passed
&lt;br&gt;&amp;nbsp;- the query that prompted me change the bug summmary line to include '&amp;gt; 1
&lt;br&gt;hour' &amp;nbsp;was a
&lt;br&gt;&amp;nbsp; &amp;nbsp;different one, I'm sure that was &amp;nbsp;long-compilation2.xq
&lt;br&gt;&lt;br&gt;long-compilation2.xq might have taken down a machine before the fix
&lt;br&gt;(machine did crash while that pf was running, but we do not know whether
&lt;br&gt;that was the cause)
&lt;br&gt;after applying the fix and rerunning the pf on long-compilation2.xq I do
&lt;br&gt;notice that 
&lt;br&gt;at some point the machine stops being responsive,
&lt;br&gt;only to become responsive again after the segfault -
&lt;br&gt;maybe the segfault saved us from a second machine crash :-)
&lt;br&gt;&lt;br&gt;I wonder whether the memory consumption is what so badly affects
&lt;br&gt;responsivity of the machine.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 12:03
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Axel,
&lt;br&gt;&lt;br&gt;what about your original long-compilation.xq?
&lt;br&gt;Does that now work fine for you (i.e., with Jan's fix)?
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-18 11:30
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;I don't want to spoil the fun, but after the fix pf still runs pretty long
&lt;br&gt;on the file I just attached
&lt;br&gt;(long-compilation2.xq)
&lt;br&gt;&lt;br&gt;top gives me:
&lt;br&gt;&amp;nbsp; PID USER &amp;nbsp; &amp;nbsp; &amp;nbsp;NI &amp;nbsp;VIRT &amp;nbsp;RES &amp;nbsp;SHR P S %CPU %MEM &amp;nbsp; TIME COMMAND &amp;nbsp; &amp;nbsp;
&lt;br&gt;26940 dbguest &amp;nbsp; &amp;nbsp;0 7164m 3.7g &amp;nbsp;172 4 R &amp;nbsp; 27 96.5 &amp;nbsp;14:07
&lt;br&gt;/local/dbguest/Install/MonetDB-XQuery_Nov2009/bin/pf -T /tmp/talt11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;I tried to kill it with ^C, without too much success
&lt;br&gt;(and I already started to fear that the machine was hung up on it),
&lt;br&gt;until a little later I saw (I started it as: time /path/to/pf &amp;nbsp;
&lt;br&gt;xqueryfile)
&lt;br&gt;&lt;br&gt;Killed
&lt;br&gt;828.295u 39.446s 16:38.94 86.8% 0+0k 0+0io 5pf+0w
&lt;br&gt;Segmentation fault
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 11:03
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;I think, adding a test (also) for this one should be done; it should be not
&lt;br&gt;only possible, but also easy:
&lt;br&gt;the query that (used to) compile for for than one hour is given, just make
&lt;br&gt;a test that calls pf to compile the query, sending the output to, say,
&lt;br&gt;/dev/null/ .
&lt;br&gt;If that finishes without error and within the default 1 minute timeout (or
&lt;br&gt;less, if desired/required; add a TSTNME.timeout file with a &amp;lt;1 scale
&lt;br&gt;factor), the test succeeded and everything is fine; otherwise, the test
&lt;br&gt;fails ...
&lt;br&gt;&lt;br&gt;... just an idea to help assessing and monitoring this issue and hence the
&lt;br&gt;stability and usability of MonetDB as such ...
&lt;br&gt;&lt;br&gt;... does not apply to this bug report, only; see also my email of last
&lt;br&gt;weekend ...
&lt;br&gt;&lt;br&gt;... if there is no time right no to add the test, keep the bug report open
&lt;br&gt;to remind us ...
&lt;br&gt;&lt;br&gt;... in fact, I do exactly that ...
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Jan Rittinger (tsheyar)
&lt;br&gt;Date: 2009-11-18 10:20
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;The reason for the 'forever' compile time is that the physical plan space
&lt;br&gt;blows up in a heuristic that tries to find good plan orders. I now added a
&lt;br&gt;check that avoids generating to many plans.
&lt;br&gt;&lt;br&gt;I checked in the fix in the Nov2009 stable branch. I'm however not sure
&lt;br&gt;whether it makes it into the release -- probably not. So please get it from
&lt;br&gt;either CVS or nightly-builds.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-17 09:32
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;not sure about category or group - chose seemingly most appropriate.
&lt;br&gt;&lt;br&gt;even though I did not change default priority , having some answer for
&lt;br&gt;this
&lt;br&gt;(whether fix in code, or guideline for fast compiling query) would be very
&lt;br&gt;helpful.
&lt;br&gt;In my application the pf compilation run is triggered from a web-gui -
&lt;br&gt;fast compilation
&lt;br&gt;is very important there, and predicatable compilation times maybe even
&lt;br&gt;more.
&lt;br&gt;(i.e. it would be nice when all compilations would take the same order of
&lt;br&gt;time).
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26430385&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-2898944---pf-takes-%27forever%27-%28%3E-1-hour%29-to-compile-particular-query-tp26430385p26430385.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26430090</id>
	<title>[ monetdb-Bugs-2898944 ] pf takes 'forever' (&gt; 1 hour) to compile particular query</title>
	<published>2009-11-19T09:04:38Z</published>
	<updated>2009-11-19T09:04:38Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #2898944, was opened at 2009-11-17 09:27
&lt;br&gt;Message generated for change (Comment added) made by tsheyar
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: PF/compiler
&lt;br&gt;Group: Pathfinder &amp;quot;candidate&amp;quot;
&lt;br&gt;Status: Open
&lt;br&gt;Resolution: Fixed
&lt;br&gt;Priority: 6
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Axel Belinfante (axelbel)
&lt;br&gt;Assigned to: Jan Rittinger (tsheyar)
&lt;br&gt;Summary: pf takes 'forever' (&amp;gt; 1 hour) to compile particular query
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;I don't know whether the following really qualifies as bug, or just is a case of 'user error by giving stupid input.
&lt;br&gt;In any case, I would like to bring this to your attention.
&lt;br&gt;&lt;br&gt;When I compile a query for attached module definition with pf (may or aug or pre-nov version), compilation takes 'forever'.
&lt;br&gt;When I replace &amp;nbsp;the clause &amp;nbsp;ecv:to-human($g0, $human_type) &amp;nbsp; by simple &amp;nbsp; $g0
&lt;br&gt;and remove definitions of &amp;nbsp; $human_type &amp;nbsp; and &amp;nbsp; to-human &amp;nbsp; it compiles almost instantly.
&lt;br&gt;It is the huge difference in compilation time that surprises me.
&lt;br&gt;&lt;br&gt;The query I compile is:
&lt;br&gt;&lt;br&gt;import module namespace ecv = &amp;quot;&lt;a href=&quot;http://www.cs.utwente.nl/~belinfan/ecv&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.utwente.nl/~belinfan/ecv&lt;/a&gt;&amp;quot; at &amp;quot;/tmp/long-compilation.xq&amp;quot;; ecv:view-from-save(&amp;quot;eprints-export-conv-fmt.xml&amp;quot;)
&lt;br&gt;&lt;br&gt;where tmp/long-compilation.xq is the attached module.
&lt;br&gt;&lt;br&gt;&lt;br&gt;What the query attempts to do: obtain results from the database, order these on two criteria, and when listing the results, insert human-readable headers.
&lt;br&gt;The human-readable headers are obtained by the to-human mapping from field value (used as ordering criterium) to human-readable string.
&lt;br&gt;At some point I just used if-then-else-if-then-else etc. to do the mapping, but that seemed slower to compile than the approach I took here.
&lt;br&gt;&lt;br&gt;Suggestions for rewriting the query to a fast-compiling one would be considered as a fix too, I guess.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Jan Rittinger (tsheyar)
&lt;br&gt;Date: 2009-11-19 18:04
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Axel,
&lt;br&gt;&lt;br&gt;you hit different problems here. Your original bug caused the planner to
&lt;br&gt;take generate millions of plans. 
&lt;br&gt;&lt;br&gt;Your latest example however generates a plan that features 5420 operators
&lt;br&gt;out of which 660 are joins. Here the join optimization takes a little
&lt;br&gt;bit...
&lt;br&gt;&lt;br&gt;What happens if you don't optimize much? -- Try e.g., the following (if
&lt;br&gt;you leave out the 'E' letter compilation time will probably halve):
&lt;br&gt;&lt;br&gt;echo 'import module namespace ecv =
&lt;br&gt;&amp;quot;&lt;a href=&quot;http://www.cs.utwente.nl/~belinfan/ecv&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.utwente.nl/~belinfan/ecv&lt;/a&gt;&amp;quot; at &amp;quot;/tmp/long-compilation3.xq&amp;quot;;
&lt;br&gt;ecv:view-from-save(&amp;quot;eprints-export-conv-fmt.xml&amp;quot;)' | pf
&lt;br&gt;-oOIKCG_VG_IS_GYECSVR_DC_GP &amp;gt; foo; Mserver foo
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-19 14:13
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;I have tried the latest fix.
&lt;br&gt;there is a good thing, and there is a bad thing.
&lt;br&gt;&lt;br&gt;the good thing is that for these queries the fix works.
&lt;br&gt;that is really, really great.
&lt;br&gt;&lt;br&gt;the bad thing is that it is easy to add complexity (add more of the same
&lt;br&gt;thing),
&lt;br&gt;and again have a relatively slow compilation - although, due to the fix
&lt;br&gt;now compilation does finish.
&lt;br&gt;&lt;br&gt;fact is, those queries are not hand-written, but generated from more
&lt;br&gt;high-level user input.
&lt;br&gt;it is easy for the user to make a slight change to the intended
&lt;br&gt;presentation of the query results 
&lt;br&gt;(add more refined structuring/grouping of the results), which can result
&lt;br&gt;in query for which
&lt;br&gt;again compilation time is long.
&lt;br&gt;&lt;br&gt;to give an example:
&lt;br&gt;in long-compilation2.xq I have 3 levels of structure. it compiles in about
&lt;br&gt;3 secs.
&lt;br&gt;file long-compilation3.xq (attached) &amp;nbsp;has 6 levels of structure. it
&lt;br&gt;compiles in approx. 37 minutes.
&lt;br&gt;running the compiled query takes iat most a couple of seconds
&lt;br&gt;&lt;br&gt;I tried rewriting the queries.
&lt;br&gt;I could only obtain reduced compilation time (only 2 minutes) by adding
&lt;br&gt;additional
&lt;br&gt;(pre=-processed) data to the database.
&lt;br&gt;even then, running the compiled query takes approximately a minute...
&lt;br&gt;&lt;br&gt;(I also tried compiling with -M -- this is fast, but I &amp;nbsp;was unable to run
&lt;br&gt;it
&lt;br&gt;&amp;nbsp;MAPI &amp;nbsp;= dbguest@localhost:51012
&lt;br&gt;QUERY = proc_vid.insert(&amp;quot;fnC8CAED69_print_4_eprint_xs_element1&amp;quot;,
&lt;br&gt;1059825001LL);
&lt;br&gt;&amp;nbsp; &amp;nbsp; ...
&lt;br&gt;ERROR = !ERROR: interpret: unknown variable 'proc_vid'.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; !ERROR: interpret_params: insert(param 1): evaluation error.
&lt;br&gt;)
&lt;br&gt;&lt;br&gt;I'm not sure you want to close this issue while such 'slight' changes to a
&lt;br&gt;query
&lt;br&gt;have such huge effects on compilation time. 
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-19 10:00
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Test works fine:
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/slow_compilation.SF-2898944.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/slow_compilation.SF-2898944.out.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/slow_compilation.SF-2898944.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/slow_compilation.SF-2898944.err.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Axel,
&lt;br&gt;&lt;br&gt;could you please check and report whether Jan's fix also works for you,
&lt;br&gt;and if so, close this bug report?
&lt;br&gt;&lt;br&gt;Thanks!
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Sjoerd Mullender (sjoerd)
&lt;br&gt;Date: 2009-11-18 19:35
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;If this fix works out, it will be in the upcoming release. &amp;nbsp;(We had some
&lt;br&gt;show stoppers with yesterday's release candidate.)
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 18:34
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;===================================================================
&lt;br&gt;2009/11/18 - stmane: pathfinder/tests/BugTracker/Tests/All,1.146.2.11
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.bat,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.mod1.xq,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.mod2.xq,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.q1.xq.in,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.q2.xq.in,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.sh,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.stable.err,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.stable.out,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.timeout,1.1.2.1
&lt;br&gt;&lt;br&gt;added test (compilation via pf, only) for
&lt;br&gt;ID: 2898944 &amp;quot;pf takes 'forever' (&amp;gt; 1 hour) to compile particular query&amp;quot;
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;aid=2898944&amp;group_id=56967&amp;atid=482468&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;aid=2898944&amp;group_id=56967&amp;atid=482468&lt;/a&gt;&lt;br&gt;&lt;br&gt;Seems to work fine, now;
&lt;br&gt;compiling both queries with both `pf -A` &amp; `pf -M`
&lt;br&gt;takes less than 2 secs on my machine with a debug build.
&lt;br&gt;Set timeout to 6 secs.
&lt;br&gt;===================================================================
&lt;br&gt;&lt;br&gt;report can be closed, once nightly testing and Axel confirm the fix.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Jan Rittinger (tsheyar)
&lt;br&gt;Date: 2009-11-18 16:51
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Plan generation with permutations gets you into trouble.
&lt;br&gt;&lt;br&gt;Planning the distinct operator requires a full ordering of the table as we
&lt;br&gt;use the order extend in MIL to remove duplicates. To calculate the plans
&lt;br&gt;for all possible orders we generate all permutations. (In the first
&lt;br&gt;long-compilation example distinct was applied to a table with 7 columns and
&lt;br&gt;for the second example distinct operated on 8 columns.)
&lt;br&gt;&lt;br&gt;Now we first eliminate all functionally dependent and constant columns as
&lt;br&gt;they do not add any order information. If we still have too many
&lt;br&gt;permutations we ignore all orderings (plans) after a magic boundary.
&lt;br&gt;&lt;br&gt;With this changes in place the compile times are (almost) acceptable:
&lt;br&gt;&lt;br&gt;pf -T query-long-compilation.xq 
&lt;br&gt;...
&lt;br&gt;overall compilation time:		 974ms
&lt;br&gt;&lt;br&gt;pf -T query-long-compilation2.xq 
&lt;br&gt;...
&lt;br&gt;overall compilation time:		 02s 781ms
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 12:53
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Just a few general notes:
&lt;br&gt;&lt;br&gt;1)
&lt;br&gt;A user program can at most trigger a machine crash, but never cause it.
&lt;br&gt;If a user program triggers a machine crash (e.g., by using resources
&lt;br&gt;(too?) many resources, it's in the end a problem (bug) in the OS (or the
&lt;br&gt;hardware) that cannot properly handle (or prevent) such (over-)load
&lt;br&gt;properly.
&lt;br&gt;&lt;br&gt;2)
&lt;br&gt;If you kill (via keyboard interrupt ^C or by sending, say, SIGTERM or
&lt;br&gt;SIGKILL) a process that uses lots of memory (and possibly virtual memory,
&lt;br&gt;i.e., swap), it might indeed take some time until that process is gone and
&lt;br&gt;your prompt is back, since the systems needs to clean up that memory (and
&lt;br&gt;swap) and possibly swap your shell back into main memory ...
&lt;br&gt;&lt;br&gt;3)
&lt;br&gt;Yes, a process that is using much memory (i.e., close to or more than the
&lt;br&gt;machine has physical memory) might (usually will) affect the interactive
&lt;br&gt;responsiveness of the machine.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-18 12:36
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;the original long-compilation.xq now finishes in about 10 secs, which is
&lt;br&gt;still longer than I would like,
&lt;br&gt;but much shorter than it used to.
&lt;br&gt;&lt;br&gt;regarding time measurements, I may have caused some confusion, in the
&lt;br&gt;sense that:
&lt;br&gt;&amp;nbsp;- the original long-compilation.xq definitely took 'too long', but likely
&lt;br&gt;I always interruped it
&lt;br&gt;&amp;nbsp; &amp;nbsp;long before 1 hour passed
&lt;br&gt;&amp;nbsp;- the query that prompted me change the bug summmary line to include '&amp;gt; 1
&lt;br&gt;hour' &amp;nbsp;was a
&lt;br&gt;&amp;nbsp; &amp;nbsp;different one, I'm sure that was &amp;nbsp;long-compilation2.xq
&lt;br&gt;&lt;br&gt;long-compilation2.xq might have taken down a machine before the fix
&lt;br&gt;(machine did crash while that pf was running, but we do not know whether
&lt;br&gt;that was the cause)
&lt;br&gt;after applying the fix and rerunning the pf on long-compilation2.xq I do
&lt;br&gt;notice that 
&lt;br&gt;at some point the machine stops being responsive,
&lt;br&gt;only to become responsive again after the segfault -
&lt;br&gt;maybe the segfault saved us from a second machine crash :-)
&lt;br&gt;&lt;br&gt;I wonder whether the memory consumption is what so badly affects
&lt;br&gt;responsivity of the machine.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 12:03
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Axel,
&lt;br&gt;&lt;br&gt;what about your original long-compilation.xq?
&lt;br&gt;Does that now work fine for you (i.e., with Jan's fix)?
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-18 11:30
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;I don't want to spoil the fun, but after the fix pf still runs pretty long
&lt;br&gt;on the file I just attached
&lt;br&gt;(long-compilation2.xq)
&lt;br&gt;&lt;br&gt;top gives me:
&lt;br&gt;&amp;nbsp; PID USER &amp;nbsp; &amp;nbsp; &amp;nbsp;NI &amp;nbsp;VIRT &amp;nbsp;RES &amp;nbsp;SHR P S %CPU %MEM &amp;nbsp; TIME COMMAND &amp;nbsp; &amp;nbsp;
&lt;br&gt;26940 dbguest &amp;nbsp; &amp;nbsp;0 7164m 3.7g &amp;nbsp;172 4 R &amp;nbsp; 27 96.5 &amp;nbsp;14:07
&lt;br&gt;/local/dbguest/Install/MonetDB-XQuery_Nov2009/bin/pf -T /tmp/talt11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;I tried to kill it with ^C, without too much success
&lt;br&gt;(and I already started to fear that the machine was hung up on it),
&lt;br&gt;until a little later I saw (I started it as: time /path/to/pf &amp;nbsp;
&lt;br&gt;xqueryfile)
&lt;br&gt;&lt;br&gt;Killed
&lt;br&gt;828.295u 39.446s 16:38.94 86.8% 0+0k 0+0io 5pf+0w
&lt;br&gt;Segmentation fault
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 11:03
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;I think, adding a test (also) for this one should be done; it should be not
&lt;br&gt;only possible, but also easy:
&lt;br&gt;the query that (used to) compile for for than one hour is given, just make
&lt;br&gt;a test that calls pf to compile the query, sending the output to, say,
&lt;br&gt;/dev/null/ .
&lt;br&gt;If that finishes without error and within the default 1 minute timeout (or
&lt;br&gt;less, if desired/required; add a TSTNME.timeout file with a &amp;lt;1 scale
&lt;br&gt;factor), the test succeeded and everything is fine; otherwise, the test
&lt;br&gt;fails ...
&lt;br&gt;&lt;br&gt;... just an idea to help assessing and monitoring this issue and hence the
&lt;br&gt;stability and usability of MonetDB as such ...
&lt;br&gt;&lt;br&gt;... does not apply to this bug report, only; see also my email of last
&lt;br&gt;weekend ...
&lt;br&gt;&lt;br&gt;... if there is no time right no to add the test, keep the bug report open
&lt;br&gt;to remind us ...
&lt;br&gt;&lt;br&gt;... in fact, I do exactly that ...
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Jan Rittinger (tsheyar)
&lt;br&gt;Date: 2009-11-18 10:20
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;The reason for the 'forever' compile time is that the physical plan space
&lt;br&gt;blows up in a heuristic that tries to find good plan orders. I now added a
&lt;br&gt;check that avoids generating to many plans.
&lt;br&gt;&lt;br&gt;I checked in the fix in the Nov2009 stable branch. I'm however not sure
&lt;br&gt;whether it makes it into the release -- probably not. So please get it from
&lt;br&gt;either CVS or nightly-builds.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-17 09:32
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;not sure about category or group - chose seemingly most appropriate.
&lt;br&gt;&lt;br&gt;even though I did not change default priority , having some answer for
&lt;br&gt;this
&lt;br&gt;(whether fix in code, or guideline for fast compiling query) would be very
&lt;br&gt;helpful.
&lt;br&gt;In my application the pf compilation run is triggered from a web-gui -
&lt;br&gt;fast compilation
&lt;br&gt;is very important there, and predicatable compilation times maybe even
&lt;br&gt;more.
&lt;br&gt;(i.e. it would be nice when all compilations would take the same order of
&lt;br&gt;time).
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26430090&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-2898944---pf-takes-%27forever%27-%28%3E-1-hour%29-to-compile-particular-query-tp26430090p26430090.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26428479</id>
	<title>[ monetdb-Bugs-2900365 ] SQL: concurrent tracelog()</title>
	<published>2009-11-19T07:42:43Z</published>
	<updated>2009-11-19T07:42:43Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #2900365, was opened at 2009-11-19 11:46
&lt;br&gt;Message generated for change (Comment added) made by vzzzbx
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2900365&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2900365&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: SQL/Core
&lt;br&gt;Group: SQL &amp;quot;stable&amp;quot;
&lt;br&gt;Status: Open
&lt;br&gt;Resolution: None
&lt;br&gt;Priority: 5
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Wouter Alink (vzzzbx)
&lt;br&gt;Assigned to: Martin Kersten (mlkersten)
&lt;br&gt;Summary: SQL: concurrent tracelog() 
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;When running 2 mclient instances simultaneously, the 1st mclient can run tracelog(), the second cannot (the error message is &amp;quot;SELECT: '(null)' does not return a table&amp;quot;).
&lt;br&gt;&lt;br&gt;$ mclient -lsql -p51234 -daap
&lt;br&gt;Welcome to mclient, the MonetDB/SQL interactive terminal
&lt;br&gt;Database: MonetDB v5.16.0, 'aap'
&lt;br&gt;Type \q to quit, \? for a list of available commands
&lt;br&gt;auto commit mode: on
&lt;br&gt;sql&amp;gt;SELECT * FROM tracelog();
&lt;br&gt;0 tuples
&lt;br&gt;sql&amp;gt;
&lt;br&gt;&lt;br&gt;On another prompt:
&lt;br&gt;&lt;br&gt;$ mclient -lsql -p51234 -daap
&lt;br&gt;Welcome to mclient, the MonetDB/SQL interactive terminal
&lt;br&gt;Database: MonetDB v5.16.0, 'aap'
&lt;br&gt;Type \q to quit, \? for a list of available commands
&lt;br&gt;auto commit mode: on
&lt;br&gt;sql&amp;gt;SELECT * FROM tracelog();
&lt;br&gt;SELECT: '(null)' does not return a table
&lt;br&gt;sql&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Wouter Alink (vzzzbx)
&lt;br&gt;Date: 2009-11-19 16:42
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;when running trace using JDBC, multiple connections to the same database do
&lt;br&gt;seem to be able to query tracelog(). (if no mclient is running)
&lt;br&gt;however, they are not isolated from each other; work done in one
&lt;br&gt;transaction, can be found in a call to tracelog() in another transaction.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2900365&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2900365&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26428479&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-2900365---SQL%3A-concurrent-tracelog%28%29-tp26428479p26428479.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26426010</id>
	<title>[ monetdb-Bugs-2898944 ] pf takes 'forever' (&gt; 1 hour) to compile particular query</title>
	<published>2009-11-19T05:13:17Z</published>
	<updated>2009-11-19T05:13:17Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #2898944, was opened at 2009-11-17 09:27
&lt;br&gt;Message generated for change (Comment added) made by axelbel
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: PF/compiler
&lt;br&gt;Group: Pathfinder &amp;quot;candidate&amp;quot;
&lt;br&gt;Status: Open
&lt;br&gt;Resolution: Fixed
&lt;br&gt;Priority: 6
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Axel Belinfante (axelbel)
&lt;br&gt;Assigned to: Jan Rittinger (tsheyar)
&lt;br&gt;Summary: pf takes 'forever' (&amp;gt; 1 hour) to compile particular query
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;I don't know whether the following really qualifies as bug, or just is a case of 'user error by giving stupid input.
&lt;br&gt;In any case, I would like to bring this to your attention.
&lt;br&gt;&lt;br&gt;When I compile a query for attached module definition with pf (may or aug or pre-nov version), compilation takes 'forever'.
&lt;br&gt;When I replace &amp;nbsp;the clause &amp;nbsp;ecv:to-human($g0, $human_type) &amp;nbsp; by simple &amp;nbsp; $g0
&lt;br&gt;and remove definitions of &amp;nbsp; $human_type &amp;nbsp; and &amp;nbsp; to-human &amp;nbsp; it compiles almost instantly.
&lt;br&gt;It is the huge difference in compilation time that surprises me.
&lt;br&gt;&lt;br&gt;The query I compile is:
&lt;br&gt;&lt;br&gt;import module namespace ecv = &amp;quot;&lt;a href=&quot;http://www.cs.utwente.nl/~belinfan/ecv&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.utwente.nl/~belinfan/ecv&lt;/a&gt;&amp;quot; at &amp;quot;/tmp/long-compilation.xq&amp;quot;; ecv:view-from-save(&amp;quot;eprints-export-conv-fmt.xml&amp;quot;)
&lt;br&gt;&lt;br&gt;where tmp/long-compilation.xq is the attached module.
&lt;br&gt;&lt;br&gt;&lt;br&gt;What the query attempts to do: obtain results from the database, order these on two criteria, and when listing the results, insert human-readable headers.
&lt;br&gt;The human-readable headers are obtained by the to-human mapping from field value (used as ordering criterium) to human-readable string.
&lt;br&gt;At some point I just used if-then-else-if-then-else etc. to do the mapping, but that seemed slower to compile than the approach I took here.
&lt;br&gt;&lt;br&gt;Suggestions for rewriting the query to a fast-compiling one would be considered as a fix too, I guess.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-19 14:13
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;I have tried the latest fix.
&lt;br&gt;there is a good thing, and there is a bad thing.
&lt;br&gt;&lt;br&gt;the good thing is that for these queries the fix works.
&lt;br&gt;that is really, really great.
&lt;br&gt;&lt;br&gt;the bad thing is that it is easy to add complexity (add more of the same
&lt;br&gt;thing),
&lt;br&gt;and again have a relatively slow compilation - although, due to the fix
&lt;br&gt;now compilation does finish.
&lt;br&gt;&lt;br&gt;fact is, those queries are not hand-written, but generated from more
&lt;br&gt;high-level user input.
&lt;br&gt;it is easy for the user to make a slight change to the intended
&lt;br&gt;presentation of the query results 
&lt;br&gt;(add more refined structuring/grouping of the results), which can result
&lt;br&gt;in query for which
&lt;br&gt;again compilation time is long.
&lt;br&gt;&lt;br&gt;to give an example:
&lt;br&gt;in long-compilation2.xq I have 3 levels of structure. it compiles in about
&lt;br&gt;3 secs.
&lt;br&gt;file long-compilation3.xq (attached) &amp;nbsp;has 6 levels of structure. it
&lt;br&gt;compiles in approx. 37 minutes.
&lt;br&gt;running the compiled query takes iat most a couple of seconds
&lt;br&gt;&lt;br&gt;I tried rewriting the queries.
&lt;br&gt;I could only obtain reduced compilation time (only 2 minutes) by adding
&lt;br&gt;additional
&lt;br&gt;(pre=-processed) data to the database.
&lt;br&gt;even then, running the compiled query takes approximately a minute...
&lt;br&gt;&lt;br&gt;(I also tried compiling with -M -- this is fast, but I &amp;nbsp;was unable to run
&lt;br&gt;it
&lt;br&gt;&amp;nbsp;MAPI &amp;nbsp;= dbguest@localhost:51012
&lt;br&gt;QUERY = proc_vid.insert(&amp;quot;fnC8CAED69_print_4_eprint_xs_element1&amp;quot;,
&lt;br&gt;1059825001LL);
&lt;br&gt;&amp;nbsp; &amp;nbsp; ...
&lt;br&gt;ERROR = !ERROR: interpret: unknown variable 'proc_vid'.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; !ERROR: interpret_params: insert(param 1): evaluation error.
&lt;br&gt;)
&lt;br&gt;&lt;br&gt;I'm not sure you want to close this issue while such 'slight' changes to a
&lt;br&gt;query
&lt;br&gt;have such huge effects on compilation time. 
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-19 10:00
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Test works fine:
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/slow_compilation.SF-2898944.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/slow_compilation.SF-2898944.out.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/slow_compilation.SF-2898944.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/slow_compilation.SF-2898944.err.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Axel,
&lt;br&gt;&lt;br&gt;could you please check and report whether Jan's fix also works for you,
&lt;br&gt;and if so, close this bug report?
&lt;br&gt;&lt;br&gt;Thanks!
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Sjoerd Mullender (sjoerd)
&lt;br&gt;Date: 2009-11-18 19:35
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;If this fix works out, it will be in the upcoming release. &amp;nbsp;(We had some
&lt;br&gt;show stoppers with yesterday's release candidate.)
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 18:34
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;===================================================================
&lt;br&gt;2009/11/18 - stmane: pathfinder/tests/BugTracker/Tests/All,1.146.2.11
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.bat,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.mod1.xq,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.mod2.xq,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.q1.xq.in,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.q2.xq.in,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.sh,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.stable.err,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.stable.out,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.timeout,1.1.2.1
&lt;br&gt;&lt;br&gt;added test (compilation via pf, only) for
&lt;br&gt;ID: 2898944 &amp;quot;pf takes 'forever' (&amp;gt; 1 hour) to compile particular query&amp;quot;
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;aid=2898944&amp;group_id=56967&amp;atid=482468&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;aid=2898944&amp;group_id=56967&amp;atid=482468&lt;/a&gt;&lt;br&gt;&lt;br&gt;Seems to work fine, now;
&lt;br&gt;compiling both queries with both `pf -A` &amp; `pf -M`
&lt;br&gt;takes less than 2 secs on my machine with a debug build.
&lt;br&gt;Set timeout to 6 secs.
&lt;br&gt;===================================================================
&lt;br&gt;&lt;br&gt;report can be closed, once nightly testing and Axel confirm the fix.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Jan Rittinger (tsheyar)
&lt;br&gt;Date: 2009-11-18 16:51
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Plan generation with permutations gets you into trouble.
&lt;br&gt;&lt;br&gt;Planning the distinct operator requires a full ordering of the table as we
&lt;br&gt;use the order extend in MIL to remove duplicates. To calculate the plans
&lt;br&gt;for all possible orders we generate all permutations. (In the first
&lt;br&gt;long-compilation example distinct was applied to a table with 7 columns and
&lt;br&gt;for the second example distinct operated on 8 columns.)
&lt;br&gt;&lt;br&gt;Now we first eliminate all functionally dependent and constant columns as
&lt;br&gt;they do not add any order information. If we still have too many
&lt;br&gt;permutations we ignore all orderings (plans) after a magic boundary.
&lt;br&gt;&lt;br&gt;With this changes in place the compile times are (almost) acceptable:
&lt;br&gt;&lt;br&gt;pf -T query-long-compilation.xq 
&lt;br&gt;...
&lt;br&gt;overall compilation time:		 974ms
&lt;br&gt;&lt;br&gt;pf -T query-long-compilation2.xq 
&lt;br&gt;...
&lt;br&gt;overall compilation time:		 02s 781ms
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 12:53
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Just a few general notes:
&lt;br&gt;&lt;br&gt;1)
&lt;br&gt;A user program can at most trigger a machine crash, but never cause it.
&lt;br&gt;If a user program triggers a machine crash (e.g., by using resources
&lt;br&gt;(too?) many resources, it's in the end a problem (bug) in the OS (or the
&lt;br&gt;hardware) that cannot properly handle (or prevent) such (over-)load
&lt;br&gt;properly.
&lt;br&gt;&lt;br&gt;2)
&lt;br&gt;If you kill (via keyboard interrupt ^C or by sending, say, SIGTERM or
&lt;br&gt;SIGKILL) a process that uses lots of memory (and possibly virtual memory,
&lt;br&gt;i.e., swap), it might indeed take some time until that process is gone and
&lt;br&gt;your prompt is back, since the systems needs to clean up that memory (and
&lt;br&gt;swap) and possibly swap your shell back into main memory ...
&lt;br&gt;&lt;br&gt;3)
&lt;br&gt;Yes, a process that is using much memory (i.e., close to or more than the
&lt;br&gt;machine has physical memory) might (usually will) affect the interactive
&lt;br&gt;responsiveness of the machine.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-18 12:36
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;the original long-compilation.xq now finishes in about 10 secs, which is
&lt;br&gt;still longer than I would like,
&lt;br&gt;but much shorter than it used to.
&lt;br&gt;&lt;br&gt;regarding time measurements, I may have caused some confusion, in the
&lt;br&gt;sense that:
&lt;br&gt;&amp;nbsp;- the original long-compilation.xq definitely took 'too long', but likely
&lt;br&gt;I always interruped it
&lt;br&gt;&amp;nbsp; &amp;nbsp;long before 1 hour passed
&lt;br&gt;&amp;nbsp;- the query that prompted me change the bug summmary line to include '&amp;gt; 1
&lt;br&gt;hour' &amp;nbsp;was a
&lt;br&gt;&amp;nbsp; &amp;nbsp;different one, I'm sure that was &amp;nbsp;long-compilation2.xq
&lt;br&gt;&lt;br&gt;long-compilation2.xq might have taken down a machine before the fix
&lt;br&gt;(machine did crash while that pf was running, but we do not know whether
&lt;br&gt;that was the cause)
&lt;br&gt;after applying the fix and rerunning the pf on long-compilation2.xq I do
&lt;br&gt;notice that 
&lt;br&gt;at some point the machine stops being responsive,
&lt;br&gt;only to become responsive again after the segfault -
&lt;br&gt;maybe the segfault saved us from a second machine crash :-)
&lt;br&gt;&lt;br&gt;I wonder whether the memory consumption is what so badly affects
&lt;br&gt;responsivity of the machine.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 12:03
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Axel,
&lt;br&gt;&lt;br&gt;what about your original long-compilation.xq?
&lt;br&gt;Does that now work fine for you (i.e., with Jan's fix)?
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-18 11:30
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;I don't want to spoil the fun, but after the fix pf still runs pretty long
&lt;br&gt;on the file I just attached
&lt;br&gt;(long-compilation2.xq)
&lt;br&gt;&lt;br&gt;top gives me:
&lt;br&gt;&amp;nbsp; PID USER &amp;nbsp; &amp;nbsp; &amp;nbsp;NI &amp;nbsp;VIRT &amp;nbsp;RES &amp;nbsp;SHR P S %CPU %MEM &amp;nbsp; TIME COMMAND &amp;nbsp; &amp;nbsp;
&lt;br&gt;26940 dbguest &amp;nbsp; &amp;nbsp;0 7164m 3.7g &amp;nbsp;172 4 R &amp;nbsp; 27 96.5 &amp;nbsp;14:07
&lt;br&gt;/local/dbguest/Install/MonetDB-XQuery_Nov2009/bin/pf -T /tmp/talt11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;I tried to kill it with ^C, without too much success
&lt;br&gt;(and I already started to fear that the machine was hung up on it),
&lt;br&gt;until a little later I saw (I started it as: time /path/to/pf &amp;nbsp;
&lt;br&gt;xqueryfile)
&lt;br&gt;&lt;br&gt;Killed
&lt;br&gt;828.295u 39.446s 16:38.94 86.8% 0+0k 0+0io 5pf+0w
&lt;br&gt;Segmentation fault
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 11:03
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;I think, adding a test (also) for this one should be done; it should be not
&lt;br&gt;only possible, but also easy:
&lt;br&gt;the query that (used to) compile for for than one hour is given, just make
&lt;br&gt;a test that calls pf to compile the query, sending the output to, say,
&lt;br&gt;/dev/null/ .
&lt;br&gt;If that finishes without error and within the default 1 minute timeout (or
&lt;br&gt;less, if desired/required; add a TSTNME.timeout file with a &amp;lt;1 scale
&lt;br&gt;factor), the test succeeded and everything is fine; otherwise, the test
&lt;br&gt;fails ...
&lt;br&gt;&lt;br&gt;... just an idea to help assessing and monitoring this issue and hence the
&lt;br&gt;stability and usability of MonetDB as such ...
&lt;br&gt;&lt;br&gt;... does not apply to this bug report, only; see also my email of last
&lt;br&gt;weekend ...
&lt;br&gt;&lt;br&gt;... if there is no time right no to add the test, keep the bug report open
&lt;br&gt;to remind us ...
&lt;br&gt;&lt;br&gt;... in fact, I do exactly that ...
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Jan Rittinger (tsheyar)
&lt;br&gt;Date: 2009-11-18 10:20
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;The reason for the 'forever' compile time is that the physical plan space
&lt;br&gt;blows up in a heuristic that tries to find good plan orders. I now added a
&lt;br&gt;check that avoids generating to many plans.
&lt;br&gt;&lt;br&gt;I checked in the fix in the Nov2009 stable branch. I'm however not sure
&lt;br&gt;whether it makes it into the release -- probably not. So please get it from
&lt;br&gt;either CVS or nightly-builds.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-17 09:32
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;not sure about category or group - chose seemingly most appropriate.
&lt;br&gt;&lt;br&gt;even though I did not change default priority , having some answer for
&lt;br&gt;this
&lt;br&gt;(whether fix in code, or guideline for fast compiling query) would be very
&lt;br&gt;helpful.
&lt;br&gt;In my application the pf compilation run is triggered from a web-gui -
&lt;br&gt;fast compilation
&lt;br&gt;is very important there, and predicatable compilation times maybe even
&lt;br&gt;more.
&lt;br&gt;(i.e. it would be nice when all compilations would take the same order of
&lt;br&gt;time).
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26426010&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-2898944---pf-takes-%27forever%27-%28%3E-1-hour%29-to-compile-particular-query-tp26426010p26426010.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26424730</id>
	<title>[ monetdb-Bugs-2900358 ] SQL: tracelog() is undefined</title>
	<published>2009-11-19T03:36:50Z</published>
	<updated>2009-11-19T03:36:50Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #2900358, was opened at 2009-11-19 11:29
&lt;br&gt;Message generated for change (Comment added) made by mlkersten
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2900358&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2900358&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: SQL/Core
&lt;br&gt;Group: SQL &amp;quot;stable&amp;quot;
&lt;br&gt;&amp;gt;Status: Closed
&lt;br&gt;&amp;gt;Resolution: Wont Fix
&lt;br&gt;Priority: 5
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Wouter Alink (vzzzbx)
&lt;br&gt;Assigned to: Martin Kersten (mlkersten)
&lt;br&gt;Summary: SQL: tracelog() is undefined
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;The function tracelog() is not defined by default. If the sql query 'create function ... &amp;nbsp;sql.dump_trace;' 
&lt;br&gt;(provided in &lt;a href=&quot;http://www.monetdb.nl/projects/monetdb/SQL/Documentation/TRACE-Statement.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.monetdb.nl/projects/monetdb/SQL/Documentation/TRACE-Statement.html&lt;/a&gt;) is first executed then it works fine. 
&lt;br&gt;(I added a test SQL:src/test/Tests/trace)
&lt;br&gt;&lt;br&gt;$ monetdb create aap
&lt;br&gt;created database in maintenance mode: aap
&lt;br&gt;$ monetdb start aap
&lt;br&gt;starting database 'aap'... done
&lt;br&gt;$ mclient -lsql -p51234 -daap -umonetdb -Pmonetdb
&lt;br&gt;Welcome to mclient, the MonetDB/SQL interactive terminal
&lt;br&gt;Database: MonetDB v5.16.0, 'aap'
&lt;br&gt;Type \q to quit, \? for a list of available commands
&lt;br&gt;auto commit mode: on
&lt;br&gt;sql&amp;gt;SELECT * FROM tracelog();
&lt;br&gt;SELECT: no such operator 'tracelog'
&lt;br&gt;&lt;br&gt;&lt;br&gt;$ mserver5 --version
&lt;br&gt;MonetDB server v5.16.0 (64-bit), based on kernel v1.34.0 (64-bit oids)
&lt;br&gt;Copyright (c) 1993-July 2008 CWI
&lt;br&gt;Copyright (c) August 2008-2009 MonetDB B.V., all rights reserved
&lt;br&gt;Visit &lt;a href=&quot;http://monetdb.cwi.nl/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/&lt;/a&gt;&amp;nbsp;for further information
&lt;br&gt;Configured for prefix: /ufs/alink/opt/MonetDB-Nov2009
&lt;br&gt;Libraries:
&lt;br&gt;&amp;nbsp; libpcre: 7.8 2008-09-05 (compiled with 7.8)
&lt;br&gt;&amp;nbsp; openssl: OpenSSL 0.9.8g 19 Oct 2007 (compiled with OpenSSL 0.9.8g 19 Oct 2007)
&lt;br&gt;&amp;nbsp; libxml2: 2.7.6 (compiled with 2.7.6)
&lt;br&gt;Compiled by: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26424730&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;alink@...&lt;/a&gt; (x86_64-unknown-linux-gnu)
&lt;br&gt;Compilation: gcc -Wall -Wextra -g &amp;nbsp;-Werror-implicit-function-declaration -Werror -Wpointer-arith -Wdeclaration-after-statement -Wundef Wp,-D_FORTIFY_SOURCE=2
&lt;br&gt;Linking &amp;nbsp; &amp;nbsp;: ld -IPA -m elf_x86_64 
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Martin Kersten (mlkersten)
&lt;br&gt;Date: 2009-11-19 12:36
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Correct. There is no hardcoded definition for this function in the SQL
&lt;br&gt;catalog.
&lt;br&gt;It is part of a collection of sql scripts in .../src/sql/*.sql that have
&lt;br&gt;to be loaded once for a database.
&lt;br&gt;That's why the definition was also repeated in the documentation
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Wouter Alink (vzzzbx)
&lt;br&gt;Date: 2009-11-19 11:31
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;i think this is martin's area ;) re-assiging to martin.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2900358&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2900358&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26424730&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-2900358---SQL%3A-tracelog%28%29-is-undefined-tp26424730p26424730.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26424164</id>
	<title>[ monetdb-Bugs-2900365 ] SQL: concurrent tracelog()</title>
	<published>2009-11-19T02:47:22Z</published>
	<updated>2009-11-19T02:47:22Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #2900365, was opened at 2009-11-19 11:46
&lt;br&gt;Message generated for change (Settings changed) made by vzzzbx
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2900365&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2900365&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: SQL/Core
&lt;br&gt;Group: SQL &amp;quot;stable&amp;quot;
&lt;br&gt;Status: Open
&lt;br&gt;Resolution: None
&lt;br&gt;Priority: 5
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Wouter Alink (vzzzbx)
&lt;br&gt;&amp;gt;Assigned to: Martin Kersten (mlkersten)
&lt;br&gt;Summary: SQL: concurrent tracelog() 
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;When running 2 mclient instances simultaneously, the 1st mclient can run tracelog(), the second cannot (the error message is &amp;quot;SELECT: '(null)' does not return a table&amp;quot;).
&lt;br&gt;&lt;br&gt;$ mclient -lsql -p51234 -daap
&lt;br&gt;Welcome to mclient, the MonetDB/SQL interactive terminal
&lt;br&gt;Database: MonetDB v5.16.0, 'aap'
&lt;br&gt;Type \q to quit, \? for a list of available commands
&lt;br&gt;auto commit mode: on
&lt;br&gt;sql&amp;gt;SELECT * FROM tracelog();
&lt;br&gt;0 tuples
&lt;br&gt;sql&amp;gt;
&lt;br&gt;&lt;br&gt;On another prompt:
&lt;br&gt;&lt;br&gt;$ mclient -lsql -p51234 -daap
&lt;br&gt;Welcome to mclient, the MonetDB/SQL interactive terminal
&lt;br&gt;Database: MonetDB v5.16.0, 'aap'
&lt;br&gt;Type \q to quit, \? for a list of available commands
&lt;br&gt;auto commit mode: on
&lt;br&gt;sql&amp;gt;SELECT * FROM tracelog();
&lt;br&gt;SELECT: '(null)' does not return a table
&lt;br&gt;sql&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2900365&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2900365&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26424164&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-2900365---SQL%3A-concurrent-tracelog%28%29-tp26424164p26424164.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26424154</id>
	<title>[ monetdb-Bugs-2900365 ] SQL: concurrent tracelog()</title>
	<published>2009-11-19T02:46:50Z</published>
	<updated>2009-11-19T02:46:50Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #2900365, was opened at 2009-11-19 11:46
&lt;br&gt;Message generated for change (Tracker Item Submitted) made by vzzzbx
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2900365&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2900365&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: SQL/Core
&lt;br&gt;Group: SQL &amp;quot;stable&amp;quot;
&lt;br&gt;Status: Open
&lt;br&gt;Resolution: None
&lt;br&gt;Priority: 5
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Wouter Alink (vzzzbx)
&lt;br&gt;Assigned to: Niels Nes (nielsnes)
&lt;br&gt;Summary: SQL: concurrent tracelog() 
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;When running 2 mclient instances simultaneously, the 1st mclient can run tracelog(), the second cannot (the error message is &amp;quot;SELECT: '(null)' does not return a table&amp;quot;).
&lt;br&gt;&lt;br&gt;$ mclient -lsql -p51234 -daap
&lt;br&gt;Welcome to mclient, the MonetDB/SQL interactive terminal
&lt;br&gt;Database: MonetDB v5.16.0, 'aap'
&lt;br&gt;Type \q to quit, \? for a list of available commands
&lt;br&gt;auto commit mode: on
&lt;br&gt;sql&amp;gt;SELECT * FROM tracelog();
&lt;br&gt;0 tuples
&lt;br&gt;sql&amp;gt;
&lt;br&gt;&lt;br&gt;On another prompt:
&lt;br&gt;&lt;br&gt;$ mclient -lsql -p51234 -daap
&lt;br&gt;Welcome to mclient, the MonetDB/SQL interactive terminal
&lt;br&gt;Database: MonetDB v5.16.0, 'aap'
&lt;br&gt;Type \q to quit, \? for a list of available commands
&lt;br&gt;auto commit mode: on
&lt;br&gt;sql&amp;gt;SELECT * FROM tracelog();
&lt;br&gt;SELECT: '(null)' does not return a table
&lt;br&gt;sql&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2900365&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2900365&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26424154&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-2900365---SQL%3A-concurrent-tracelog%28%29-tp26424154p26424154.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26423941</id>
	<title>[ monetdb-Bugs-2900358 ] SQL: tracelog() is undefined</title>
	<published>2009-11-19T02:31:41Z</published>
	<updated>2009-11-19T02:31:41Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #2900358, was opened at 2009-11-19 11:29
&lt;br&gt;Message generated for change (Comment added) made by vzzzbx
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2900358&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2900358&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: SQL/Core
&lt;br&gt;Group: SQL &amp;quot;stable&amp;quot;
&lt;br&gt;Status: Open
&lt;br&gt;Resolution: None
&lt;br&gt;Priority: 5
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Wouter Alink (vzzzbx)
&lt;br&gt;&amp;gt;Assigned to: Martin Kersten (mlkersten)
&lt;br&gt;Summary: SQL: tracelog() is undefined
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;The function tracelog() is not defined by default. If the sql query 'create function ... &amp;nbsp;sql.dump_trace;' 
&lt;br&gt;(provided in &lt;a href=&quot;http://www.monetdb.nl/projects/monetdb/SQL/Documentation/TRACE-Statement.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.monetdb.nl/projects/monetdb/SQL/Documentation/TRACE-Statement.html&lt;/a&gt;) is first executed then it works fine. 
&lt;br&gt;(I added a test SQL:src/test/Tests/trace)
&lt;br&gt;&lt;br&gt;$ monetdb create aap
&lt;br&gt;created database in maintenance mode: aap
&lt;br&gt;$ monetdb start aap
&lt;br&gt;starting database 'aap'... done
&lt;br&gt;$ mclient -lsql -p51234 -daap -umonetdb -Pmonetdb
&lt;br&gt;Welcome to mclient, the MonetDB/SQL interactive terminal
&lt;br&gt;Database: MonetDB v5.16.0, 'aap'
&lt;br&gt;Type \q to quit, \? for a list of available commands
&lt;br&gt;auto commit mode: on
&lt;br&gt;sql&amp;gt;SELECT * FROM tracelog();
&lt;br&gt;SELECT: no such operator 'tracelog'
&lt;br&gt;&lt;br&gt;&lt;br&gt;$ mserver5 --version
&lt;br&gt;MonetDB server v5.16.0 (64-bit), based on kernel v1.34.0 (64-bit oids)
&lt;br&gt;Copyright (c) 1993-July 2008 CWI
&lt;br&gt;Copyright (c) August 2008-2009 MonetDB B.V., all rights reserved
&lt;br&gt;Visit &lt;a href=&quot;http://monetdb.cwi.nl/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/&lt;/a&gt;&amp;nbsp;for further information
&lt;br&gt;Configured for prefix: /ufs/alink/opt/MonetDB-Nov2009
&lt;br&gt;Libraries:
&lt;br&gt;&amp;nbsp; libpcre: 7.8 2008-09-05 (compiled with 7.8)
&lt;br&gt;&amp;nbsp; openssl: OpenSSL 0.9.8g 19 Oct 2007 (compiled with OpenSSL 0.9.8g 19 Oct 2007)
&lt;br&gt;&amp;nbsp; libxml2: 2.7.6 (compiled with 2.7.6)
&lt;br&gt;Compiled by: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26423941&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;alink@...&lt;/a&gt; (x86_64-unknown-linux-gnu)
&lt;br&gt;Compilation: gcc -Wall -Wextra -g &amp;nbsp;-Werror-implicit-function-declaration -Werror -Wpointer-arith -Wdeclaration-after-statement -Wundef Wp,-D_FORTIFY_SOURCE=2
&lt;br&gt;Linking &amp;nbsp; &amp;nbsp;: ld -IPA -m elf_x86_64 
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Wouter Alink (vzzzbx)
&lt;br&gt;Date: 2009-11-19 11:31
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;i think this is martin's area ;) re-assiging to martin.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2900358&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2900358&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26423941&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-2900358---SQL%3A-tracelog%28%29-is-undefined-tp26423941p26423941.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26423923</id>
	<title>[ monetdb-Bugs-2900358 ] SQL: tracelog() is undefined</title>
	<published>2009-11-19T02:29:51Z</published>
	<updated>2009-11-19T02:29:51Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #2900358, was opened at 2009-11-19 11:29
&lt;br&gt;Message generated for change (Tracker Item Submitted) made by vzzzbx
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2900358&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2900358&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: SQL/Core
&lt;br&gt;Group: SQL &amp;quot;stable&amp;quot;
&lt;br&gt;Status: Open
&lt;br&gt;Resolution: None
&lt;br&gt;Priority: 5
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Wouter Alink (vzzzbx)
&lt;br&gt;Assigned to: Niels Nes (nielsnes)
&lt;br&gt;Summary: SQL: tracelog() is undefined
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;The function tracelog() is not defined by default. If the sql query 'create function ... &amp;nbsp;sql.dump_trace;' 
&lt;br&gt;(provided in &lt;a href=&quot;http://www.monetdb.nl/projects/monetdb/SQL/Documentation/TRACE-Statement.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.monetdb.nl/projects/monetdb/SQL/Documentation/TRACE-Statement.html&lt;/a&gt;) is first executed then it works fine. 
&lt;br&gt;(I added a test SQL:src/test/Tests/trace)
&lt;br&gt;&lt;br&gt;$ monetdb create aap
&lt;br&gt;created database in maintenance mode: aap
&lt;br&gt;$ monetdb start aap
&lt;br&gt;starting database 'aap'... done
&lt;br&gt;$ mclient -lsql -p51234 -daap -umonetdb -Pmonetdb
&lt;br&gt;Welcome to mclient, the MonetDB/SQL interactive terminal
&lt;br&gt;Database: MonetDB v5.16.0, 'aap'
&lt;br&gt;Type \q to quit, \? for a list of available commands
&lt;br&gt;auto commit mode: on
&lt;br&gt;sql&amp;gt;SELECT * FROM tracelog();
&lt;br&gt;SELECT: no such operator 'tracelog'
&lt;br&gt;&lt;br&gt;&lt;br&gt;$ mserver5 --version
&lt;br&gt;MonetDB server v5.16.0 (64-bit), based on kernel v1.34.0 (64-bit oids)
&lt;br&gt;Copyright (c) 1993-July 2008 CWI
&lt;br&gt;Copyright (c) August 2008-2009 MonetDB B.V., all rights reserved
&lt;br&gt;Visit &lt;a href=&quot;http://monetdb.cwi.nl/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/&lt;/a&gt;&amp;nbsp;for further information
&lt;br&gt;Configured for prefix: /ufs/alink/opt/MonetDB-Nov2009
&lt;br&gt;Libraries:
&lt;br&gt;&amp;nbsp; libpcre: 7.8 2008-09-05 (compiled with 7.8)
&lt;br&gt;&amp;nbsp; openssl: OpenSSL 0.9.8g 19 Oct 2007 (compiled with OpenSSL 0.9.8g 19 Oct 2007)
&lt;br&gt;&amp;nbsp; libxml2: 2.7.6 (compiled with 2.7.6)
&lt;br&gt;Compiled by: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26423923&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;alink@...&lt;/a&gt; (x86_64-unknown-linux-gnu)
&lt;br&gt;Compilation: gcc -Wall -Wextra -g &amp;nbsp;-Werror-implicit-function-declaration -Werror -Wpointer-arith -Wdeclaration-after-statement -Wundef Wp,-D_FORTIFY_SOURCE=2
&lt;br&gt;Linking &amp;nbsp; &amp;nbsp;: ld -IPA -m elf_x86_64 
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2900358&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2900358&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26423923&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-2900358---SQL%3A-tracelog%28%29-is-undefined-tp26423923p26423923.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26423861</id>
	<title>[ monetdb-Bugs-2900355 ] M5: crash time</title>
	<published>2009-11-19T02:24:32Z</published>
	<updated>2009-11-19T02:24:32Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #2900355, was opened at 2009-11-19 11:24
&lt;br&gt;Message generated for change (Tracker Item Submitted) made by vzzzbx
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2900355&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2900355&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: Documentation
&lt;br&gt;Group: MonetDB5 &amp;quot;stable&amp;quot;
&lt;br&gt;Status: Open
&lt;br&gt;Resolution: None
&lt;br&gt;Priority: 5
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Wouter Alink (vzzzbx)
&lt;br&gt;Assigned to: Sjoerd Mullender (sjoerd)
&lt;br&gt;Summary: M5: crash time
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;Very minor issue: The output of the monetdb utility might be a little bit confusing. The 'last crash' time, seems to be the start time of the previous mserver session that crashed. Because the server crashed a few seconds before I started it again, while it seems to show that there are 13 minutes in between the two sessions. Perhaps the description should be changed to &amp;quot;start time of last session that crashed &amp;quot; or something similar.
&lt;br&gt;&lt;br&gt;$ monetdb status -l aap
&lt;br&gt;aap:
&lt;br&gt;&amp;nbsp; location: /export/scratch0/roberto/wouter/dbfarm-MonetDB-Nov2009/aap
&lt;br&gt;&amp;nbsp; database name: aap
&lt;br&gt;&amp;nbsp; state: running
&lt;br&gt;&amp;nbsp; locked: no
&lt;br&gt;&amp;nbsp; scenarios: mal sql msql
&lt;br&gt;&amp;nbsp; connections: mapi:monetdb://127.0.0.1:51236/
&lt;br&gt;&amp;nbsp; start count: 3
&lt;br&gt;&amp;nbsp; stop count: 0
&lt;br&gt;&amp;nbsp; crash count: 2
&lt;br&gt;&amp;nbsp; current uptime: 10s
&lt;br&gt;&amp;nbsp; average uptime: 0s
&lt;br&gt;&amp;nbsp; maximum uptime: 0s
&lt;br&gt;&amp;nbsp; minimum uptime: 0s
&lt;br&gt;&amp;nbsp; last crash: 2009-11-19 10:47:18
&lt;br&gt;&amp;nbsp; last start: 2009-11-19 11:00:13
&lt;br&gt;&amp;nbsp; average of crashes in the last start attempt: 0
&lt;br&gt;&amp;nbsp; average of crashes in the last 10 start attempts: 0.20
&lt;br&gt;&amp;nbsp; average of crashes in the last 30 start attempts: 0.07
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2900355&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2900355&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26423861&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-2900355---M5%3A-crash-time-tp26423861p26423861.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26422886</id>
	<title>[ monetdb-Bugs-2898944 ] pf takes 'forever' (&gt; 1 hour) to compile particular query</title>
	<published>2009-11-19T01:00:29Z</published>
	<updated>2009-11-19T01:00:29Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #2898944, was opened at 2009-11-17 09:27
&lt;br&gt;Message generated for change (Comment added) made by stmane
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: PF/compiler
&lt;br&gt;Group: Pathfinder &amp;quot;candidate&amp;quot;
&lt;br&gt;Status: Open
&lt;br&gt;Resolution: Fixed
&lt;br&gt;Priority: 6
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Axel Belinfante (axelbel)
&lt;br&gt;Assigned to: Jan Rittinger (tsheyar)
&lt;br&gt;Summary: pf takes 'forever' (&amp;gt; 1 hour) to compile particular query
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;I don't know whether the following really qualifies as bug, or just is a case of 'user error by giving stupid input.
&lt;br&gt;In any case, I would like to bring this to your attention.
&lt;br&gt;&lt;br&gt;When I compile a query for attached module definition with pf (may or aug or pre-nov version), compilation takes 'forever'.
&lt;br&gt;When I replace &amp;nbsp;the clause &amp;nbsp;ecv:to-human($g0, $human_type) &amp;nbsp; by simple &amp;nbsp; $g0
&lt;br&gt;and remove definitions of &amp;nbsp; $human_type &amp;nbsp; and &amp;nbsp; to-human &amp;nbsp; it compiles almost instantly.
&lt;br&gt;It is the huge difference in compilation time that surprises me.
&lt;br&gt;&lt;br&gt;The query I compile is:
&lt;br&gt;&lt;br&gt;import module namespace ecv = &amp;quot;&lt;a href=&quot;http://www.cs.utwente.nl/~belinfan/ecv&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.utwente.nl/~belinfan/ecv&lt;/a&gt;&amp;quot; at &amp;quot;/tmp/long-compilation.xq&amp;quot;; ecv:view-from-save(&amp;quot;eprints-export-conv-fmt.xml&amp;quot;)
&lt;br&gt;&lt;br&gt;where tmp/long-compilation.xq is the attached module.
&lt;br&gt;&lt;br&gt;&lt;br&gt;What the query attempts to do: obtain results from the database, order these on two criteria, and when listing the results, insert human-readable headers.
&lt;br&gt;The human-readable headers are obtained by the to-human mapping from field value (used as ordering criterium) to human-readable string.
&lt;br&gt;At some point I just used if-then-else-if-then-else etc. to do the mapping, but that seemed slower to compile than the approach I took here.
&lt;br&gt;&lt;br&gt;Suggestions for rewriting the query to a fast-compiling one would be considered as a fix too, I guess.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-19 10:00
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Test works fine:
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/slow_compilation.SF-2898944.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/slow_compilation.SF-2898944.out.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/slow_compilation.SF-2898944.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/slow_compilation.SF-2898944.err.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Axel,
&lt;br&gt;&lt;br&gt;could you please check and report whether Jan's fix also works for you,
&lt;br&gt;and if so, close this bug report?
&lt;br&gt;&lt;br&gt;Thanks!
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Sjoerd Mullender (sjoerd)
&lt;br&gt;Date: 2009-11-18 19:35
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;If this fix works out, it will be in the upcoming release. &amp;nbsp;(We had some
&lt;br&gt;show stoppers with yesterday's release candidate.)
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 18:34
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;===================================================================
&lt;br&gt;2009/11/18 - stmane: pathfinder/tests/BugTracker/Tests/All,1.146.2.11
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.bat,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.mod1.xq,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.mod2.xq,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.q1.xq.in,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.q2.xq.in,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.sh,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.stable.err,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.stable.out,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.timeout,1.1.2.1
&lt;br&gt;&lt;br&gt;added test (compilation via pf, only) for
&lt;br&gt;ID: 2898944 &amp;quot;pf takes 'forever' (&amp;gt; 1 hour) to compile particular query&amp;quot;
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;aid=2898944&amp;group_id=56967&amp;atid=482468&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;aid=2898944&amp;group_id=56967&amp;atid=482468&lt;/a&gt;&lt;br&gt;&lt;br&gt;Seems to work fine, now;
&lt;br&gt;compiling both queries with both `pf -A` &amp; `pf -M`
&lt;br&gt;takes less than 2 secs on my machine with a debug build.
&lt;br&gt;Set timeout to 6 secs.
&lt;br&gt;===================================================================
&lt;br&gt;&lt;br&gt;report can be closed, once nightly testing and Axel confirm the fix.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Jan Rittinger (tsheyar)
&lt;br&gt;Date: 2009-11-18 16:51
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Plan generation with permutations gets you into trouble.
&lt;br&gt;&lt;br&gt;Planning the distinct operator requires a full ordering of the table as we
&lt;br&gt;use the order extend in MIL to remove duplicates. To calculate the plans
&lt;br&gt;for all possible orders we generate all permutations. (In the first
&lt;br&gt;long-compilation example distinct was applied to a table with 7 columns and
&lt;br&gt;for the second example distinct operated on 8 columns.)
&lt;br&gt;&lt;br&gt;Now we first eliminate all functionally dependent and constant columns as
&lt;br&gt;they do not add any order information. If we still have too many
&lt;br&gt;permutations we ignore all orderings (plans) after a magic boundary.
&lt;br&gt;&lt;br&gt;With this changes in place the compile times are (almost) acceptable:
&lt;br&gt;&lt;br&gt;pf -T query-long-compilation.xq 
&lt;br&gt;...
&lt;br&gt;overall compilation time:		 974ms
&lt;br&gt;&lt;br&gt;pf -T query-long-compilation2.xq 
&lt;br&gt;...
&lt;br&gt;overall compilation time:		 02s 781ms
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 12:53
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Just a few general notes:
&lt;br&gt;&lt;br&gt;1)
&lt;br&gt;A user program can at most trigger a machine crash, but never cause it.
&lt;br&gt;If a user program triggers a machine crash (e.g., by using resources
&lt;br&gt;(too?) many resources, it's in the end a problem (bug) in the OS (or the
&lt;br&gt;hardware) that cannot properly handle (or prevent) such (over-)load
&lt;br&gt;properly.
&lt;br&gt;&lt;br&gt;2)
&lt;br&gt;If you kill (via keyboard interrupt ^C or by sending, say, SIGTERM or
&lt;br&gt;SIGKILL) a process that uses lots of memory (and possibly virtual memory,
&lt;br&gt;i.e., swap), it might indeed take some time until that process is gone and
&lt;br&gt;your prompt is back, since the systems needs to clean up that memory (and
&lt;br&gt;swap) and possibly swap your shell back into main memory ...
&lt;br&gt;&lt;br&gt;3)
&lt;br&gt;Yes, a process that is using much memory (i.e., close to or more than the
&lt;br&gt;machine has physical memory) might (usually will) affect the interactive
&lt;br&gt;responsiveness of the machine.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-18 12:36
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;the original long-compilation.xq now finishes in about 10 secs, which is
&lt;br&gt;still longer than I would like,
&lt;br&gt;but much shorter than it used to.
&lt;br&gt;&lt;br&gt;regarding time measurements, I may have caused some confusion, in the
&lt;br&gt;sense that:
&lt;br&gt;&amp;nbsp;- the original long-compilation.xq definitely took 'too long', but likely
&lt;br&gt;I always interruped it
&lt;br&gt;&amp;nbsp; &amp;nbsp;long before 1 hour passed
&lt;br&gt;&amp;nbsp;- the query that prompted me change the bug summmary line to include '&amp;gt; 1
&lt;br&gt;hour' &amp;nbsp;was a
&lt;br&gt;&amp;nbsp; &amp;nbsp;different one, I'm sure that was &amp;nbsp;long-compilation2.xq
&lt;br&gt;&lt;br&gt;long-compilation2.xq might have taken down a machine before the fix
&lt;br&gt;(machine did crash while that pf was running, but we do not know whether
&lt;br&gt;that was the cause)
&lt;br&gt;after applying the fix and rerunning the pf on long-compilation2.xq I do
&lt;br&gt;notice that 
&lt;br&gt;at some point the machine stops being responsive,
&lt;br&gt;only to become responsive again after the segfault -
&lt;br&gt;maybe the segfault saved us from a second machine crash :-)
&lt;br&gt;&lt;br&gt;I wonder whether the memory consumption is what so badly affects
&lt;br&gt;responsivity of the machine.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 12:03
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Axel,
&lt;br&gt;&lt;br&gt;what about your original long-compilation.xq?
&lt;br&gt;Does that now work fine for you (i.e., with Jan's fix)?
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-18 11:30
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;I don't want to spoil the fun, but after the fix pf still runs pretty long
&lt;br&gt;on the file I just attached
&lt;br&gt;(long-compilation2.xq)
&lt;br&gt;&lt;br&gt;top gives me:
&lt;br&gt;&amp;nbsp; PID USER &amp;nbsp; &amp;nbsp; &amp;nbsp;NI &amp;nbsp;VIRT &amp;nbsp;RES &amp;nbsp;SHR P S %CPU %MEM &amp;nbsp; TIME COMMAND &amp;nbsp; &amp;nbsp;
&lt;br&gt;26940 dbguest &amp;nbsp; &amp;nbsp;0 7164m 3.7g &amp;nbsp;172 4 R &amp;nbsp; 27 96.5 &amp;nbsp;14:07
&lt;br&gt;/local/dbguest/Install/MonetDB-XQuery_Nov2009/bin/pf -T /tmp/talt11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;I tried to kill it with ^C, without too much success
&lt;br&gt;(and I already started to fear that the machine was hung up on it),
&lt;br&gt;until a little later I saw (I started it as: time /path/to/pf &amp;nbsp;
&lt;br&gt;xqueryfile)
&lt;br&gt;&lt;br&gt;Killed
&lt;br&gt;828.295u 39.446s 16:38.94 86.8% 0+0k 0+0io 5pf+0w
&lt;br&gt;Segmentation fault
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 11:03
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;I think, adding a test (also) for this one should be done; it should be not
&lt;br&gt;only possible, but also easy:
&lt;br&gt;the query that (used to) compile for for than one hour is given, just make
&lt;br&gt;a test that calls pf to compile the query, sending the output to, say,
&lt;br&gt;/dev/null/ .
&lt;br&gt;If that finishes without error and within the default 1 minute timeout (or
&lt;br&gt;less, if desired/required; add a TSTNME.timeout file with a &amp;lt;1 scale
&lt;br&gt;factor), the test succeeded and everything is fine; otherwise, the test
&lt;br&gt;fails ...
&lt;br&gt;&lt;br&gt;... just an idea to help assessing and monitoring this issue and hence the
&lt;br&gt;stability and usability of MonetDB as such ...
&lt;br&gt;&lt;br&gt;... does not apply to this bug report, only; see also my email of last
&lt;br&gt;weekend ...
&lt;br&gt;&lt;br&gt;... if there is no time right no to add the test, keep the bug report open
&lt;br&gt;to remind us ...
&lt;br&gt;&lt;br&gt;... in fact, I do exactly that ...
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Jan Rittinger (tsheyar)
&lt;br&gt;Date: 2009-11-18 10:20
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;The reason for the 'forever' compile time is that the physical plan space
&lt;br&gt;blows up in a heuristic that tries to find good plan orders. I now added a
&lt;br&gt;check that avoids generating to many plans.
&lt;br&gt;&lt;br&gt;I checked in the fix in the Nov2009 stable branch. I'm however not sure
&lt;br&gt;whether it makes it into the release -- probably not. So please get it from
&lt;br&gt;either CVS or nightly-builds.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-17 09:32
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;not sure about category or group - chose seemingly most appropriate.
&lt;br&gt;&lt;br&gt;even though I did not change default priority , having some answer for
&lt;br&gt;this
&lt;br&gt;(whether fix in code, or guideline for fast compiling query) would be very
&lt;br&gt;helpful.
&lt;br&gt;In my application the pf compilation run is triggered from a web-gui -
&lt;br&gt;fast compilation
&lt;br&gt;is very important there, and predicatable compilation times maybe even
&lt;br&gt;more.
&lt;br&gt;(i.e. it would be nice when all compilations would take the same order of
&lt;br&gt;time).
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26422886&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-2898944---pf-takes-%27forever%27-%28%3E-1-hour%29-to-compile-particular-query-tp26422886p26422886.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26413248</id>
	<title>[ monetdb-Bugs-2898944 ] pf takes 'forever' (&gt; 1 hour) to compile particular query</title>
	<published>2009-11-18T10:35:06Z</published>
	<updated>2009-11-18T10:35:06Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #2898944, was opened at 2009-11-17 09:27
&lt;br&gt;Message generated for change (Comment added) made by sjoerd
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: PF/compiler
&lt;br&gt;Group: Pathfinder &amp;quot;candidate&amp;quot;
&lt;br&gt;Status: Open
&lt;br&gt;Resolution: Fixed
&lt;br&gt;Priority: 6
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Axel Belinfante (axelbel)
&lt;br&gt;Assigned to: Jan Rittinger (tsheyar)
&lt;br&gt;Summary: pf takes 'forever' (&amp;gt; 1 hour) to compile particular query
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;I don't know whether the following really qualifies as bug, or just is a case of 'user error by giving stupid input.
&lt;br&gt;In any case, I would like to bring this to your attention.
&lt;br&gt;&lt;br&gt;When I compile a query for attached module definition with pf (may or aug or pre-nov version), compilation takes 'forever'.
&lt;br&gt;When I replace &amp;nbsp;the clause &amp;nbsp;ecv:to-human($g0, $human_type) &amp;nbsp; by simple &amp;nbsp; $g0
&lt;br&gt;and remove definitions of &amp;nbsp; $human_type &amp;nbsp; and &amp;nbsp; to-human &amp;nbsp; it compiles almost instantly.
&lt;br&gt;It is the huge difference in compilation time that surprises me.
&lt;br&gt;&lt;br&gt;The query I compile is:
&lt;br&gt;&lt;br&gt;import module namespace ecv = &amp;quot;&lt;a href=&quot;http://www.cs.utwente.nl/~belinfan/ecv&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.utwente.nl/~belinfan/ecv&lt;/a&gt;&amp;quot; at &amp;quot;/tmp/long-compilation.xq&amp;quot;; ecv:view-from-save(&amp;quot;eprints-export-conv-fmt.xml&amp;quot;)
&lt;br&gt;&lt;br&gt;where tmp/long-compilation.xq is the attached module.
&lt;br&gt;&lt;br&gt;&lt;br&gt;What the query attempts to do: obtain results from the database, order these on two criteria, and when listing the results, insert human-readable headers.
&lt;br&gt;The human-readable headers are obtained by the to-human mapping from field value (used as ordering criterium) to human-readable string.
&lt;br&gt;At some point I just used if-then-else-if-then-else etc. to do the mapping, but that seemed slower to compile than the approach I took here.
&lt;br&gt;&lt;br&gt;Suggestions for rewriting the query to a fast-compiling one would be considered as a fix too, I guess.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Sjoerd Mullender (sjoerd)
&lt;br&gt;Date: 2009-11-18 19:35
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;If this fix works out, it will be in the upcoming release. &amp;nbsp;(We had some
&lt;br&gt;show stoppers with yesterday's release candidate.)
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 18:34
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;===================================================================
&lt;br&gt;2009/11/18 - stmane: pathfinder/tests/BugTracker/Tests/All,1.146.2.11
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.bat,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.mod1.xq,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.mod2.xq,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.q1.xq.in,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.q2.xq.in,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.sh,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.stable.err,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.stable.out,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.timeout,1.1.2.1
&lt;br&gt;&lt;br&gt;added test (compilation via pf, only) for
&lt;br&gt;ID: 2898944 &amp;quot;pf takes 'forever' (&amp;gt; 1 hour) to compile particular query&amp;quot;
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;aid=2898944&amp;group_id=56967&amp;atid=482468&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;aid=2898944&amp;group_id=56967&amp;atid=482468&lt;/a&gt;&lt;br&gt;&lt;br&gt;Seems to work fine, now;
&lt;br&gt;compiling both queries with both `pf -A` &amp; `pf -M`
&lt;br&gt;takes less than 2 secs on my machine with a debug build.
&lt;br&gt;Set timeout to 6 secs.
&lt;br&gt;===================================================================
&lt;br&gt;&lt;br&gt;report can be closed, once nightly testing and Axel confirm the fix.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Jan Rittinger (tsheyar)
&lt;br&gt;Date: 2009-11-18 16:51
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Plan generation with permutations gets you into trouble.
&lt;br&gt;&lt;br&gt;Planning the distinct operator requires a full ordering of the table as we
&lt;br&gt;use the order extend in MIL to remove duplicates. To calculate the plans
&lt;br&gt;for all possible orders we generate all permutations. (In the first
&lt;br&gt;long-compilation example distinct was applied to a table with 7 columns and
&lt;br&gt;for the second example distinct operated on 8 columns.)
&lt;br&gt;&lt;br&gt;Now we first eliminate all functionally dependent and constant columns as
&lt;br&gt;they do not add any order information. If we still have too many
&lt;br&gt;permutations we ignore all orderings (plans) after a magic boundary.
&lt;br&gt;&lt;br&gt;With this changes in place the compile times are (almost) acceptable:
&lt;br&gt;&lt;br&gt;pf -T query-long-compilation.xq 
&lt;br&gt;...
&lt;br&gt;overall compilation time:		 974ms
&lt;br&gt;&lt;br&gt;pf -T query-long-compilation2.xq 
&lt;br&gt;...
&lt;br&gt;overall compilation time:		 02s 781ms
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 12:53
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Just a few general notes:
&lt;br&gt;&lt;br&gt;1)
&lt;br&gt;A user program can at most trigger a machine crash, but never cause it.
&lt;br&gt;If a user program triggers a machine crash (e.g., by using resources
&lt;br&gt;(too?) many resources, it's in the end a problem (bug) in the OS (or the
&lt;br&gt;hardware) that cannot properly handle (or prevent) such (over-)load
&lt;br&gt;properly.
&lt;br&gt;&lt;br&gt;2)
&lt;br&gt;If you kill (via keyboard interrupt ^C or by sending, say, SIGTERM or
&lt;br&gt;SIGKILL) a process that uses lots of memory (and possibly virtual memory,
&lt;br&gt;i.e., swap), it might indeed take some time until that process is gone and
&lt;br&gt;your prompt is back, since the systems needs to clean up that memory (and
&lt;br&gt;swap) and possibly swap your shell back into main memory ...
&lt;br&gt;&lt;br&gt;3)
&lt;br&gt;Yes, a process that is using much memory (i.e., close to or more than the
&lt;br&gt;machine has physical memory) might (usually will) affect the interactive
&lt;br&gt;responsiveness of the machine.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-18 12:36
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;the original long-compilation.xq now finishes in about 10 secs, which is
&lt;br&gt;still longer than I would like,
&lt;br&gt;but much shorter than it used to.
&lt;br&gt;&lt;br&gt;regarding time measurements, I may have caused some confusion, in the
&lt;br&gt;sense that:
&lt;br&gt;&amp;nbsp;- the original long-compilation.xq definitely took 'too long', but likely
&lt;br&gt;I always interruped it
&lt;br&gt;&amp;nbsp; &amp;nbsp;long before 1 hour passed
&lt;br&gt;&amp;nbsp;- the query that prompted me change the bug summmary line to include '&amp;gt; 1
&lt;br&gt;hour' &amp;nbsp;was a
&lt;br&gt;&amp;nbsp; &amp;nbsp;different one, I'm sure that was &amp;nbsp;long-compilation2.xq
&lt;br&gt;&lt;br&gt;long-compilation2.xq might have taken down a machine before the fix
&lt;br&gt;(machine did crash while that pf was running, but we do not know whether
&lt;br&gt;that was the cause)
&lt;br&gt;after applying the fix and rerunning the pf on long-compilation2.xq I do
&lt;br&gt;notice that 
&lt;br&gt;at some point the machine stops being responsive,
&lt;br&gt;only to become responsive again after the segfault -
&lt;br&gt;maybe the segfault saved us from a second machine crash :-)
&lt;br&gt;&lt;br&gt;I wonder whether the memory consumption is what so badly affects
&lt;br&gt;responsivity of the machine.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 12:03
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Axel,
&lt;br&gt;&lt;br&gt;what about your original long-compilation.xq?
&lt;br&gt;Does that now work fine for you (i.e., with Jan's fix)?
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-18 11:30
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;I don't want to spoil the fun, but after the fix pf still runs pretty long
&lt;br&gt;on the file I just attached
&lt;br&gt;(long-compilation2.xq)
&lt;br&gt;&lt;br&gt;top gives me:
&lt;br&gt;&amp;nbsp; PID USER &amp;nbsp; &amp;nbsp; &amp;nbsp;NI &amp;nbsp;VIRT &amp;nbsp;RES &amp;nbsp;SHR P S %CPU %MEM &amp;nbsp; TIME COMMAND &amp;nbsp; &amp;nbsp;
&lt;br&gt;26940 dbguest &amp;nbsp; &amp;nbsp;0 7164m 3.7g &amp;nbsp;172 4 R &amp;nbsp; 27 96.5 &amp;nbsp;14:07
&lt;br&gt;/local/dbguest/Install/MonetDB-XQuery_Nov2009/bin/pf -T /tmp/talt11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;I tried to kill it with ^C, without too much success
&lt;br&gt;(and I already started to fear that the machine was hung up on it),
&lt;br&gt;until a little later I saw (I started it as: time /path/to/pf &amp;nbsp;
&lt;br&gt;xqueryfile)
&lt;br&gt;&lt;br&gt;Killed
&lt;br&gt;828.295u 39.446s 16:38.94 86.8% 0+0k 0+0io 5pf+0w
&lt;br&gt;Segmentation fault
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 11:03
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;I think, adding a test (also) for this one should be done; it should be not
&lt;br&gt;only possible, but also easy:
&lt;br&gt;the query that (used to) compile for for than one hour is given, just make
&lt;br&gt;a test that calls pf to compile the query, sending the output to, say,
&lt;br&gt;/dev/null/ .
&lt;br&gt;If that finishes without error and within the default 1 minute timeout (or
&lt;br&gt;less, if desired/required; add a TSTNME.timeout file with a &amp;lt;1 scale
&lt;br&gt;factor), the test succeeded and everything is fine; otherwise, the test
&lt;br&gt;fails ...
&lt;br&gt;&lt;br&gt;... just an idea to help assessing and monitoring this issue and hence the
&lt;br&gt;stability and usability of MonetDB as such ...
&lt;br&gt;&lt;br&gt;... does not apply to this bug report, only; see also my email of last
&lt;br&gt;weekend ...
&lt;br&gt;&lt;br&gt;... if there is no time right no to add the test, keep the bug report open
&lt;br&gt;to remind us ...
&lt;br&gt;&lt;br&gt;... in fact, I do exactly that ...
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Jan Rittinger (tsheyar)
&lt;br&gt;Date: 2009-11-18 10:20
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;The reason for the 'forever' compile time is that the physical plan space
&lt;br&gt;blows up in a heuristic that tries to find good plan orders. I now added a
&lt;br&gt;check that avoids generating to many plans.
&lt;br&gt;&lt;br&gt;I checked in the fix in the Nov2009 stable branch. I'm however not sure
&lt;br&gt;whether it makes it into the release -- probably not. So please get it from
&lt;br&gt;either CVS or nightly-builds.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-17 09:32
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;not sure about category or group - chose seemingly most appropriate.
&lt;br&gt;&lt;br&gt;even though I did not change default priority , having some answer for
&lt;br&gt;this
&lt;br&gt;(whether fix in code, or guideline for fast compiling query) would be very
&lt;br&gt;helpful.
&lt;br&gt;In my application the pf compilation run is triggered from a web-gui -
&lt;br&gt;fast compilation
&lt;br&gt;is very important there, and predicatable compilation times maybe even
&lt;br&gt;more.
&lt;br&gt;(i.e. it would be nice when all compilations would take the same order of
&lt;br&gt;time).
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26413248&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-2898944---pf-takes-%27forever%27-%28%3E-1-hour%29-to-compile-particular-query-tp26413248p26413248.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26412160</id>
	<title>[ monetdb-Bugs-2898944 ] pf takes 'forever' (&gt; 1 hour) to compile particular query</title>
	<published>2009-11-18T09:34:17Z</published>
	<updated>2009-11-18T09:34:17Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #2898944, was opened at 2009-11-17 09:27
&lt;br&gt;Message generated for change (Comment added) made by stmane
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: PF/compiler
&lt;br&gt;Group: Pathfinder &amp;quot;candidate&amp;quot;
&lt;br&gt;Status: Open
&lt;br&gt;Resolution: Fixed
&lt;br&gt;Priority: 6
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Axel Belinfante (axelbel)
&lt;br&gt;Assigned to: Jan Rittinger (tsheyar)
&lt;br&gt;Summary: pf takes 'forever' (&amp;gt; 1 hour) to compile particular query
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;I don't know whether the following really qualifies as bug, or just is a case of 'user error by giving stupid input.
&lt;br&gt;In any case, I would like to bring this to your attention.
&lt;br&gt;&lt;br&gt;When I compile a query for attached module definition with pf (may or aug or pre-nov version), compilation takes 'forever'.
&lt;br&gt;When I replace &amp;nbsp;the clause &amp;nbsp;ecv:to-human($g0, $human_type) &amp;nbsp; by simple &amp;nbsp; $g0
&lt;br&gt;and remove definitions of &amp;nbsp; $human_type &amp;nbsp; and &amp;nbsp; to-human &amp;nbsp; it compiles almost instantly.
&lt;br&gt;It is the huge difference in compilation time that surprises me.
&lt;br&gt;&lt;br&gt;The query I compile is:
&lt;br&gt;&lt;br&gt;import module namespace ecv = &amp;quot;&lt;a href=&quot;http://www.cs.utwente.nl/~belinfan/ecv&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.utwente.nl/~belinfan/ecv&lt;/a&gt;&amp;quot; at &amp;quot;/tmp/long-compilation.xq&amp;quot;; ecv:view-from-save(&amp;quot;eprints-export-conv-fmt.xml&amp;quot;)
&lt;br&gt;&lt;br&gt;where tmp/long-compilation.xq is the attached module.
&lt;br&gt;&lt;br&gt;&lt;br&gt;What the query attempts to do: obtain results from the database, order these on two criteria, and when listing the results, insert human-readable headers.
&lt;br&gt;The human-readable headers are obtained by the to-human mapping from field value (used as ordering criterium) to human-readable string.
&lt;br&gt;At some point I just used if-then-else-if-then-else etc. to do the mapping, but that seemed slower to compile than the approach I took here.
&lt;br&gt;&lt;br&gt;Suggestions for rewriting the query to a fast-compiling one would be considered as a fix too, I guess.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 18:34
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;===================================================================
&lt;br&gt;2009/11/18 - stmane: pathfinder/tests/BugTracker/Tests/All,1.146.2.11
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.bat,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.mod1.xq,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.mod2.xq,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.q1.xq.in,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.q2.xq.in,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.sh,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.stable.err,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.stable.out,1.1.2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;pathfinder/tests/BugTracker/Tests/slow_compilation.SF-2898944.timeout,1.1.2.1
&lt;br&gt;&lt;br&gt;added test (compilation via pf, only) for
&lt;br&gt;ID: 2898944 &amp;quot;pf takes 'forever' (&amp;gt; 1 hour) to compile particular query&amp;quot;
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;aid=2898944&amp;group_id=56967&amp;atid=482468&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;aid=2898944&amp;group_id=56967&amp;atid=482468&lt;/a&gt;&lt;br&gt;&lt;br&gt;Seems to work fine, now;
&lt;br&gt;compiling both queries with both `pf -A` &amp; `pf -M`
&lt;br&gt;takes less than 2 secs on my machine with a debug build.
&lt;br&gt;Set timeout to 6 secs.
&lt;br&gt;===================================================================
&lt;br&gt;&lt;br&gt;report can be closed, once nightly testing and Axel confirm the fix.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Jan Rittinger (tsheyar)
&lt;br&gt;Date: 2009-11-18 16:51
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Plan generation with permutations gets you into trouble.
&lt;br&gt;&lt;br&gt;Planning the distinct operator requires a full ordering of the table as we
&lt;br&gt;use the order extend in MIL to remove duplicates. To calculate the plans
&lt;br&gt;for all possible orders we generate all permutations. (In the first
&lt;br&gt;long-compilation example distinct was applied to a table with 7 columns and
&lt;br&gt;for the second example distinct operated on 8 columns.)
&lt;br&gt;&lt;br&gt;Now we first eliminate all functionally dependent and constant columns as
&lt;br&gt;they do not add any order information. If we still have too many
&lt;br&gt;permutations we ignore all orderings (plans) after a magic boundary.
&lt;br&gt;&lt;br&gt;With this changes in place the compile times are (almost) acceptable:
&lt;br&gt;&lt;br&gt;pf -T query-long-compilation.xq 
&lt;br&gt;...
&lt;br&gt;overall compilation time:		 974ms
&lt;br&gt;&lt;br&gt;pf -T query-long-compilation2.xq 
&lt;br&gt;...
&lt;br&gt;overall compilation time:		 02s 781ms
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 12:53
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Just a few general notes:
&lt;br&gt;&lt;br&gt;1)
&lt;br&gt;A user program can at most trigger a machine crash, but never cause it.
&lt;br&gt;If a user program triggers a machine crash (e.g., by using resources
&lt;br&gt;(too?) many resources, it's in the end a problem (bug) in the OS (or the
&lt;br&gt;hardware) that cannot properly handle (or prevent) such (over-)load
&lt;br&gt;properly.
&lt;br&gt;&lt;br&gt;2)
&lt;br&gt;If you kill (via keyboard interrupt ^C or by sending, say, SIGTERM or
&lt;br&gt;SIGKILL) a process that uses lots of memory (and possibly virtual memory,
&lt;br&gt;i.e., swap), it might indeed take some time until that process is gone and
&lt;br&gt;your prompt is back, since the systems needs to clean up that memory (and
&lt;br&gt;swap) and possibly swap your shell back into main memory ...
&lt;br&gt;&lt;br&gt;3)
&lt;br&gt;Yes, a process that is using much memory (i.e., close to or more than the
&lt;br&gt;machine has physical memory) might (usually will) affect the interactive
&lt;br&gt;responsiveness of the machine.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-18 12:36
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;the original long-compilation.xq now finishes in about 10 secs, which is
&lt;br&gt;still longer than I would like,
&lt;br&gt;but much shorter than it used to.
&lt;br&gt;&lt;br&gt;regarding time measurements, I may have caused some confusion, in the
&lt;br&gt;sense that:
&lt;br&gt;&amp;nbsp;- the original long-compilation.xq definitely took 'too long', but likely
&lt;br&gt;I always interruped it
&lt;br&gt;&amp;nbsp; &amp;nbsp;long before 1 hour passed
&lt;br&gt;&amp;nbsp;- the query that prompted me change the bug summmary line to include '&amp;gt; 1
&lt;br&gt;hour' &amp;nbsp;was a
&lt;br&gt;&amp;nbsp; &amp;nbsp;different one, I'm sure that was &amp;nbsp;long-compilation2.xq
&lt;br&gt;&lt;br&gt;long-compilation2.xq might have taken down a machine before the fix
&lt;br&gt;(machine did crash while that pf was running, but we do not know whether
&lt;br&gt;that was the cause)
&lt;br&gt;after applying the fix and rerunning the pf on long-compilation2.xq I do
&lt;br&gt;notice that 
&lt;br&gt;at some point the machine stops being responsive,
&lt;br&gt;only to become responsive again after the segfault -
&lt;br&gt;maybe the segfault saved us from a second machine crash :-)
&lt;br&gt;&lt;br&gt;I wonder whether the memory consumption is what so badly affects
&lt;br&gt;responsivity of the machine.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 12:03
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Axel,
&lt;br&gt;&lt;br&gt;what about your original long-compilation.xq?
&lt;br&gt;Does that now work fine for you (i.e., with Jan's fix)?
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-18 11:30
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;I don't want to spoil the fun, but after the fix pf still runs pretty long
&lt;br&gt;on the file I just attached
&lt;br&gt;(long-compilation2.xq)
&lt;br&gt;&lt;br&gt;top gives me:
&lt;br&gt;&amp;nbsp; PID USER &amp;nbsp; &amp;nbsp; &amp;nbsp;NI &amp;nbsp;VIRT &amp;nbsp;RES &amp;nbsp;SHR P S %CPU %MEM &amp;nbsp; TIME COMMAND &amp;nbsp; &amp;nbsp;
&lt;br&gt;26940 dbguest &amp;nbsp; &amp;nbsp;0 7164m 3.7g &amp;nbsp;172 4 R &amp;nbsp; 27 96.5 &amp;nbsp;14:07
&lt;br&gt;/local/dbguest/Install/MonetDB-XQuery_Nov2009/bin/pf -T /tmp/talt11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;I tried to kill it with ^C, without too much success
&lt;br&gt;(and I already started to fear that the machine was hung up on it),
&lt;br&gt;until a little later I saw (I started it as: time /path/to/pf &amp;nbsp;
&lt;br&gt;xqueryfile)
&lt;br&gt;&lt;br&gt;Killed
&lt;br&gt;828.295u 39.446s 16:38.94 86.8% 0+0k 0+0io 5pf+0w
&lt;br&gt;Segmentation fault
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 11:03
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;I think, adding a test (also) for this one should be done; it should be not
&lt;br&gt;only possible, but also easy:
&lt;br&gt;the query that (used to) compile for for than one hour is given, just make
&lt;br&gt;a test that calls pf to compile the query, sending the output to, say,
&lt;br&gt;/dev/null/ .
&lt;br&gt;If that finishes without error and within the default 1 minute timeout (or
&lt;br&gt;less, if desired/required; add a TSTNME.timeout file with a &amp;lt;1 scale
&lt;br&gt;factor), the test succeeded and everything is fine; otherwise, the test
&lt;br&gt;fails ...
&lt;br&gt;&lt;br&gt;... just an idea to help assessing and monitoring this issue and hence the
&lt;br&gt;stability and usability of MonetDB as such ...
&lt;br&gt;&lt;br&gt;... does not apply to this bug report, only; see also my email of last
&lt;br&gt;weekend ...
&lt;br&gt;&lt;br&gt;... if there is no time right no to add the test, keep the bug report open
&lt;br&gt;to remind us ...
&lt;br&gt;&lt;br&gt;... in fact, I do exactly that ...
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Jan Rittinger (tsheyar)
&lt;br&gt;Date: 2009-11-18 10:20
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;The reason for the 'forever' compile time is that the physical plan space
&lt;br&gt;blows up in a heuristic that tries to find good plan orders. I now added a
&lt;br&gt;check that avoids generating to many plans.
&lt;br&gt;&lt;br&gt;I checked in the fix in the Nov2009 stable branch. I'm however not sure
&lt;br&gt;whether it makes it into the release -- probably not. So please get it from
&lt;br&gt;either CVS or nightly-builds.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-17 09:32
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;not sure about category or group - chose seemingly most appropriate.
&lt;br&gt;&lt;br&gt;even though I did not change default priority , having some answer for
&lt;br&gt;this
&lt;br&gt;(whether fix in code, or guideline for fast compiling query) would be very
&lt;br&gt;helpful.
&lt;br&gt;In my application the pf compilation run is triggered from a web-gui -
&lt;br&gt;fast compilation
&lt;br&gt;is very important there, and predicatable compilation times maybe even
&lt;br&gt;more.
&lt;br&gt;(i.e. it would be nice when all compilations would take the same order of
&lt;br&gt;time).
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26412160&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-2898944---pf-takes-%27forever%27-%28%3E-1-hour%29-to-compile-particular-query-tp26412160p26412160.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26410342</id>
	<title>[ monetdb-Bugs-2898944 ] pf takes 'forever' (&gt; 1 hour) to compile particular query</title>
	<published>2009-11-18T07:51:28Z</published>
	<updated>2009-11-18T07:51:28Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #2898944, was opened at 2009-11-17 09:27
&lt;br&gt;Message generated for change (Comment added) made by tsheyar
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: PF/compiler
&lt;br&gt;Group: Pathfinder &amp;quot;candidate&amp;quot;
&lt;br&gt;Status: Open
&lt;br&gt;Resolution: Fixed
&lt;br&gt;Priority: 6
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Axel Belinfante (axelbel)
&lt;br&gt;Assigned to: Jan Rittinger (tsheyar)
&lt;br&gt;Summary: pf takes 'forever' (&amp;gt; 1 hour) to compile particular query
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;I don't know whether the following really qualifies as bug, or just is a case of 'user error by giving stupid input.
&lt;br&gt;In any case, I would like to bring this to your attention.
&lt;br&gt;&lt;br&gt;When I compile a query for attached module definition with pf (may or aug or pre-nov version), compilation takes 'forever'.
&lt;br&gt;When I replace &amp;nbsp;the clause &amp;nbsp;ecv:to-human($g0, $human_type) &amp;nbsp; by simple &amp;nbsp; $g0
&lt;br&gt;and remove definitions of &amp;nbsp; $human_type &amp;nbsp; and &amp;nbsp; to-human &amp;nbsp; it compiles almost instantly.
&lt;br&gt;It is the huge difference in compilation time that surprises me.
&lt;br&gt;&lt;br&gt;The query I compile is:
&lt;br&gt;&lt;br&gt;import module namespace ecv = &amp;quot;&lt;a href=&quot;http://www.cs.utwente.nl/~belinfan/ecv&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.utwente.nl/~belinfan/ecv&lt;/a&gt;&amp;quot; at &amp;quot;/tmp/long-compilation.xq&amp;quot;; ecv:view-from-save(&amp;quot;eprints-export-conv-fmt.xml&amp;quot;)
&lt;br&gt;&lt;br&gt;where tmp/long-compilation.xq is the attached module.
&lt;br&gt;&lt;br&gt;&lt;br&gt;What the query attempts to do: obtain results from the database, order these on two criteria, and when listing the results, insert human-readable headers.
&lt;br&gt;The human-readable headers are obtained by the to-human mapping from field value (used as ordering criterium) to human-readable string.
&lt;br&gt;At some point I just used if-then-else-if-then-else etc. to do the mapping, but that seemed slower to compile than the approach I took here.
&lt;br&gt;&lt;br&gt;Suggestions for rewriting the query to a fast-compiling one would be considered as a fix too, I guess.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Jan Rittinger (tsheyar)
&lt;br&gt;Date: 2009-11-18 16:51
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Plan generation with permutations gets you into trouble.
&lt;br&gt;&lt;br&gt;Planning the distinct operator requires a full ordering of the table as we
&lt;br&gt;use the order extend in MIL to remove duplicates. To calculate the plans
&lt;br&gt;for all possible orders we generate all permutations. (In the first
&lt;br&gt;long-compilation example distinct was applied to a table with 7 columns and
&lt;br&gt;for the second example distinct operated on 8 columns.)
&lt;br&gt;&lt;br&gt;Now we first eliminate all functionally dependent and constant columns as
&lt;br&gt;they do not add any order information. If we still have too many
&lt;br&gt;permutations we ignore all orderings (plans) after a magic boundary.
&lt;br&gt;&lt;br&gt;With this changes in place the compile times are (almost) acceptable:
&lt;br&gt;&lt;br&gt;pf -T query-long-compilation.xq 
&lt;br&gt;...
&lt;br&gt;overall compilation time:		 974ms
&lt;br&gt;&lt;br&gt;pf -T query-long-compilation2.xq 
&lt;br&gt;...
&lt;br&gt;overall compilation time:		 02s 781ms
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 12:53
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Just a few general notes:
&lt;br&gt;&lt;br&gt;1)
&lt;br&gt;A user program can at most trigger a machine crash, but never cause it.
&lt;br&gt;If a user program triggers a machine crash (e.g., by using resources
&lt;br&gt;(too?) many resources, it's in the end a problem (bug) in the OS (or the
&lt;br&gt;hardware) that cannot properly handle (or prevent) such (over-)load
&lt;br&gt;properly.
&lt;br&gt;&lt;br&gt;2)
&lt;br&gt;If you kill (via keyboard interrupt ^C or by sending, say, SIGTERM or
&lt;br&gt;SIGKILL) a process that uses lots of memory (and possibly virtual memory,
&lt;br&gt;i.e., swap), it might indeed take some time until that process is gone and
&lt;br&gt;your prompt is back, since the systems needs to clean up that memory (and
&lt;br&gt;swap) and possibly swap your shell back into main memory ...
&lt;br&gt;&lt;br&gt;3)
&lt;br&gt;Yes, a process that is using much memory (i.e., close to or more than the
&lt;br&gt;machine has physical memory) might (usually will) affect the interactive
&lt;br&gt;responsiveness of the machine.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-18 12:36
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;the original long-compilation.xq now finishes in about 10 secs, which is
&lt;br&gt;still longer than I would like,
&lt;br&gt;but much shorter than it used to.
&lt;br&gt;&lt;br&gt;regarding time measurements, I may have caused some confusion, in the
&lt;br&gt;sense that:
&lt;br&gt;&amp;nbsp;- the original long-compilation.xq definitely took 'too long', but likely
&lt;br&gt;I always interruped it
&lt;br&gt;&amp;nbsp; &amp;nbsp;long before 1 hour passed
&lt;br&gt;&amp;nbsp;- the query that prompted me change the bug summmary line to include '&amp;gt; 1
&lt;br&gt;hour' &amp;nbsp;was a
&lt;br&gt;&amp;nbsp; &amp;nbsp;different one, I'm sure that was &amp;nbsp;long-compilation2.xq
&lt;br&gt;&lt;br&gt;long-compilation2.xq might have taken down a machine before the fix
&lt;br&gt;(machine did crash while that pf was running, but we do not know whether
&lt;br&gt;that was the cause)
&lt;br&gt;after applying the fix and rerunning the pf on long-compilation2.xq I do
&lt;br&gt;notice that 
&lt;br&gt;at some point the machine stops being responsive,
&lt;br&gt;only to become responsive again after the segfault -
&lt;br&gt;maybe the segfault saved us from a second machine crash :-)
&lt;br&gt;&lt;br&gt;I wonder whether the memory consumption is what so badly affects
&lt;br&gt;responsivity of the machine.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 12:03
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Axel,
&lt;br&gt;&lt;br&gt;what about your original long-compilation.xq?
&lt;br&gt;Does that now work fine for you (i.e., with Jan's fix)?
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-18 11:30
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;I don't want to spoil the fun, but after the fix pf still runs pretty long
&lt;br&gt;on the file I just attached
&lt;br&gt;(long-compilation2.xq)
&lt;br&gt;&lt;br&gt;top gives me:
&lt;br&gt;&amp;nbsp; PID USER &amp;nbsp; &amp;nbsp; &amp;nbsp;NI &amp;nbsp;VIRT &amp;nbsp;RES &amp;nbsp;SHR P S %CPU %MEM &amp;nbsp; TIME COMMAND &amp;nbsp; &amp;nbsp;
&lt;br&gt;26940 dbguest &amp;nbsp; &amp;nbsp;0 7164m 3.7g &amp;nbsp;172 4 R &amp;nbsp; 27 96.5 &amp;nbsp;14:07
&lt;br&gt;/local/dbguest/Install/MonetDB-XQuery_Nov2009/bin/pf -T /tmp/talt11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;I tried to kill it with ^C, without too much success
&lt;br&gt;(and I already started to fear that the machine was hung up on it),
&lt;br&gt;until a little later I saw (I started it as: time /path/to/pf &amp;nbsp;
&lt;br&gt;xqueryfile)
&lt;br&gt;&lt;br&gt;Killed
&lt;br&gt;828.295u 39.446s 16:38.94 86.8% 0+0k 0+0io 5pf+0w
&lt;br&gt;Segmentation fault
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 11:03
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;I think, adding a test (also) for this one should be done; it should be not
&lt;br&gt;only possible, but also easy:
&lt;br&gt;the query that (used to) compile for for than one hour is given, just make
&lt;br&gt;a test that calls pf to compile the query, sending the output to, say,
&lt;br&gt;/dev/null/ .
&lt;br&gt;If that finishes without error and within the default 1 minute timeout (or
&lt;br&gt;less, if desired/required; add a TSTNME.timeout file with a &amp;lt;1 scale
&lt;br&gt;factor), the test succeeded and everything is fine; otherwise, the test
&lt;br&gt;fails ...
&lt;br&gt;&lt;br&gt;... just an idea to help assessing and monitoring this issue and hence the
&lt;br&gt;stability and usability of MonetDB as such ...
&lt;br&gt;&lt;br&gt;... does not apply to this bug report, only; see also my email of last
&lt;br&gt;weekend ...
&lt;br&gt;&lt;br&gt;... if there is no time right no to add the test, keep the bug report open
&lt;br&gt;to remind us ...
&lt;br&gt;&lt;br&gt;... in fact, I do exactly that ...
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Jan Rittinger (tsheyar)
&lt;br&gt;Date: 2009-11-18 10:20
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;The reason for the 'forever' compile time is that the physical plan space
&lt;br&gt;blows up in a heuristic that tries to find good plan orders. I now added a
&lt;br&gt;check that avoids generating to many plans.
&lt;br&gt;&lt;br&gt;I checked in the fix in the Nov2009 stable branch. I'm however not sure
&lt;br&gt;whether it makes it into the release -- probably not. So please get it from
&lt;br&gt;either CVS or nightly-builds.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-17 09:32
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;not sure about category or group - chose seemingly most appropriate.
&lt;br&gt;&lt;br&gt;even though I did not change default priority , having some answer for
&lt;br&gt;this
&lt;br&gt;(whether fix in code, or guideline for fast compiling query) would be very
&lt;br&gt;helpful.
&lt;br&gt;In my application the pf compilation run is triggered from a web-gui -
&lt;br&gt;fast compilation
&lt;br&gt;is very important there, and predicatable compilation times maybe even
&lt;br&gt;more.
&lt;br&gt;(i.e. it would be nice when all compilations would take the same order of
&lt;br&gt;time).
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26410342&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-2898944---pf-takes-%27forever%27-%28%3E-1-hour%29-to-compile-particular-query-tp26410342p26410342.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26406506</id>
	<title>[ monetdb-Bugs-2898944 ] pf takes 'forever' (&gt; 1 hour) to compile particular query</title>
	<published>2009-11-18T03:53:34Z</published>
	<updated>2009-11-18T03:53:34Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #2898944, was opened at 2009-11-17 09:27
&lt;br&gt;Message generated for change (Comment added) made by stmane
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: PF/compiler
&lt;br&gt;Group: Pathfinder &amp;quot;candidate&amp;quot;
&lt;br&gt;Status: Open
&lt;br&gt;Resolution: Fixed
&lt;br&gt;Priority: 6
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Axel Belinfante (axelbel)
&lt;br&gt;Assigned to: Jan Rittinger (tsheyar)
&lt;br&gt;Summary: pf takes 'forever' (&amp;gt; 1 hour) to compile particular query
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;I don't know whether the following really qualifies as bug, or just is a case of 'user error by giving stupid input.
&lt;br&gt;In any case, I would like to bring this to your attention.
&lt;br&gt;&lt;br&gt;When I compile a query for attached module definition with pf (may or aug or pre-nov version), compilation takes 'forever'.
&lt;br&gt;When I replace &amp;nbsp;the clause &amp;nbsp;ecv:to-human($g0, $human_type) &amp;nbsp; by simple &amp;nbsp; $g0
&lt;br&gt;and remove definitions of &amp;nbsp; $human_type &amp;nbsp; and &amp;nbsp; to-human &amp;nbsp; it compiles almost instantly.
&lt;br&gt;It is the huge difference in compilation time that surprises me.
&lt;br&gt;&lt;br&gt;The query I compile is:
&lt;br&gt;&lt;br&gt;import module namespace ecv = &amp;quot;&lt;a href=&quot;http://www.cs.utwente.nl/~belinfan/ecv&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.utwente.nl/~belinfan/ecv&lt;/a&gt;&amp;quot; at &amp;quot;/tmp/long-compilation.xq&amp;quot;; ecv:view-from-save(&amp;quot;eprints-export-conv-fmt.xml&amp;quot;)
&lt;br&gt;&lt;br&gt;where tmp/long-compilation.xq is the attached module.
&lt;br&gt;&lt;br&gt;&lt;br&gt;What the query attempts to do: obtain results from the database, order these on two criteria, and when listing the results, insert human-readable headers.
&lt;br&gt;The human-readable headers are obtained by the to-human mapping from field value (used as ordering criterium) to human-readable string.
&lt;br&gt;At some point I just used if-then-else-if-then-else etc. to do the mapping, but that seemed slower to compile than the approach I took here.
&lt;br&gt;&lt;br&gt;Suggestions for rewriting the query to a fast-compiling one would be considered as a fix too, I guess.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 12:53
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Just a few general notes:
&lt;br&gt;&lt;br&gt;1)
&lt;br&gt;A user program can at most trigger a machine crash, but never cause it.
&lt;br&gt;If a user program triggers a machine crash (e.g., by using resources
&lt;br&gt;(too?) many resources, it's in the end a problem (bug) in the OS (or the
&lt;br&gt;hardware) that cannot properly handle (or prevent) such (over-)load
&lt;br&gt;properly.
&lt;br&gt;&lt;br&gt;2)
&lt;br&gt;If you kill (via keyboard interrupt ^C or by sending, say, SIGTERM or
&lt;br&gt;SIGKILL) a process that uses lots of memory (and possibly virtual memory,
&lt;br&gt;i.e., swap), it might indeed take some time until that process is gone and
&lt;br&gt;your prompt is back, since the systems needs to clean up that memory (and
&lt;br&gt;swap) and possibly swap your shell back into main memory ...
&lt;br&gt;&lt;br&gt;3)
&lt;br&gt;Yes, a process that is using much memory (i.e., close to or more than the
&lt;br&gt;machine has physical memory) might (usually will) affect the interactive
&lt;br&gt;responsiveness of the machine.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-18 12:36
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;the original long-compilation.xq now finishes in about 10 secs, which is
&lt;br&gt;still longer than I would like,
&lt;br&gt;but much shorter than it used to.
&lt;br&gt;&lt;br&gt;regarding time measurements, I may have caused some confusion, in the
&lt;br&gt;sense that:
&lt;br&gt;&amp;nbsp;- the original long-compilation.xq definitely took 'too long', but likely
&lt;br&gt;I always interruped it
&lt;br&gt;&amp;nbsp; &amp;nbsp;long before 1 hour passed
&lt;br&gt;&amp;nbsp;- the query that prompted me change the bug summmary line to include '&amp;gt; 1
&lt;br&gt;hour' &amp;nbsp;was a
&lt;br&gt;&amp;nbsp; &amp;nbsp;different one, I'm sure that was &amp;nbsp;long-compilation2.xq
&lt;br&gt;&lt;br&gt;long-compilation2.xq might have taken down a machine before the fix
&lt;br&gt;(machine did crash while that pf was running, but we do not know whether
&lt;br&gt;that was the cause)
&lt;br&gt;after applying the fix and rerunning the pf on long-compilation2.xq I do
&lt;br&gt;notice that 
&lt;br&gt;at some point the machine stops being responsive,
&lt;br&gt;only to become responsive again after the segfault -
&lt;br&gt;maybe the segfault saved us from a second machine crash :-)
&lt;br&gt;&lt;br&gt;I wonder whether the memory consumption is what so badly affects
&lt;br&gt;responsivity of the machine.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 12:03
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Axel,
&lt;br&gt;&lt;br&gt;what about your original long-compilation.xq?
&lt;br&gt;Does that now work fine for you (i.e., with Jan's fix)?
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-18 11:30
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;I don't want to spoil the fun, but after the fix pf still runs pretty long
&lt;br&gt;on the file I just attached
&lt;br&gt;(long-compilation2.xq)
&lt;br&gt;&lt;br&gt;top gives me:
&lt;br&gt;&amp;nbsp; PID USER &amp;nbsp; &amp;nbsp; &amp;nbsp;NI &amp;nbsp;VIRT &amp;nbsp;RES &amp;nbsp;SHR P S %CPU %MEM &amp;nbsp; TIME COMMAND &amp;nbsp; &amp;nbsp;
&lt;br&gt;26940 dbguest &amp;nbsp; &amp;nbsp;0 7164m 3.7g &amp;nbsp;172 4 R &amp;nbsp; 27 96.5 &amp;nbsp;14:07
&lt;br&gt;/local/dbguest/Install/MonetDB-XQuery_Nov2009/bin/pf -T /tmp/talt11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;I tried to kill it with ^C, without too much success
&lt;br&gt;(and I already started to fear that the machine was hung up on it),
&lt;br&gt;until a little later I saw (I started it as: time /path/to/pf &amp;nbsp;
&lt;br&gt;xqueryfile)
&lt;br&gt;&lt;br&gt;Killed
&lt;br&gt;828.295u 39.446s 16:38.94 86.8% 0+0k 0+0io 5pf+0w
&lt;br&gt;Segmentation fault
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 11:03
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;I think, adding a test (also) for this one should be done; it should be not
&lt;br&gt;only possible, but also easy:
&lt;br&gt;the query that (used to) compile for for than one hour is given, just make
&lt;br&gt;a test that calls pf to compile the query, sending the output to, say,
&lt;br&gt;/dev/null/ .
&lt;br&gt;If that finishes without error and within the default 1 minute timeout (or
&lt;br&gt;less, if desired/required; add a TSTNME.timeout file with a &amp;lt;1 scale
&lt;br&gt;factor), the test succeeded and everything is fine; otherwise, the test
&lt;br&gt;fails ...
&lt;br&gt;&lt;br&gt;... just an idea to help assessing and monitoring this issue and hence the
&lt;br&gt;stability and usability of MonetDB as such ...
&lt;br&gt;&lt;br&gt;... does not apply to this bug report, only; see also my email of last
&lt;br&gt;weekend ...
&lt;br&gt;&lt;br&gt;... if there is no time right no to add the test, keep the bug report open
&lt;br&gt;to remind us ...
&lt;br&gt;&lt;br&gt;... in fact, I do exactly that ...
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Jan Rittinger (tsheyar)
&lt;br&gt;Date: 2009-11-18 10:20
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;The reason for the 'forever' compile time is that the physical plan space
&lt;br&gt;blows up in a heuristic that tries to find good plan orders. I now added a
&lt;br&gt;check that avoids generating to many plans.
&lt;br&gt;&lt;br&gt;I checked in the fix in the Nov2009 stable branch. I'm however not sure
&lt;br&gt;whether it makes it into the release -- probably not. So please get it from
&lt;br&gt;either CVS or nightly-builds.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-17 09:32
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;not sure about category or group - chose seemingly most appropriate.
&lt;br&gt;&lt;br&gt;even though I did not change default priority , having some answer for
&lt;br&gt;this
&lt;br&gt;(whether fix in code, or guideline for fast compiling query) would be very
&lt;br&gt;helpful.
&lt;br&gt;In my application the pf compilation run is triggered from a web-gui -
&lt;br&gt;fast compilation
&lt;br&gt;is very important there, and predicatable compilation times maybe even
&lt;br&gt;more.
&lt;br&gt;(i.e. it would be nice when all compilations would take the same order of
&lt;br&gt;time).
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26406506&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-2898944---pf-takes-%27forever%27-%28%3E-1-hour%29-to-compile-particular-query-tp26406506p26406506.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26406322</id>
	<title>[ monetdb-Bugs-2898944 ] pf takes 'forever' (&gt; 1 hour) to compile particular query</title>
	<published>2009-11-18T03:36:00Z</published>
	<updated>2009-11-18T03:36:00Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #2898944, was opened at 2009-11-17 09:27
&lt;br&gt;Message generated for change (Comment added) made by axelbel
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: PF/compiler
&lt;br&gt;Group: Pathfinder &amp;quot;candidate&amp;quot;
&lt;br&gt;Status: Open
&lt;br&gt;Resolution: Fixed
&lt;br&gt;Priority: 6
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Axel Belinfante (axelbel)
&lt;br&gt;Assigned to: Jan Rittinger (tsheyar)
&lt;br&gt;Summary: pf takes 'forever' (&amp;gt; 1 hour) to compile particular query
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;I don't know whether the following really qualifies as bug, or just is a case of 'user error by giving stupid input.
&lt;br&gt;In any case, I would like to bring this to your attention.
&lt;br&gt;&lt;br&gt;When I compile a query for attached module definition with pf (may or aug or pre-nov version), compilation takes 'forever'.
&lt;br&gt;When I replace &amp;nbsp;the clause &amp;nbsp;ecv:to-human($g0, $human_type) &amp;nbsp; by simple &amp;nbsp; $g0
&lt;br&gt;and remove definitions of &amp;nbsp; $human_type &amp;nbsp; and &amp;nbsp; to-human &amp;nbsp; it compiles almost instantly.
&lt;br&gt;It is the huge difference in compilation time that surprises me.
&lt;br&gt;&lt;br&gt;The query I compile is:
&lt;br&gt;&lt;br&gt;import module namespace ecv = &amp;quot;&lt;a href=&quot;http://www.cs.utwente.nl/~belinfan/ecv&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.utwente.nl/~belinfan/ecv&lt;/a&gt;&amp;quot; at &amp;quot;/tmp/long-compilation.xq&amp;quot;; ecv:view-from-save(&amp;quot;eprints-export-conv-fmt.xml&amp;quot;)
&lt;br&gt;&lt;br&gt;where tmp/long-compilation.xq is the attached module.
&lt;br&gt;&lt;br&gt;&lt;br&gt;What the query attempts to do: obtain results from the database, order these on two criteria, and when listing the results, insert human-readable headers.
&lt;br&gt;The human-readable headers are obtained by the to-human mapping from field value (used as ordering criterium) to human-readable string.
&lt;br&gt;At some point I just used if-then-else-if-then-else etc. to do the mapping, but that seemed slower to compile than the approach I took here.
&lt;br&gt;&lt;br&gt;Suggestions for rewriting the query to a fast-compiling one would be considered as a fix too, I guess.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-18 12:36
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;the original long-compilation.xq now finishes in about 10 secs, which is
&lt;br&gt;still longer than I would like,
&lt;br&gt;but much shorter than it used to.
&lt;br&gt;&lt;br&gt;regarding time measurements, I may have caused some confusion, in the
&lt;br&gt;sense that:
&lt;br&gt;&amp;nbsp;- the original long-compilation.xq definitely took 'too long', but likely
&lt;br&gt;I always interruped it
&lt;br&gt;&amp;nbsp; &amp;nbsp;long before 1 hour passed
&lt;br&gt;&amp;nbsp;- the query that prompted me change the bug summmary line to include '&amp;gt; 1
&lt;br&gt;hour' &amp;nbsp;was a
&lt;br&gt;&amp;nbsp; &amp;nbsp;different one, I'm sure that was &amp;nbsp;long-compilation2.xq
&lt;br&gt;&lt;br&gt;long-compilation2.xq might have taken down a machine before the fix
&lt;br&gt;(machine did crash while that pf was running, but we do not know whether
&lt;br&gt;that was the cause)
&lt;br&gt;after applying the fix and rerunning the pf on long-compilation2.xq I do
&lt;br&gt;notice that 
&lt;br&gt;at some point the machine stops being responsive,
&lt;br&gt;only to become responsive again after the segfault -
&lt;br&gt;maybe the segfault saved us from a second machine crash :-)
&lt;br&gt;&lt;br&gt;I wonder whether the memory consumption is what so badly affects
&lt;br&gt;responsivity of the machine.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 12:03
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Axel,
&lt;br&gt;&lt;br&gt;what about your original long-compilation.xq?
&lt;br&gt;Does that now work fine for you (i.e., with Jan's fix)?
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-18 11:30
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;I don't want to spoil the fun, but after the fix pf still runs pretty long
&lt;br&gt;on the file I just attached
&lt;br&gt;(long-compilation2.xq)
&lt;br&gt;&lt;br&gt;top gives me:
&lt;br&gt;&amp;nbsp; PID USER &amp;nbsp; &amp;nbsp; &amp;nbsp;NI &amp;nbsp;VIRT &amp;nbsp;RES &amp;nbsp;SHR P S %CPU %MEM &amp;nbsp; TIME COMMAND &amp;nbsp; &amp;nbsp;
&lt;br&gt;26940 dbguest &amp;nbsp; &amp;nbsp;0 7164m 3.7g &amp;nbsp;172 4 R &amp;nbsp; 27 96.5 &amp;nbsp;14:07
&lt;br&gt;/local/dbguest/Install/MonetDB-XQuery_Nov2009/bin/pf -T /tmp/talt11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;I tried to kill it with ^C, without too much success
&lt;br&gt;(and I already started to fear that the machine was hung up on it),
&lt;br&gt;until a little later I saw (I started it as: time /path/to/pf &amp;nbsp;
&lt;br&gt;xqueryfile)
&lt;br&gt;&lt;br&gt;Killed
&lt;br&gt;828.295u 39.446s 16:38.94 86.8% 0+0k 0+0io 5pf+0w
&lt;br&gt;Segmentation fault
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 11:03
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;I think, adding a test (also) for this one should be done; it should be not
&lt;br&gt;only possible, but also easy:
&lt;br&gt;the query that (used to) compile for for than one hour is given, just make
&lt;br&gt;a test that calls pf to compile the query, sending the output to, say,
&lt;br&gt;/dev/null/ .
&lt;br&gt;If that finishes without error and within the default 1 minute timeout (or
&lt;br&gt;less, if desired/required; add a TSTNME.timeout file with a &amp;lt;1 scale
&lt;br&gt;factor), the test succeeded and everything is fine; otherwise, the test
&lt;br&gt;fails ...
&lt;br&gt;&lt;br&gt;... just an idea to help assessing and monitoring this issue and hence the
&lt;br&gt;stability and usability of MonetDB as such ...
&lt;br&gt;&lt;br&gt;... does not apply to this bug report, only; see also my email of last
&lt;br&gt;weekend ...
&lt;br&gt;&lt;br&gt;... if there is no time right no to add the test, keep the bug report open
&lt;br&gt;to remind us ...
&lt;br&gt;&lt;br&gt;... in fact, I do exactly that ...
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Jan Rittinger (tsheyar)
&lt;br&gt;Date: 2009-11-18 10:20
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;The reason for the 'forever' compile time is that the physical plan space
&lt;br&gt;blows up in a heuristic that tries to find good plan orders. I now added a
&lt;br&gt;check that avoids generating to many plans.
&lt;br&gt;&lt;br&gt;I checked in the fix in the Nov2009 stable branch. I'm however not sure
&lt;br&gt;whether it makes it into the release -- probably not. So please get it from
&lt;br&gt;either CVS or nightly-builds.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-17 09:32
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;not sure about category or group - chose seemingly most appropriate.
&lt;br&gt;&lt;br&gt;even though I did not change default priority , having some answer for
&lt;br&gt;this
&lt;br&gt;(whether fix in code, or guideline for fast compiling query) would be very
&lt;br&gt;helpful.
&lt;br&gt;In my application the pf compilation run is triggered from a web-gui -
&lt;br&gt;fast compilation
&lt;br&gt;is very important there, and predicatable compilation times maybe even
&lt;br&gt;more.
&lt;br&gt;(i.e. it would be nice when all compilations would take the same order of
&lt;br&gt;time).
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26406322&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-2898944---pf-takes-%27forever%27-%28%3E-1-hour%29-to-compile-particular-query-tp26406322p26406322.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26405932</id>
	<title>[ monetdb-Bugs-2898944 ] pf takes 'forever' (&gt; 1 hour) to compile particular query</title>
	<published>2009-11-18T03:03:34Z</published>
	<updated>2009-11-18T03:03:34Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #2898944, was opened at 2009-11-17 09:27
&lt;br&gt;Message generated for change (Comment added) made by stmane
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: PF/compiler
&lt;br&gt;Group: Pathfinder &amp;quot;candidate&amp;quot;
&lt;br&gt;Status: Open
&lt;br&gt;Resolution: Fixed
&lt;br&gt;Priority: 6
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Axel Belinfante (axelbel)
&lt;br&gt;Assigned to: Jan Rittinger (tsheyar)
&lt;br&gt;Summary: pf takes 'forever' (&amp;gt; 1 hour) to compile particular query
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;I don't know whether the following really qualifies as bug, or just is a case of 'user error by giving stupid input.
&lt;br&gt;In any case, I would like to bring this to your attention.
&lt;br&gt;&lt;br&gt;When I compile a query for attached module definition with pf (may or aug or pre-nov version), compilation takes 'forever'.
&lt;br&gt;When I replace &amp;nbsp;the clause &amp;nbsp;ecv:to-human($g0, $human_type) &amp;nbsp; by simple &amp;nbsp; $g0
&lt;br&gt;and remove definitions of &amp;nbsp; $human_type &amp;nbsp; and &amp;nbsp; to-human &amp;nbsp; it compiles almost instantly.
&lt;br&gt;It is the huge difference in compilation time that surprises me.
&lt;br&gt;&lt;br&gt;The query I compile is:
&lt;br&gt;&lt;br&gt;import module namespace ecv = &amp;quot;&lt;a href=&quot;http://www.cs.utwente.nl/~belinfan/ecv&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.utwente.nl/~belinfan/ecv&lt;/a&gt;&amp;quot; at &amp;quot;/tmp/long-compilation.xq&amp;quot;; ecv:view-from-save(&amp;quot;eprints-export-conv-fmt.xml&amp;quot;)
&lt;br&gt;&lt;br&gt;where tmp/long-compilation.xq is the attached module.
&lt;br&gt;&lt;br&gt;&lt;br&gt;What the query attempts to do: obtain results from the database, order these on two criteria, and when listing the results, insert human-readable headers.
&lt;br&gt;The human-readable headers are obtained by the to-human mapping from field value (used as ordering criterium) to human-readable string.
&lt;br&gt;At some point I just used if-then-else-if-then-else etc. to do the mapping, but that seemed slower to compile than the approach I took here.
&lt;br&gt;&lt;br&gt;Suggestions for rewriting the query to a fast-compiling one would be considered as a fix too, I guess.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 12:03
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Axel,
&lt;br&gt;&lt;br&gt;what about your original long-compilation.xq?
&lt;br&gt;Does that now work fine for you (i.e., with Jan's fix)?
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-18 11:30
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;I don't want to spoil the fun, but after the fix pf still runs pretty long
&lt;br&gt;on the file I just attached
&lt;br&gt;(long-compilation2.xq)
&lt;br&gt;&lt;br&gt;top gives me:
&lt;br&gt;&amp;nbsp; PID USER &amp;nbsp; &amp;nbsp; &amp;nbsp;NI &amp;nbsp;VIRT &amp;nbsp;RES &amp;nbsp;SHR P S %CPU %MEM &amp;nbsp; TIME COMMAND &amp;nbsp; &amp;nbsp;
&lt;br&gt;26940 dbguest &amp;nbsp; &amp;nbsp;0 7164m 3.7g &amp;nbsp;172 4 R &amp;nbsp; 27 96.5 &amp;nbsp;14:07
&lt;br&gt;/local/dbguest/Install/MonetDB-XQuery_Nov2009/bin/pf -T /tmp/talt11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;I tried to kill it with ^C, without too much success
&lt;br&gt;(and I already started to fear that the machine was hung up on it),
&lt;br&gt;until a little later I saw (I started it as: time /path/to/pf &amp;nbsp;
&lt;br&gt;xqueryfile)
&lt;br&gt;&lt;br&gt;Killed
&lt;br&gt;828.295u 39.446s 16:38.94 86.8% 0+0k 0+0io 5pf+0w
&lt;br&gt;Segmentation fault
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 11:03
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;I think, adding a test (also) for this one should be done; it should be not
&lt;br&gt;only possible, but also easy:
&lt;br&gt;the query that (used to) compile for for than one hour is given, just make
&lt;br&gt;a test that calls pf to compile the query, sending the output to, say,
&lt;br&gt;/dev/null/ .
&lt;br&gt;If that finishes without error and within the default 1 minute timeout (or
&lt;br&gt;less, if desired/required; add a TSTNME.timeout file with a &amp;lt;1 scale
&lt;br&gt;factor), the test succeeded and everything is fine; otherwise, the test
&lt;br&gt;fails ...
&lt;br&gt;&lt;br&gt;... just an idea to help assessing and monitoring this issue and hence the
&lt;br&gt;stability and usability of MonetDB as such ...
&lt;br&gt;&lt;br&gt;... does not apply to this bug report, only; see also my email of last
&lt;br&gt;weekend ...
&lt;br&gt;&lt;br&gt;... if there is no time right no to add the test, keep the bug report open
&lt;br&gt;to remind us ...
&lt;br&gt;&lt;br&gt;... in fact, I do exactly that ...
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Jan Rittinger (tsheyar)
&lt;br&gt;Date: 2009-11-18 10:20
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;The reason for the 'forever' compile time is that the physical plan space
&lt;br&gt;blows up in a heuristic that tries to find good plan orders. I now added a
&lt;br&gt;check that avoids generating to many plans.
&lt;br&gt;&lt;br&gt;I checked in the fix in the Nov2009 stable branch. I'm however not sure
&lt;br&gt;whether it makes it into the release -- probably not. So please get it from
&lt;br&gt;either CVS or nightly-builds.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-17 09:32
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;not sure about category or group - chose seemingly most appropriate.
&lt;br&gt;&lt;br&gt;even though I did not change default priority , having some answer for
&lt;br&gt;this
&lt;br&gt;(whether fix in code, or guideline for fast compiling query) would be very
&lt;br&gt;helpful.
&lt;br&gt;In my application the pf compilation run is triggered from a web-gui -
&lt;br&gt;fast compilation
&lt;br&gt;is very important there, and predicatable compilation times maybe even
&lt;br&gt;more.
&lt;br&gt;(i.e. it would be nice when all compilations would take the same order of
&lt;br&gt;time).
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26405932&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-2898944---pf-takes-%27forever%27-%28%3E-1-hour%29-to-compile-particular-query-tp26405932p26405932.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26405537</id>
	<title>[ monetdb-Bugs-2898944 ] pf takes 'forever' (&gt; 1 hour) to compile particular query</title>
	<published>2009-11-18T02:30:36Z</published>
	<updated>2009-11-18T02:30:36Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #2898944, was opened at 2009-11-17 09:27
&lt;br&gt;Message generated for change (Comment added) made by axelbel
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: PF/compiler
&lt;br&gt;Group: Pathfinder &amp;quot;candidate&amp;quot;
&lt;br&gt;Status: Open
&lt;br&gt;Resolution: Fixed
&lt;br&gt;Priority: 6
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Axel Belinfante (axelbel)
&lt;br&gt;Assigned to: Jan Rittinger (tsheyar)
&lt;br&gt;Summary: pf takes 'forever' (&amp;gt; 1 hour) to compile particular query
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;I don't know whether the following really qualifies as bug, or just is a case of 'user error by giving stupid input.
&lt;br&gt;In any case, I would like to bring this to your attention.
&lt;br&gt;&lt;br&gt;When I compile a query for attached module definition with pf (may or aug or pre-nov version), compilation takes 'forever'.
&lt;br&gt;When I replace &amp;nbsp;the clause &amp;nbsp;ecv:to-human($g0, $human_type) &amp;nbsp; by simple &amp;nbsp; $g0
&lt;br&gt;and remove definitions of &amp;nbsp; $human_type &amp;nbsp; and &amp;nbsp; to-human &amp;nbsp; it compiles almost instantly.
&lt;br&gt;It is the huge difference in compilation time that surprises me.
&lt;br&gt;&lt;br&gt;The query I compile is:
&lt;br&gt;&lt;br&gt;import module namespace ecv = &amp;quot;&lt;a href=&quot;http://www.cs.utwente.nl/~belinfan/ecv&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.utwente.nl/~belinfan/ecv&lt;/a&gt;&amp;quot; at &amp;quot;/tmp/long-compilation.xq&amp;quot;; ecv:view-from-save(&amp;quot;eprints-export-conv-fmt.xml&amp;quot;)
&lt;br&gt;&lt;br&gt;where tmp/long-compilation.xq is the attached module.
&lt;br&gt;&lt;br&gt;&lt;br&gt;What the query attempts to do: obtain results from the database, order these on two criteria, and when listing the results, insert human-readable headers.
&lt;br&gt;The human-readable headers are obtained by the to-human mapping from field value (used as ordering criterium) to human-readable string.
&lt;br&gt;At some point I just used if-then-else-if-then-else etc. to do the mapping, but that seemed slower to compile than the approach I took here.
&lt;br&gt;&lt;br&gt;Suggestions for rewriting the query to a fast-compiling one would be considered as a fix too, I guess.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-18 11:30
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;I don't want to spoil the fun, but after the fix pf still runs pretty long
&lt;br&gt;on the file I just attached
&lt;br&gt;(long-compilation2.xq)
&lt;br&gt;&lt;br&gt;top gives me:
&lt;br&gt;&amp;nbsp; PID USER &amp;nbsp; &amp;nbsp; &amp;nbsp;NI &amp;nbsp;VIRT &amp;nbsp;RES &amp;nbsp;SHR P S %CPU %MEM &amp;nbsp; TIME COMMAND &amp;nbsp; &amp;nbsp;
&lt;br&gt;26940 dbguest &amp;nbsp; &amp;nbsp;0 7164m 3.7g &amp;nbsp;172 4 R &amp;nbsp; 27 96.5 &amp;nbsp;14:07
&lt;br&gt;/local/dbguest/Install/MonetDB-XQuery_Nov2009/bin/pf -T /tmp/talt11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;I tried to kill it with ^C, without too much success
&lt;br&gt;(and I already started to fear that the machine was hung up on it),
&lt;br&gt;until a little later I saw (I started it as: time /path/to/pf &amp;nbsp;
&lt;br&gt;xqueryfile)
&lt;br&gt;&lt;br&gt;Killed
&lt;br&gt;828.295u 39.446s 16:38.94 86.8% 0+0k 0+0io 5pf+0w
&lt;br&gt;Segmentation fault
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 11:03
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;I think, adding a test (also) for this one should be done; it should be not
&lt;br&gt;only possible, but also easy:
&lt;br&gt;the query that (used to) compile for for than one hour is given, just make
&lt;br&gt;a test that calls pf to compile the query, sending the output to, say,
&lt;br&gt;/dev/null/ .
&lt;br&gt;If that finishes without error and within the default 1 minute timeout (or
&lt;br&gt;less, if desired/required; add a TSTNME.timeout file with a &amp;lt;1 scale
&lt;br&gt;factor), the test succeeded and everything is fine; otherwise, the test
&lt;br&gt;fails ...
&lt;br&gt;&lt;br&gt;... just an idea to help assessing and monitoring this issue and hence the
&lt;br&gt;stability and usability of MonetDB as such ...
&lt;br&gt;&lt;br&gt;... does not apply to this bug report, only; see also my email of last
&lt;br&gt;weekend ...
&lt;br&gt;&lt;br&gt;... if there is no time right no to add the test, keep the bug report open
&lt;br&gt;to remind us ...
&lt;br&gt;&lt;br&gt;... in fact, I do exactly that ...
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Jan Rittinger (tsheyar)
&lt;br&gt;Date: 2009-11-18 10:20
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;The reason for the 'forever' compile time is that the physical plan space
&lt;br&gt;blows up in a heuristic that tries to find good plan orders. I now added a
&lt;br&gt;check that avoids generating to many plans.
&lt;br&gt;&lt;br&gt;I checked in the fix in the Nov2009 stable branch. I'm however not sure
&lt;br&gt;whether it makes it into the release -- probably not. So please get it from
&lt;br&gt;either CVS or nightly-builds.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-17 09:32
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;not sure about category or group - chose seemingly most appropriate.
&lt;br&gt;&lt;br&gt;even though I did not change default priority , having some answer for
&lt;br&gt;this
&lt;br&gt;(whether fix in code, or guideline for fast compiling query) would be very
&lt;br&gt;helpful.
&lt;br&gt;In my application the pf compilation run is triggered from a web-gui -
&lt;br&gt;fast compilation
&lt;br&gt;is very important there, and predicatable compilation times maybe even
&lt;br&gt;more.
&lt;br&gt;(i.e. it would be nice when all compilations would take the same order of
&lt;br&gt;time).
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26405537&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-2898944---pf-takes-%27forever%27-%28%3E-1-hour%29-to-compile-particular-query-tp26405537p26405537.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26405194</id>
	<title>[ monetdb-Bugs-2898944 ] pf takes 'forever' (&gt; 1 hour) to compile particular query</title>
	<published>2009-11-18T02:03:05Z</published>
	<updated>2009-11-18T02:03:05Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #2898944, was opened at 2009-11-17 09:27
&lt;br&gt;Message generated for change (Comment added) made by stmane
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: PF/compiler
&lt;br&gt;Group: Pathfinder &amp;quot;candidate&amp;quot;
&lt;br&gt;&amp;gt;Status: Open
&lt;br&gt;Resolution: Fixed
&lt;br&gt;Priority: 6
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Axel Belinfante (axelbel)
&lt;br&gt;Assigned to: Jan Rittinger (tsheyar)
&lt;br&gt;Summary: pf takes 'forever' (&amp;gt; 1 hour) to compile particular query
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;I don't know whether the following really qualifies as bug, or just is a case of 'user error by giving stupid input.
&lt;br&gt;In any case, I would like to bring this to your attention.
&lt;br&gt;&lt;br&gt;When I compile a query for attached module definition with pf (may or aug or pre-nov version), compilation takes 'forever'.
&lt;br&gt;When I replace &amp;nbsp;the clause &amp;nbsp;ecv:to-human($g0, $human_type) &amp;nbsp; by simple &amp;nbsp; $g0
&lt;br&gt;and remove definitions of &amp;nbsp; $human_type &amp;nbsp; and &amp;nbsp; to-human &amp;nbsp; it compiles almost instantly.
&lt;br&gt;It is the huge difference in compilation time that surprises me.
&lt;br&gt;&lt;br&gt;The query I compile is:
&lt;br&gt;&lt;br&gt;import module namespace ecv = &amp;quot;&lt;a href=&quot;http://www.cs.utwente.nl/~belinfan/ecv&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.utwente.nl/~belinfan/ecv&lt;/a&gt;&amp;quot; at &amp;quot;/tmp/long-compilation.xq&amp;quot;; ecv:view-from-save(&amp;quot;eprints-export-conv-fmt.xml&amp;quot;)
&lt;br&gt;&lt;br&gt;where tmp/long-compilation.xq is the attached module.
&lt;br&gt;&lt;br&gt;&lt;br&gt;What the query attempts to do: obtain results from the database, order these on two criteria, and when listing the results, insert human-readable headers.
&lt;br&gt;The human-readable headers are obtained by the to-human mapping from field value (used as ordering criterium) to human-readable string.
&lt;br&gt;At some point I just used if-then-else-if-then-else etc. to do the mapping, but that seemed slower to compile than the approach I took here.
&lt;br&gt;&lt;br&gt;Suggestions for rewriting the query to a fast-compiling one would be considered as a fix too, I guess.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 11:03
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;I think, adding a test (also) for this one should be done; it should be not
&lt;br&gt;only possible, but also easy:
&lt;br&gt;the query that (used to) compile for for than one hour is given, just make
&lt;br&gt;a test that calls pf to compile the query, sending the output to, say,
&lt;br&gt;/dev/null/ .
&lt;br&gt;If that finishes without error and within the default 1 minute timeout (or
&lt;br&gt;less, if desired/required; add a TSTNME.timeout file with a &amp;lt;1 scale
&lt;br&gt;factor), the test succeeded and everything is fine; otherwise, the test
&lt;br&gt;fails ...
&lt;br&gt;&lt;br&gt;... just an idea to help assessing and monitoring this issue and hence the
&lt;br&gt;stability and usability of MonetDB as such ...
&lt;br&gt;&lt;br&gt;... does not apply to this bug report, only; see also my email of last
&lt;br&gt;weekend ...
&lt;br&gt;&lt;br&gt;... if there is no time right no to add the test, keep the bug report open
&lt;br&gt;to remind us ...
&lt;br&gt;&lt;br&gt;... in fact, I do exactly that ...
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Jan Rittinger (tsheyar)
&lt;br&gt;Date: 2009-11-18 10:20
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;The reason for the 'forever' compile time is that the physical plan space
&lt;br&gt;blows up in a heuristic that tries to find good plan orders. I now added a
&lt;br&gt;check that avoids generating to many plans.
&lt;br&gt;&lt;br&gt;I checked in the fix in the Nov2009 stable branch. I'm however not sure
&lt;br&gt;whether it makes it into the release -- probably not. So please get it from
&lt;br&gt;either CVS or nightly-builds.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-17 09:32
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;not sure about category or group - chose seemingly most appropriate.
&lt;br&gt;&lt;br&gt;even though I did not change default priority , having some answer for
&lt;br&gt;this
&lt;br&gt;(whether fix in code, or guideline for fast compiling query) would be very
&lt;br&gt;helpful.
&lt;br&gt;In my application the pf compilation run is triggered from a web-gui -
&lt;br&gt;fast compilation
&lt;br&gt;is very important there, and predicatable compilation times maybe even
&lt;br&gt;more.
&lt;br&gt;(i.e. it would be nice when all compilations would take the same order of
&lt;br&gt;time).
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26405194&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-2898944---pf-takes-%27forever%27-%28%3E-1-hour%29-to-compile-particular-query-tp26405194p26405194.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26405071</id>
	<title>[ monetdb-Bugs-2009556 ] XQ: &quot;Zombie&quot; document in collection</title>
	<published>2009-11-18T01:52:38Z</published>
	<updated>2009-11-18T01:52:38Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #2009556, was opened at 2008-07-03 11:41
&lt;br&gt;Message generated for change (Settings changed) made by stmane
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2009556&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2009556&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: PF/runtime
&lt;br&gt;Group: Pathfinder &amp;quot;stable&amp;quot;
&lt;br&gt;&amp;gt;Status: Closed
&lt;br&gt;Resolution: Fixed
&lt;br&gt;Priority: 8
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Luc Touraille (touraillel)
&lt;br&gt;Assigned to: Lefteris Sidirourgos (lsidir)
&lt;br&gt;Summary: XQ: &amp;quot;Zombie&amp;quot; document in collection
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;[Jun 2008 release]
&lt;br&gt;&lt;br&gt;A deleted document from a collection where there is more than 1 document is still visible using the collection(&amp;quot;mycoll&amp;quot;) function.
&lt;br&gt;&lt;br&gt;On Feb 2008 release, the pf:collection function worked correctly, but not the fn:collection function, that produced the same bug.
&lt;br&gt;&lt;br&gt;Stefan reproduced this bug, giving the following trace :
&lt;br&gt;&lt;br&gt;========
&lt;br&gt;$ cat /tmp/MyDoc1.xml
&lt;br&gt;--------
&lt;br&gt;&amp;lt;a/&amp;gt;
&lt;br&gt;========
&lt;br&gt;$ cat /tmp/MyDoc2.xml
&lt;br&gt;--------
&lt;br&gt;&amp;lt;b/&amp;gt;
&lt;br&gt;========
&lt;br&gt;========
&lt;br&gt;$ mclient -lx -s'pf:add-doc(&amp;quot;/tmp/MyDoc1.xml&amp;quot;,&amp;quot;MyDoc1&amp;quot;,&amp;quot;MyCol&amp;quot;)'
&lt;br&gt;--------
&lt;br&gt;========
&lt;br&gt;$ mclient -lx -s'pf:collections()'
&lt;br&gt;--------
&lt;br&gt;&amp;lt;collection updatable=&amp;quot;false&amp;quot; size=&amp;quot;99 KiB&amp;quot; numDocs=&amp;quot;1&amp;quot;&amp;gt;MyCol&amp;lt;/collection&amp;gt;
&lt;br&gt;========
&lt;br&gt;$ mclient -lx -s'pf:collection(&amp;quot;MyCol&amp;quot;)'
&lt;br&gt;--------
&lt;br&gt;&amp;lt;a/&amp;gt;
&lt;br&gt;========
&lt;br&gt;$ mclient -lx -g -s'fn:collection(&amp;quot;MyCol&amp;quot;)'
&lt;br&gt;--------
&lt;br&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;lt;a/&amp;gt;
&lt;br&gt;&lt;br&gt;========
&lt;br&gt;$ mclient -lx -s'pf:documents()'
&lt;br&gt;--------
&lt;br&gt;&amp;lt;document updatable=&amp;quot;false&amp;quot; url=&amp;quot;/tmp/MyDoc1.xml&amp;quot; collection=&amp;quot;MyCol&amp;quot;&amp;gt;MyDoc1&amp;lt;/document&amp;gt;
&lt;br&gt;========
&lt;br&gt;$ mclient -lx -s'pf:documents(&amp;quot;MyCol&amp;quot;)'
&lt;br&gt;--------
&lt;br&gt;&amp;lt;document updatable=&amp;quot;false&amp;quot; url=&amp;quot;/tmp/MyDoc1.xml&amp;quot; collection=&amp;quot;MyCol&amp;quot;&amp;gt;MyDoc1&amp;lt;/document&amp;gt;
&lt;br&gt;========
&lt;br&gt;========
&lt;br&gt;$ mclient -lx -s'pf:del-doc(&amp;quot;MyDoc1&amp;quot;)'
&lt;br&gt;--------
&lt;br&gt;========
&lt;br&gt;$ mclient -lx -s'pf:collections()'
&lt;br&gt;--------
&lt;br&gt;&lt;br&gt;========
&lt;br&gt;$ mclient -lx -s'pf:collection(&amp;quot;MyCol&amp;quot;)'
&lt;br&gt;--------
&lt;br&gt;&lt;br&gt;========
&lt;br&gt;$ mclient -lx -g -s'fn:collection(&amp;quot;MyCol&amp;quot;)'
&lt;br&gt;--------
&lt;br&gt;&lt;br&gt;========
&lt;br&gt;$ mclient -lx -s'pf:documents()'
&lt;br&gt;--------
&lt;br&gt;&lt;br&gt;========
&lt;br&gt;$ mclient -lx -s'pf:documents(&amp;quot;MyCol&amp;quot;)'
&lt;br&gt;--------
&lt;br&gt;&lt;br&gt;========
&lt;br&gt;========
&lt;br&gt;$ mclient -lx -s'pf:add-doc(&amp;quot;/tmp/MyDoc1.xml&amp;quot;,&amp;quot;MyDoc1&amp;quot;,&amp;quot;MyCol&amp;quot;)'
&lt;br&gt;--------
&lt;br&gt;========
&lt;br&gt;$ mclient -lx -s'pf:add-doc(&amp;quot;/tmp/MyDoc2.xml&amp;quot;,&amp;quot;MyDoc2&amp;quot;,&amp;quot;MyCol&amp;quot;)'
&lt;br&gt;--------
&lt;br&gt;========
&lt;br&gt;$ mclient -lx -s'pf:collections()'
&lt;br&gt;--------
&lt;br&gt;&amp;lt;collection updatable=&amp;quot;false&amp;quot; size=&amp;quot;99 KiB&amp;quot; numDocs=&amp;quot;2&amp;quot;&amp;gt;MyCol&amp;lt;/collection&amp;gt;
&lt;br&gt;========
&lt;br&gt;$ mclient -lx -s'pf:collection(&amp;quot;MyCol&amp;quot;)'
&lt;br&gt;--------
&lt;br&gt;&amp;lt;a/&amp;gt;&amp;lt;b/&amp;gt;
&lt;br&gt;========
&lt;br&gt;$ mclient -lx -g -s'fn:collection(&amp;quot;MyCol&amp;quot;)'
&lt;br&gt;--------
&lt;br&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;lt;a/&amp;gt;
&lt;br&gt;,
&lt;br&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;lt;b/&amp;gt;
&lt;br&gt;&lt;br&gt;========
&lt;br&gt;$ mclient -lx -s'pf:documents()'
&lt;br&gt;--------
&lt;br&gt;&amp;lt;document updatable=&amp;quot;false&amp;quot; url=&amp;quot;/tmp/MyDoc1.xml&amp;quot; collection=&amp;quot;MyCol&amp;quot;&amp;gt;MyDoc1&amp;lt;/document&amp;gt;,
&lt;br&gt;&amp;lt;document updatable=&amp;quot;false&amp;quot; url=&amp;quot;/tmp/MyDoc2.xml&amp;quot; collection=&amp;quot;MyCol&amp;quot;&amp;gt;MyDoc2&amp;lt;/document&amp;gt;
&lt;br&gt;========
&lt;br&gt;$ mclient -lx -s'pf:documents(&amp;quot;MyCol&amp;quot;)'
&lt;br&gt;--------
&lt;br&gt;&amp;lt;document updatable=&amp;quot;false&amp;quot; url=&amp;quot;/tmp/MyDoc2.xml&amp;quot; collection=&amp;quot;MyCol&amp;quot;&amp;gt;MyDoc2&amp;lt;/document&amp;gt;,
&lt;br&gt;&amp;lt;document updatable=&amp;quot;false&amp;quot; url=&amp;quot;/tmp/MyDoc1.xml&amp;quot; collection=&amp;quot;MyCol&amp;quot;&amp;gt;MyDoc1&amp;lt;/document&amp;gt;
&lt;br&gt;========
&lt;br&gt;========
&lt;br&gt;$ mclient -lx -s'pf:del-doc(&amp;quot;MyDoc2&amp;quot;)'
&lt;br&gt;--------
&lt;br&gt;========
&lt;br&gt;$ mclient -lx -s'pf:collections()'
&lt;br&gt;--------
&lt;br&gt;&amp;lt;collection updatable=&amp;quot;false&amp;quot; size=&amp;quot;99 KiB&amp;quot; numDocs=&amp;quot;1&amp;quot;&amp;gt;MyCol&amp;lt;/collection&amp;gt;
&lt;br&gt;========
&lt;br&gt;$ mclient -lx -s'pf:collection(&amp;quot;MyCol&amp;quot;)'
&lt;br&gt;--------
&lt;br&gt;&amp;lt;a/&amp;gt;&amp;lt;b/&amp;gt;
&lt;br&gt;========
&lt;br&gt;$ mclient -lx -g -s'fn:collection(&amp;quot;MyCol&amp;quot;)'
&lt;br&gt;--------
&lt;br&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;lt;a/&amp;gt;
&lt;br&gt;,
&lt;br&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;lt;b/&amp;gt;
&lt;br&gt;&lt;br&gt;========
&lt;br&gt;$ mclient -lx -s'pf:documents()'
&lt;br&gt;--------
&lt;br&gt;&amp;lt;document updatable=&amp;quot;false&amp;quot; url=&amp;quot;/tmp/MyDoc1.xml&amp;quot; collection=&amp;quot;MyCol&amp;quot;&amp;gt;MyDoc1&amp;lt;/document&amp;gt;
&lt;br&gt;========
&lt;br&gt;$ mclient -lx -s'pf:documents(&amp;quot;MyCol&amp;quot;)'
&lt;br&gt;--------
&lt;br&gt;&amp;lt;document updatable=&amp;quot;false&amp;quot; url=&amp;quot;/tmp/MyDoc1.xml&amp;quot; collection=&amp;quot;MyCol&amp;quot;&amp;gt;MyDoc1&amp;lt;/document&amp;gt;
&lt;br&gt;========
&lt;br&gt;========
&lt;br&gt;$ mclient -lx -s'pf:del-doc(&amp;quot;MyDoc1&amp;quot;)'
&lt;br&gt;--------
&lt;br&gt;========
&lt;br&gt;$ mclient -lx -s'pf:collections()'
&lt;br&gt;--------
&lt;br&gt;&lt;br&gt;========
&lt;br&gt;$ mclient -lx -s'pf:collection(&amp;quot;MyCol&amp;quot;)'
&lt;br&gt;--------
&lt;br&gt;&lt;br&gt;========
&lt;br&gt;$ mclient -lx -g -s'fn:collection(&amp;quot;MyCol&amp;quot;)'
&lt;br&gt;--------
&lt;br&gt;&lt;br&gt;========
&lt;br&gt;$ mclient -lx -s'pf:documents()'
&lt;br&gt;--------
&lt;br&gt;&lt;br&gt;========
&lt;br&gt;$ mclient -lx -s'pf:documents(&amp;quot;MyCol&amp;quot;)'
&lt;br&gt;--------
&lt;br&gt;&lt;br&gt;======== 
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 10:52
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;confirmed.
&lt;br&gt;closing.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-17 09:56
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Thanks!
&lt;br&gt;I made the test's output invariant (independent of local paths) by loading
&lt;br&gt;documents from the MonetDB web site instead of from local files,
&lt;br&gt;and moved it to be first in this directory, to not require
&lt;br&gt;delete_all_docs() to empty the DB --- the latter might take several minutes
&lt;br&gt;to remove all docs accumulated by the numerous tests in this directory.
&lt;br&gt;&lt;br&gt;Seems to work fine, now.
&lt;br&gt;Can be closed, once nightly testing confirms this.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Peter Boncz (boncz)
&lt;br&gt;Date: 2009-11-17 01:05
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;the output differs as follows:
&lt;br&gt;- the collection function given an error on a nonexistent collection,
&lt;br&gt;which is ok
&lt;br&gt;- the attenpt to serialize a collection gives an error - which is ok
&lt;br&gt;&lt;br&gt;approved the output, this test seems to work correctly on my platform
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-16 22:29
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;the test has been failing at least since 2009-01-01, now resulting in a
&lt;br&gt;timeout
&lt;br&gt;cf.,
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/Zombie_document.SF-2009556.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/Zombie_document.SF-2009556.err.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/Zombie_document.SF-2009556.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/Zombie_document.SF-2009556.out.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Fabian (mr-meltdown)
&lt;br&gt;Date: 2009-04-07 11:34
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;debug spam, sorry for the noise.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Peter Boncz (boncz)
&lt;br&gt;Date: 2009-04-07 10:48
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;I think we should give an run-time error in the serializer if the
&lt;br&gt;collection root gets serialized..
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-02-16 01:08
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;cf.
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora8/tests_BugTracker/Zombie_document.SF-2009556.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora8/tests_BugTracker/Zombie_document.SF-2009556.out.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsg103/GNU.64.64.d.1-Fedora8/tests_BugTracker/Zombie_document.SF-2009556.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsg103/GNU.64.64.d.1-Fedora8/tests_BugTracker/Zombie_document.SF-2009556.out.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-02-15 21:58
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Lefteris,
&lt;br&gt;&lt;br&gt;what is the status of this one?
&lt;br&gt;&lt;br&gt;Stefan
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Lefteris Sidirourgos (lsidir)
&lt;br&gt;Date: 2008-12-16 09:12
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;During the pathfinder skype meeting on Monday 15/12 the solution that was
&lt;br&gt;proposed was to apply the docfilter proc after the pf:collection+step. This
&lt;br&gt;will fix the fn:collection results. However if a query serializes the
&lt;br&gt;results of pf:collection, the delete documents will still appear. This is
&lt;br&gt;acceptable since pf:collection was not designed for such use, and users
&lt;br&gt;should use the built in functions of XQuery (i.e., fn:collection) rather
&lt;br&gt;than pf:collection.
&lt;br&gt;&lt;br&gt;In addition docfilter should break to 2 new functions to separate the
&lt;br&gt;&amp;quot;swizzling&amp;quot; from the filtering. 
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Lefteris Sidirourgos (lsidir)
&lt;br&gt;Date: 2008-12-15 16:45
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Hi, the bug is still around indeed. The bug characteristics are as follows:
&lt;br&gt;* If the mil proc ws_collection_root() is invoked, delete documents still
&lt;br&gt;appear
&lt;br&gt;* if the mil proc ws_collection() is invoked, delete documents do not
&lt;br&gt;appear.
&lt;br&gt;&lt;br&gt;By investigating a little more, after the second document is deleted the
&lt;br&gt;database looks like that:
&lt;br&gt;&lt;br&gt;mil&amp;gt;print(doc_name);
&lt;br&gt;#---------------------------------#
&lt;br&gt;# h &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alias &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # name
&lt;br&gt;# oid &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; str &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # type
&lt;br&gt;#---------------------------------#
&lt;br&gt;[ 1000000000@0, &amp;nbsp; &amp;quot;MyDoc1&amp;quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;]
&lt;br&gt;[ 1000000001@0, &amp;nbsp; nil &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ]
&lt;br&gt;&lt;br&gt;Which is expected. On the other hand,
&lt;br&gt;mil&amp;gt;print(doc_collection);
&lt;br&gt;#---------------------------------#
&lt;br&gt;# h &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # name
&lt;br&gt;# oid &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; oid &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # type
&lt;br&gt;#---------------------------------#
&lt;br&gt;[ 1@0, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;14@0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;]
&lt;br&gt;[ 1000000000@0, &amp;nbsp; 1000000000@0 &amp;nbsp; &amp;nbsp;]
&lt;br&gt;[ 0@0, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1000000002@0 &amp;nbsp; &amp;nbsp;]
&lt;br&gt;[ 1000000001@0, &amp;nbsp; 1000000000@0 &amp;nbsp; &amp;nbsp;]
&lt;br&gt;&lt;br&gt;thus the delete document appears in the tail, which it looks that this is
&lt;br&gt;known and correct since the implementation of ws_collection() knows that
&lt;br&gt;and has the following two lines of code:
&lt;br&gt;var docs := doct.leftjoin(doc_name).select(str_nil,str_nil); &amp;nbsp;# selected
&lt;br&gt;existing docs
&lt;br&gt;doc := doch.leftjoin(docs.mirror().leftjoin(doct)); &amp;nbsp;# reduced doc to
&lt;br&gt;existing docs
&lt;br&gt;&lt;br&gt;thus from the doc_name BAT decides which document still exists, but in the
&lt;br&gt;implementation of ws_collection_root this is not the case, since no
&lt;br&gt;filtering is happening. Notice that the PRE_Table, after deleting the
&lt;br&gt;document and after restarting the logger looks like:
&lt;br&gt;&lt;br&gt;PRE table
&lt;br&gt;[ 0@0 ]
&lt;br&gt;#-------------------------------------------------------------------------#
&lt;br&gt;# h &amp;nbsp; &amp;nbsp; nid &amp;nbsp; &amp;nbsp; size &amp;nbsp; &amp;nbsp;level &amp;nbsp; prop &amp;nbsp; &amp;nbsp;kind &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tag &amp;nbsp; &amp;nbsp; cont &amp;nbsp; &amp;nbsp; 
&lt;br&gt;# name
&lt;br&gt;# void &amp;nbsp;oid &amp;nbsp; &amp;nbsp; int &amp;nbsp; &amp;nbsp; chr &amp;nbsp; &amp;nbsp; oid &amp;nbsp; &amp;nbsp; str &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; str &amp;nbsp; &amp;nbsp; oid &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;# type
&lt;br&gt;#-------------------------------------------------------------------------#
&lt;br&gt;[ 0@0, &amp;nbsp; &amp;nbsp;nil, &amp;nbsp; &amp;nbsp;nil, &amp;nbsp; &amp;nbsp;'þ', &amp;nbsp; &amp;nbsp;nil, &amp;nbsp; &amp;nbsp;&amp;quot;COLLECTION&amp;quot;, &amp;nbsp; nil, &amp;nbsp; &amp;nbsp;nil &amp;nbsp; &amp;nbsp;
&lt;br&gt;]
&lt;br&gt;[ 1@0 ]
&lt;br&gt;#-------------------------------------------------------------------------#
&lt;br&gt;# h &amp;nbsp; &amp;nbsp; nid &amp;nbsp; &amp;nbsp; size &amp;nbsp; &amp;nbsp;level &amp;nbsp; prop &amp;nbsp; &amp;nbsp;kind &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tag &amp;nbsp; &amp;nbsp; cont &amp;nbsp; &amp;nbsp; 
&lt;br&gt;# name
&lt;br&gt;# void &amp;nbsp;void &amp;nbsp; &amp;nbsp;int &amp;nbsp; &amp;nbsp; chr &amp;nbsp; &amp;nbsp; oid &amp;nbsp; &amp;nbsp; str &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; str &amp;nbsp; &amp;nbsp; oid &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;# type
&lt;br&gt;#-------------------------------------------------------------------------#
&lt;br&gt;[ 0@0, &amp;nbsp; &amp;nbsp;0@0, &amp;nbsp; &amp;nbsp;4, &amp;nbsp; &amp;nbsp; &amp;nbsp;'þ', &amp;nbsp; &amp;nbsp;nil, &amp;nbsp; &amp;nbsp;&amp;quot;COLLECTION&amp;quot;, &amp;nbsp; nil, &amp;nbsp; &amp;nbsp;1@0 &amp;nbsp; &amp;nbsp;
&lt;br&gt;]
&lt;br&gt;[ 1@0, &amp;nbsp; &amp;nbsp;1@0, &amp;nbsp; &amp;nbsp;1, &amp;nbsp; &amp;nbsp; &amp;nbsp;'ÿ', &amp;nbsp; &amp;nbsp;nil, &amp;nbsp; &amp;nbsp;&amp;quot;DOCUMENT&amp;quot;, &amp;nbsp; &amp;nbsp; nil, &amp;nbsp; &amp;nbsp;1@0 &amp;nbsp; &amp;nbsp;
&lt;br&gt;]
&lt;br&gt;[ 2@0, &amp;nbsp; &amp;nbsp;2@0, &amp;nbsp; &amp;nbsp;0, &amp;nbsp; &amp;nbsp; &amp;nbsp;'\000', 0@0, &amp;nbsp; &amp;nbsp;&amp;quot;ELEMENT&amp;quot;, &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;||a&amp;quot;, &amp;nbsp;1@0 &amp;nbsp; &amp;nbsp;
&lt;br&gt;]
&lt;br&gt;[ 3@0, &amp;nbsp; &amp;nbsp;3@0, &amp;nbsp; &amp;nbsp;1, &amp;nbsp; &amp;nbsp; &amp;nbsp;'ÿ', &amp;nbsp; &amp;nbsp;nil, &amp;nbsp; &amp;nbsp;&amp;quot;DOCUMENT&amp;quot;, &amp;nbsp; &amp;nbsp; nil, &amp;nbsp; &amp;nbsp;1@0 &amp;nbsp; &amp;nbsp;
&lt;br&gt;]
&lt;br&gt;[ 4@0, &amp;nbsp; &amp;nbsp;4@0, &amp;nbsp; &amp;nbsp;0, &amp;nbsp; &amp;nbsp; &amp;nbsp;'\000', 1@0, &amp;nbsp; &amp;nbsp;&amp;quot;ELEMENT&amp;quot;, &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;||b&amp;quot;, &amp;nbsp;1@0 &amp;nbsp; &amp;nbsp;
&lt;br&gt;]
&lt;br&gt;&lt;br&gt;thus the elements etc. still exist
&lt;br&gt;&lt;br&gt;I am not sure what is the best way to fix this problem, so I am open to
&lt;br&gt;suggestions, I am also not sure what are the steps taken after a document
&lt;br&gt;is deleted, so I will need Peter's help on this one
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Peter Boncz (boncz)
&lt;br&gt;Date: 2008-12-12 00:02
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Lefteris, can you check if the output is correct (the extra &amp;lt;aap&amp;gt;??) and
&lt;br&gt;this bug really fixed? If so, close it. If not, re-open it. Thanks!
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2008-11-18 11:48
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;The URLs are indeed to be ignored --- not trivial with Mtest.py right now,
&lt;br&gt;though, I'll check and think about it.
&lt;br&gt;&lt;br&gt;The changes sizes in KB look very suspicious to me --- I would strongly
&lt;br&gt;object to ignoring or approving them unless we know for sure why they
&lt;br&gt;differ, or better, which size they represent --- I honestly don't know
&lt;br&gt;either, yet ...
&lt;br&gt;&lt;br&gt;Moreover, the current output shows an extra
&lt;br&gt;&lt;br&gt;&amp;lt;aap&amp;gt;
&lt;br&gt;Hello World
&lt;br&gt;&amp;lt;/aap&amp;gt;
&lt;br&gt;&lt;br&gt;compared to the stable/approved output --- also that needs to be checked
&lt;br&gt;before considering this bug fixed ...
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Lefteris Sidirourgos (lsidir)
&lt;br&gt;Date: 2008-11-18 11:31
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;the test Zombie_document.SF-2009556 seems to be failing not because the
&lt;br&gt;bug is still there, but because of some dynamic(?) information in the
&lt;br&gt;documents, such as size in kb and URL. I am not aware if and how can we
&lt;br&gt;make testweb to ignore these differences. Assigning to Stefan:) I
&lt;br&gt;considering this bug fixed though. We just have to manage the tests a
&lt;br&gt;little, the same holds for the rest, of the related to this bug, reports.
&lt;br&gt;&lt;br&gt;lefteris
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2008-07-03 22:34
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=572415
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;Might be related to
&lt;br&gt;[ 1976341 ] XQ: leftovers after deleting document
&lt;br&gt;&lt;a href=&quot;http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1976341&amp;group_id=56967&amp;atid=482468&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1976341&amp;group_id=56967&amp;atid=482468&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2008-07-03 22:33
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=572415
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;The problem seems to be &amp;quot;even worse&amp;quot;:
&lt;br&gt;&lt;br&gt;* &amp;nbsp;add 2 documents to a single collection &amp;quot;MyCol&amp;quot;
&lt;br&gt;* &amp;nbsp;delete one of them, again
&lt;br&gt;=&amp;gt; + pf:colections(), pf:documents(), &amp; pf:documents(&amp;quot;MyCol&amp;quot;) correctly
&lt;br&gt;show only one remaining document
&lt;br&gt;&amp;nbsp; &amp;nbsp;- pf:collection(&amp;quot;MyCol&amp;quot;) &amp; fn:collection(&amp;quot;MyCol&amp;quot;) wrongly show both
&lt;br&gt;documents
&lt;br&gt;&lt;br&gt;* &amp;nbsp;stop Mserver
&lt;br&gt;* &amp;nbsp;restart Mserver
&lt;br&gt;=&amp;gt; - all above functions wrongly show *both* documents, again!
&lt;br&gt;&lt;br&gt;This happens both with the (now) default Algebra back-end and with the
&lt;br&gt;(old) &amp;quot;milprint_summer&amp;quot; back-end.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2008-07-03 14:48
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=572415
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;Added test in
&lt;br&gt;pathfinder/tests/BugTracker/Tests/Zombie_document.SF-2009556.*
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2009556&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2009556&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26405071&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-2009556---XQ%3A-%22Zombie%22-document-in-collection-tp26405071p26405071.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26404971</id>
	<title>[ monetdb-Bugs-1911209 ] XQ: MonetDB 'hangs' after requesting non-existing doc</title>
	<published>2009-11-18T01:45:25Z</published>
	<updated>2009-11-18T01:45:25Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #1911209, was opened at 2008-03-10 17:37
&lt;br&gt;Message generated for change (Comment added) made by stmane
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=1911209&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=1911209&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: PF/runtime
&lt;br&gt;Group: (zombie: MonetDB4 4.22)
&lt;br&gt;&amp;gt;Status: Closed
&lt;br&gt;Resolution: Fixed
&lt;br&gt;Priority: 8
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Wouter Alink (vzzzbx)
&lt;br&gt;Assigned to: Nobody/Anonymous (nobody)
&lt;br&gt;Summary: XQ: MonetDB 'hangs' after requesting non-existing doc
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;Using mps.
&lt;br&gt;&lt;br&gt;Querying 'pf:documents()' will never return ('hang') after having inserted a node and then querying for a non-existing doc a few times.
&lt;br&gt;&lt;br&gt;Reproduce by inserting a document &amp;quot;aap.xml&amp;quot; in the database (with content '&amp;lt;aap/&amp;gt;' and shred it updatable):
&lt;br&gt;&lt;br&gt;pf:add-doc(&amp;quot;/tmp/aap.xml&amp;quot;,&amp;quot;aap.xml&amp;quot;,&amp;quot;aap.xml&amp;quot;,10)
&lt;br&gt;&lt;br&gt;&lt;br&gt;The following script will execute fine (can be run many times):
&lt;br&gt;&lt;br&gt;N=0
&lt;br&gt;while [[ $N -lt 1000 ]] 
&lt;br&gt;do
&lt;br&gt;&amp;nbsp; echo &amp;quot;Step $N&amp;quot;
&lt;br&gt;&amp;nbsp; echo 'pf:documents()' | mclient -lxq &amp;gt; /dev/null
&lt;br&gt;&amp;nbsp; echo 'doc(&amp;quot;aap.xml&amp;quot;)' | mclient -lxq &amp;gt; /dev/null
&lt;br&gt;&amp;nbsp; N=$(($N + 1))
&lt;br&gt;done
&lt;br&gt;&lt;br&gt;&lt;br&gt;This script will execute fine (it returns an error for each document, can also be run many times):
&lt;br&gt;&lt;br&gt;N=0
&lt;br&gt;while [[ $N -lt 1000 ]] 
&lt;br&gt;do
&lt;br&gt;&amp;nbsp; echo &amp;quot;Step $N&amp;quot;
&lt;br&gt;&amp;nbsp; echo 'pf:documents()' | mclient -lxq &amp;gt; /dev/null
&lt;br&gt;&amp;nbsp; echo 'doc(&amp;quot;does_not_exist.xml&amp;quot;)' | mclient -lxq &amp;gt; /dev/null
&lt;br&gt;&amp;nbsp; N=$(($N + 1))
&lt;br&gt;done
&lt;br&gt;&lt;br&gt;perform the update:
&lt;br&gt;&lt;br&gt;do insert &amp;lt;beer/&amp;gt; into doc(&amp;quot;aap.xml&amp;quot;)/aap 
&lt;br&gt;&lt;br&gt;now execute the above script again:
&lt;br&gt;&lt;br&gt;N=0
&lt;br&gt;while [[ $N -lt 1000 ]] 
&lt;br&gt;do
&lt;br&gt;&amp;nbsp; echo &amp;quot;Step $N&amp;quot;
&lt;br&gt;&amp;nbsp; echo 'pf:documents()' | mclient -lxq &amp;gt; /dev/null
&lt;br&gt;&amp;nbsp; echo 'doc(&amp;quot;does_not_exist.xml&amp;quot;)' | mclient -lxq &amp;gt; /dev/null
&lt;br&gt;&amp;nbsp; N=$(($N + 1))
&lt;br&gt;done
&lt;br&gt;&lt;br&gt;on my system this script 'hangs' on the 'pf:documents()' query after a few tries (between 10 and 250). 
&lt;br&gt;&lt;br&gt;System: Fedora Core 8, 64bit, MonetDB 4.22 64bit-oids, Feb2008 supertarball.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 10:45
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;confirmed.
&lt;br&gt;closing.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-17 10:57
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;&amp;quot;fixed&amp;quot; by moving this test to be the second in this directory such that it
&lt;br&gt;runs on an empty DB and hence the output is identical as when run in
&lt;br&gt;isolation.
&lt;br&gt;&lt;br&gt;To be closed once nightly testing confirms the &amp;quot;fix&amp;quot;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-16 22:24
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;re-opened as the test fails since it has been added on 2009.08.01
&lt;br&gt;cf.,
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/hang_non_existing_doc.SF-1911209.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/hang_non_existing_doc.SF-1911209.out.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Sjoerd Mullender (sjoerd)
&lt;br&gt;Date: 2009-07-31 10:03
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Finally added test in pathfinder/tests/BugTracker:
&lt;br&gt;hang_non_existing_doc.SF-1911209.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-02-16 13:36
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;re-opened to remind us that we should consider adding a test
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Peter Boncz (boncz)
&lt;br&gt;Date: 2008-03-30 03:00
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=591107
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;a recent checking in gdk_bbp.x (deadlock resolved) seems to solve this
&lt;br&gt;bug.
&lt;br&gt;&lt;br&gt;If you update MonetDB to the HEAD, I would expect the problem to disappear
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Peter Boncz (boncz)
&lt;br&gt;Date: 2008-03-30 01:58
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=591107
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;a recent checking in gdk_bbp.x (deadlock resolved) seems to solve this
&lt;br&gt;bug.
&lt;br&gt;&lt;br&gt;If you update MonetDB to the HEAD, I would expect the problem to disappear
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Peter Boncz (boncz)
&lt;br&gt;Date: 2008-03-29 21:22
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=591107
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;a recent checking in gdk_bbp.x (deadlock resolved) seems to solve this
&lt;br&gt;bug.
&lt;br&gt;&lt;br&gt;If you update MonetDB to the HEAD, I would expect the problem to disappear
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Wouter Alink (vzzzbx)
&lt;br&gt;Date: 2008-03-12 13:15
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=621590
&lt;br&gt;Originator: YES
&lt;br&gt;&lt;br&gt;forgot to say: it doesn't happen with 4.20
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=1911209&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=1911209&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26404971&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-1911209---XQ%3A-MonetDB-%27hangs%27-after-requesting-non-existing-doc-tp26404971p26404971.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26404954</id>
	<title>[ monetdb-Bugs-2893875 ] PF: 82 tests fail on Auf2009_NFI/Nov2009 but work on Aug2009</title>
	<published>2009-11-18T01:43:47Z</published>
	<updated>2009-11-18T01:43:47Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #2893875, was opened at 2009-11-07 17:19
&lt;br&gt;Message generated for change (Comment added) made by stmane
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2893875&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2893875&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: PF/tests
&lt;br&gt;Group: Pathfinder &amp;quot;stable&amp;quot;
&lt;br&gt;&amp;gt;Status: Closed
&lt;br&gt;&amp;gt;Resolution: Fixed
&lt;br&gt;Priority: 9
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Stefan Manegold (stmane)
&lt;br&gt;Assigned to: Stefan Manegold (stmane)
&lt;br&gt;Summary: PF: 82 tests fail on Auf2009_NFI/Nov2009 but work on Aug2009
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;The following 82 tests work(ed) fine with the Aug2009 branch,
&lt;br&gt;but appear to fail with the Aug2009 branch,
&lt;br&gt;and hence most probaly also with the Nov2009 branch
&lt;br&gt;(which is currently even more instable wrt. testing for yet undiscovered reasons):
&lt;br&gt;&lt;br&gt;benchmarks/MBench/qa05
&lt;br&gt;benchmarks/MBench/
&lt;br&gt;benchmarks/XBench/DC/MD/q19
&lt;br&gt;benchmarks/XBench/DC/MD/
&lt;br&gt;modules/pftijah/procs
&lt;br&gt;modules/pftijah/colltest1
&lt;br&gt;modules/pftijah/colltest2
&lt;br&gt;modules/pftijah/
&lt;br&gt;runtime/xrpc/admin/add_del_doc_noxrpc
&lt;br&gt;runtime/xrpc/admin/backup_restore_noxrpc
&lt;br&gt;runtime/xrpc/admin/
&lt;br&gt;tests/BugTracker/treat_as.SF-1586454
&lt;br&gt;tests/BugTracker/insert_multiple.SF-1590580
&lt;br&gt;tests/BugTracker/inserting_multiple_elements.SF-1590583
&lt;br&gt;tests/BugTracker/insert_into_transient.SF-1626208
&lt;br&gt;tests/BugTracker/clear_attrs_on_delete.SF-1612739
&lt;br&gt;tests/BugTracker/clear_attrs_on_delete.SF-1612739-b
&lt;br&gt;tests/BugTracker/clear_attrs_on_delete.SF-1612739-c
&lt;br&gt;tests/BugTracker/corrupt_after_update.SF-1706640
&lt;br&gt;tests/BugTracker/accessing_renamed_inserted_deleted_node.SF-1718622-1718635-1718709
&lt;br&gt;tests/BugTracker/insert_large_doc.SF-1726954
&lt;br&gt;tests/BugTracker/replace-corrupts.SF-1758902
&lt;br&gt;tests/BugTracker/swizzle-bug.SF-1760811
&lt;br&gt;tests/BugTracker/swizzle-bug2.SF-1763495
&lt;br&gt;tests/BugTracker/insert_attribute_gives_ERROR_in_merged_union.SF-1763575
&lt;br&gt;tests/BugTracker/immune_for_updates.SF-1766259
&lt;br&gt;tests/BugTracker/repeated-insert.SF-1814911
&lt;br&gt;tests/BugTracker/insert-new-page.SF-1854215
&lt;br&gt;tests/BugTracker/immune_for_updates.SF-1981852
&lt;br&gt;tests/BugTracker/hang_non_existing_doc.SF-1911209
&lt;br&gt;tests/BugTracker/function_parameter_without_type.SF-1898518
&lt;br&gt;tests/BugTracker/copybug.SF-2642003
&lt;br&gt;tests/BugTracker/update-with-timing.SF-2852928
&lt;br&gt;tests/BugTracker/compilation_error.SF-2860574_1
&lt;br&gt;tests/BugTracker/compilation_error.SF-2860574_2
&lt;br&gt;tests/BugsViaSourgeforce/invisible_error_messages.SF-1409122
&lt;br&gt;tests/BugsViaSourgeforce/
&lt;br&gt;tests/StandOff/update/basic_insert
&lt;br&gt;tests/StandOff/update/basic_test
&lt;br&gt;tests/StandOff/update/
&lt;br&gt;tests/Update/setattr-1
&lt;br&gt;tests/Update/insert-1
&lt;br&gt;tests/Update/insert-2
&lt;br&gt;tests/Update/symm
&lt;br&gt;tests/Update/replacevaluetest
&lt;br&gt;tests/Update/replacevaluetest2
&lt;br&gt;tests/Update/update
&lt;br&gt;tests/Update/illegal-insert
&lt;br&gt;tests/Update/illegal-delete
&lt;br&gt;tests/Update/insert_test_order
&lt;br&gt;tests/Update/insert_test_order_seq
&lt;br&gt;tests/Update/replacenode-corruption.SF-2153245
&lt;br&gt;tests/W3C_use_cases/XQUF/AddressBook/Q1x
&lt;br&gt;tests/W3C_use_cases/XQUF/AddressBook/check_docs
&lt;br&gt;tests/W3C_use_cases/XQUF/AddressBook/
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q1
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q2
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q3a1
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q3a2
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q4a
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q4ax
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q4b
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q4bx
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q4c
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q4cx
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q6
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q6x
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q1
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q2
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q3
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q4
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q4x
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q5b
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q6a
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q6b
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q7
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q7x
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q8
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q9
&lt;br&gt;tests/XQuery/is-before4
&lt;br&gt;tests/XQuery/union
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-18 10:43
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;confirmed.
&lt;br&gt;closing.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-17 10:08
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;forgot to finish:
&lt;br&gt;&lt;br&gt;&amp;quot;I already&amp;quot; ...
&lt;br&gt;... approved ALG-specific output of the insert-order test on Lefteris'
&lt;br&gt;advice and closed the bug report:
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=1964365&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=1964365&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-17 10:05
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Thanks, Peter!
&lt;br&gt;&lt;br&gt;Your checkins were &amp;quot;too late&amp;quot; for last night's (this morning's) testing,
&lt;br&gt;but local testing shows pathfinder/benchmarks/MBench/Tests/qa05.* and
&lt;br&gt;pathfinder/tests/Update/Tests/update.* working fine, again.
&lt;br&gt;&lt;br&gt;I already 
&lt;br&gt;&lt;br&gt;Can be closed once confirmed by nightly testing.
&lt;br&gt;(For now, system-specific problems are also documented in the TestWeb, and
&lt;br&gt;should be handled later; they're not considered crucial for the upcoming
&lt;br&gt;release.)
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Peter Boncz (boncz)
&lt;br&gt;Date: 2009-11-17 00:32
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;both problems are fixed now
&lt;br&gt;&lt;br&gt;I did spot in tests/Update/insert_test_order_seq
&lt;br&gt;another instance of differences accross all platforms.
&lt;br&gt;&lt;br&gt;The test is a little vauge, inserting a sequence of values; I am not sure
&lt;br&gt;what the XQUF semantics says about this. Is the order
&lt;br&gt;implementation-dependent? This this order might also be ok and the test
&lt;br&gt;could be approved. 
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Jan Rittinger (tsheyar)
&lt;br&gt;Date: 2009-11-16 18:42
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;In MBench/qa05 Peter's heuristic rewrite leads to an (unnecessary) cross
&lt;br&gt;product. (For all eNest nodes it applies pf:attribute.) I guess that might
&lt;br&gt;be the problem.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Sjoerd Mullender (sjoerd)
&lt;br&gt;Date: 2009-11-16 15:42
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;This is a show stopper.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-16 15:28
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Peter, 
&lt;br&gt;&lt;br&gt;the two &amp;quot;crucial&amp;quot; problems remaining (which both started on the Nov2009
&lt;br&gt;branch after propagations of NFI changes from the Aug2009_NFI branch to the
&lt;br&gt;Nov2009 branch) are
&lt;br&gt;&lt;br&gt;&lt;br&gt;timeout in
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/benchmarks_MBench/qa05.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/benchmarks_MBench/qa05.err.00.html&lt;/a&gt;&lt;br&gt;(since 2009.10.09)
&lt;br&gt;&lt;br&gt;&lt;br&gt;missing updates in
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_Update/update.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_Update/update.out.00.html&lt;/a&gt;&lt;br&gt;(since 2009.10.08)
&lt;br&gt;They might actually be missing, because the query parts of the update
&lt;br&gt;queries involving an attribute predicate yield an empty result.
&lt;br&gt;The missing updates are
&lt;br&gt;&lt;br&gt;for $elem in $testdoc/document/element[@attribute = 50]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return do rename exactly-one($elem) into &amp;quot;Element&amp;quot;
&lt;br&gt;&lt;br&gt;for $elem in $testdoc/document/element[@attribute = 10]
&lt;br&gt;&amp;nbsp; return (do insert &amp;lt;a/&amp;gt; as first into exactly-one($elem) treat as
&lt;br&gt;element(),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; do insert &amp;lt;b/&amp;gt; as first into exactly-one($elem) treat as element())
&lt;br&gt;&lt;br&gt;for $elem in $testdoc/document/element[@attribute = 20]
&lt;br&gt;&amp;nbsp; return (do insert &amp;lt;a/&amp;gt; as last into exactly-one($elem) treat as
&lt;br&gt;element(),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; do insert &amp;lt;b/&amp;gt; as last into exactly-one($elem) treat as element())
&lt;br&gt;&lt;br&gt;for $elem in $testdoc/document/element[@attribute = 30]
&lt;br&gt;&amp;nbsp; return (do insert &amp;lt;a/&amp;gt; before exactly-one($elem),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; do insert &amp;lt;b/&amp;gt; before exactly-one($elem))
&lt;br&gt;&lt;br&gt;for $elem in $testdoc/document/element[@attribute = 40]
&lt;br&gt;&amp;nbsp; return (do insert &amp;lt;a/&amp;gt; after exactly-one($elem),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; do insert &amp;lt;b/&amp;gt; after exactly-one($elem))
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-15 13:57
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;below the details what I did so far:
&lt;br&gt;&lt;br&gt;&amp;gt; - tests/BugTracker/empty_file.SF-2017862: SunOS specific version only!!
&lt;br&gt;approved.
&lt;br&gt;&amp;gt; - tests/BugTracker/XML_document_cache_broken.SF-1414720
&lt;br&gt;approved.
&lt;br&gt;&amp;gt; - tests/W3C_use_cases/XQ/NS/* (or remove tests!)
&lt;br&gt;disabled.
&lt;br&gt;&amp;gt; - tests/XQuery/{div.is-before4,union}
&lt;br&gt;div:
&lt;br&gt;approved MIL error messages iso. XQuery error message
&lt;br&gt;&lt;br&gt;is-before4, union:
&lt;br&gt;nothing, as I'm not sure, whether the new output is correct.
&lt;br&gt;Since the NFI change were propagated to the Nov2009 branch on Oct 7,
&lt;br&gt;these tests show again the output as it was before
&lt;br&gt;===================================================================
&lt;br&gt;2009/05/20 - tsheyar:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pathfinder/tests/XQuery/Tests/is-before4.stable.out,1.5.30.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pathfinder/tests/XQuery/Tests/union.stable.out,1.6.12.1
&lt;br&gt;-- Make the error message for missing documents more informative:
&lt;br&gt;&amp;nbsp; &amp;nbsp;Include the document name in the error message.
&lt;br&gt;&lt;br&gt;-- Adjust new error messages in the testweb.
&lt;br&gt;&lt;br&gt;-- Adjust stable output (for tests with a modified inter-document order).
&lt;br&gt;&lt;br&gt;-- Fix/Extend a cross product rewrite (for unreferenced inputs).
&lt;br&gt;&lt;br&gt;-- Simplify the 'missing document' error message in the algebra
&lt;br&gt;&amp;nbsp; &amp;nbsp;for constant document names (which is the default).
&lt;br&gt;===================================================================
&lt;br&gt;cf.,
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_XQuery/is-before4.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_XQuery/is-before4.out.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_XQuery/union.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_XQuery/union.out.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Peter and/or Jan R., could you please comment?
&lt;br&gt;&lt;br&gt;&amp;gt; -
&lt;br&gt;tests/BugDay_2005-12-19_0.9.3/attribute_after_non-attribute_content.SF-1351516
&lt;br&gt;disabled.
&lt;br&gt;&amp;gt; - tests/BugDay_2005-12-19_0.9.3/shred_doc_with_space.SF-1211372: windows
&lt;br&gt;only
&lt;br&gt;minor --- either approve or change access rights on Windows machine:
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/Int.64.32.d.1-Windows6.0/tests_BugDay_2005-12-19_0.9.3/shred_doc_with_space.SF-1211372.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/Int.64.32.d.1-Windows6.0/tests_BugDay_2005-12-19_0.9.3/shred_doc_with_space.SF-1211372.out.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/Int.64.64.d.1-Windows6.0/tests_BugDay_2005-12-19_0.9.3/shred_doc_with_space.SF-1211372.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/Int.64.64.d.1-Windows6.0/tests_BugDay_2005-12-19_0.9.3/shred_doc_with_space.SF-1211372.out.00.html&lt;/a&gt;&lt;br&gt;&amp;gt; - tests/clients/php_monetdb
&lt;br&gt;fixed.
&lt;br&gt;&amp;gt; - runtime/procs/approve
&lt;br&gt;approved.
&lt;br&gt;&amp;gt; - modules/pftijah/{load,sigs,procs}
&lt;br&gt;approved.
&lt;br&gt;&amp;gt; -
&lt;br&gt;tests/BugsViaSourgeforce/{invisible_error_messages.SF-1409122,ID.1766173}
&lt;br&gt;approved.
&lt;br&gt;&lt;br&gt;&amp;gt; (2) remove or disable the following tests, which seem incorrect or
&lt;br&gt;outdated:
&lt;br&gt;&amp;gt; - tests/BugTracker/xs_untypedAtomic.SF-1509806.mps
&lt;br&gt;disabled.
&lt;br&gt;&amp;gt; - tests/BugTracker/Zombie_document.SF-2009556
&lt;br&gt;Nothing yet; we get a timeout:
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/Zombie_document.SF-2009556.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/Zombie_document.SF-2009556.out.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/Zombie_document.SF-2009556.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/Zombie_document.SF-2009556.err.00.html&lt;/a&gt;&lt;br&gt;&amp;gt; - tests/BugTracker/function_parameter_without_type.SF-1898518
&lt;br&gt;approved.
&lt;br&gt;&amp;gt; - tests/BugTracker/fn-root_fn-id_on_attribute_nodes.SF-1
&lt;br&gt;disabled.
&lt;br&gt;&amp;gt; - tests/BugTracker/975028,non-existing_collection.SF-1991726
&lt;br&gt;approved.
&lt;br&gt;&amp;gt; - tests/BugTracker/port_busy.SF-1809586
&lt;br&gt;Nothing, yet; output might actually be OK / as expected:
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/port_busy.SF-1809586.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/port_busy.SF-1809586.out.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/port_busy.SF-1809586.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/port_busy.SF-1809586.err.00.html&lt;/a&gt;&lt;br&gt;&amp;gt; - tests/BugTracker/collection_management
&lt;br&gt;Nothing, yet; need to understand what's (supposed to be) going on:
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/collection_management.SF-1726599.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/collection_management.SF-1726599.out.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/collection_management.SF-1726599.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/collection_management.SF-1726599.err.00.html&lt;/a&gt;&lt;br&gt;&amp;gt; - tests/BugDay_2005-12-19_0.9.3/multiple_servers_2.SF-1385152
&lt;br&gt;fixed.
&lt;br&gt;&amp;gt; - runtime/smack
&lt;br&gt;Nothing, yet; smack00 test works fine for MIL, MAL, SQL, but never worked
&lt;br&gt;(timout: hangs &amp;quot;forever&amp;quot;) for XQuery
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/runtime/smack00.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/runtime/smack00.out.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/runtime/smack00.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/runtime/smack00.err.00.html&lt;/a&gt;&lt;br&gt;&amp;gt; - benchmarks/mbench/{qa02,qa06} are now only run for Darwin9.8.0
&lt;br&gt;G.32.32.d.1
&lt;br&gt;&amp;gt; -- should also set NOT_ALGEBRA for this platform
&lt;br&gt;these are (and have been) skipped with Algebra on all platforms.
&lt;br&gt;&lt;br&gt;&amp;gt; (3) ask Jennie to look at the following tests in runtime/xrpc/admin/:
&lt;br&gt;&amp;gt; - add_del_doc_norpc: approve?
&lt;br&gt;&amp;gt; - backup_restore_xrpc: empty, check this pls??
&lt;br&gt;Since 12.11., these now fail with
&lt;br&gt;&lt;br&gt;ERROR = !module import: error loading module from
&lt;br&gt;&lt;a href=&quot;http://$HOST:47966/admin/admin.xq&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://$HOST:47966/admin/admin.xq&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/runtime_xrpc_admin/add_del_doc_noxrpc.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/runtime_xrpc_admin/add_del_doc_noxrpc.err.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/runtime_xrpc_admin/backup_restore_noxrpc.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/runtime_xrpc_admin/backup_restore_noxrpc.err.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;gt; (4) ask Jan Flokstra to look at the following tests in
&lt;br&gt;modules/pftijah/:
&lt;br&gt;&amp;gt; - coltest1 hang
&lt;br&gt;&amp;gt; - test_lms-or: order
&lt;br&gt;&amp;gt; - test_lms_rmoverlap, test_select_start*: empty
&lt;br&gt;fixed by Sjoerd's backport of Hennigs fixes from the head to the Nov2009
&lt;br&gt;branch
&lt;br&gt;&lt;br&gt;&amp;gt; (5) adapt or disable these test scripts to work on windows:
&lt;br&gt;&amp;gt; - tests/BugDay_2005-12-19_0.9.3/file_locked_after_shredding.SF-1238352
&lt;br&gt;&amp;gt; (windows6 only) -
&lt;br&gt;&amp;gt; - tests/BugDay_2005-12-19_0.9.3/shredding_on_the_fly.SF-1377006: idem
&lt;br&gt;&amp;gt; - tests/BugTracker/predicate_selects_too_few_nodes.SF-1636588 - windows
&lt;br&gt;fails
&lt;br&gt;&amp;gt; to parse, because of Mtest substitution failure (for $v becomes for 4)
&lt;br&gt;fixed by Sjoerd.
&lt;br&gt;&lt;br&gt;&amp;gt; (6) ignore output of tests (possibly for certain platforms only), as
&lt;br&gt;these are
&lt;br&gt;&amp;gt; system limits related (too deep recursion):
&lt;br&gt;&amp;gt; - tests/BugTracker/crash_on_concatenated_query.SF-1730547 - for all
&lt;br&gt;systems
&lt;br&gt;&amp;gt; - tests/BugTracker/server-side_compilation_crash.SF-1607210 - for all
&lt;br&gt;systems
&lt;br&gt;&amp;gt; - tests/BugsViaSourgeforce/ID.1015172{a,b,c}: timeout on windows5
&lt;br&gt;(windows6
&lt;br&gt;&amp;gt; works)
&lt;br&gt;&amp;gt; - tests/XQuery/step_attr_nametest: Darwin9.8.0 G.32.32.d too deep
&lt;br&gt;recursion,
&lt;br&gt;&amp;gt; - tests/XQuery/typeswitch3 - too deep recursion on various systems..
&lt;br&gt;&amp;gt; - tests/BugDay_2005-11-09_0.9.3/xquery_crashtest.SF-1207048: pf
&lt;br&gt;recursion
&lt;br&gt;&amp;gt; check not triggered on Fedora10 G.32.32.d.1
&lt;br&gt;to be done ...
&lt;br&gt;&lt;br&gt;didn't get further than here, so far ...
&lt;br&gt;&lt;br&gt;Stefan
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Peter Boncz (boncz)
&lt;br&gt;Date: 2009-11-11 11:45
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Thanks. I looked into this and fixed a problem with XQuery updates that
&lt;br&gt;indeed was present. This will reduce the amount of problems, removing
&lt;br&gt;(almost) all of those tests that are XQuery updates from the list.
&lt;br&gt;&lt;br&gt;The update bug was caused by a later modification that succeeded my own
&lt;br&gt;check of the testweb that I performed before checking in the code. At that
&lt;br&gt;time, already, I found it very hard to work with the test web. Note, this
&lt;br&gt;is not a complaint to anyone in particular. However a matter of fact.
&lt;br&gt;Simply too many tests fail, such that one is forced to spend an hour just
&lt;br&gt;to compare the state of the testweb before and after a check-in, to detect
&lt;br&gt;which of the tests that fail were actually already failing before the
&lt;br&gt;check-in. Let alone analyze what is happening.
&lt;br&gt;&lt;br&gt;my suggestons are as follows:
&lt;br&gt;&lt;br&gt;(1) approve output:
&lt;br&gt;- tests/BugTracker/empty_file.SF-2017862: SunOS specific version only!!
&lt;br&gt;- tests/BugTracker/XML_document_cache_broken.SF-1414720
&lt;br&gt;- tests/W3C_use_cases/XQ/NS/* (or remove tests!)
&lt;br&gt;- tests/XQuery/{div.is-before4,union}
&lt;br&gt;-
&lt;br&gt;tests/BugDay_2005-12-19_0.9.3/attribute_after_non-attribute_content.SF-1351516
&lt;br&gt;- tests/BugDay_2005-12-19_0.9.3/shred_doc_with_space.SF-1211372: windows
&lt;br&gt;only
&lt;br&gt;- tests/clients/php_monetdb
&lt;br&gt;- runtime/procs/approve
&lt;br&gt;- modules/pftijah/{load,sigs,procs}
&lt;br&gt;-
&lt;br&gt;tests/BugsViaSourgeforce/{invisible_error_messages.SF-1409122,ID.1766173}
&lt;br&gt;&lt;br&gt;(2) remove or disable the following tests, which seem incorrect or
&lt;br&gt;outdated:
&lt;br&gt;- tests/BugTracker/xs_untypedAtomic.SF-1509806.mps
&lt;br&gt;- tests/BugTracker/Zombie_document.SF-2009556
&lt;br&gt;- tests/BugTracker/function_parameter_without_type.SF-1898518
&lt;br&gt;- tests/BugTracker/fn-root_fn-id_on_attribute_nodes.SF-1
&lt;br&gt;- tests/BugTracker/975028,non-existing_collection.SF-1991726
&lt;br&gt;- tests/BugTracker/port_busy.SF-1809586
&lt;br&gt;- tests/BugTracker/collection_management
&lt;br&gt;- tests/BugDay_2005-12-19_0.9.3/multiple_servers_2.SF-1385152
&lt;br&gt;- runtime/smack
&lt;br&gt;- benchmarks/mbench/{qa02,qa06} are now only run for Darwin9.8.0
&lt;br&gt;G.32.32.d.1 -- should also set NOT_ALGEBRA for this platform
&lt;br&gt;&lt;br&gt;(3) ask Jennie to look at the following tests in runtime/xrpc/admin/:
&lt;br&gt;- add_del_doc_norpc: approve?
&lt;br&gt;- backup_restore_xrpc: empty, check this pls??
&lt;br&gt;&lt;br&gt;(4) ask Jan Flokstra to look at the following tests in modules/pftijah/:
&lt;br&gt;- coltest1 hang
&lt;br&gt;- test_lms-or: order
&lt;br&gt;- test_lms_rmoverlap, test_select_start*: empty
&lt;br&gt;&lt;br&gt;(5) adapt or disable these test scripts to work on windows:
&lt;br&gt;- tests/BugDay_2005-12-19_0.9.3/file_locked_after_shredding.SF-1238352
&lt;br&gt;(windows6 only) -
&lt;br&gt;- tests/BugDay_2005-12-19_0.9.3/shredding_on_the_fly.SF-1377006: idem
&lt;br&gt;- tests/BugTracker/predicate_selects_too_few_nodes.SF-1636588 - windows
&lt;br&gt;fails to parse, because of Mtest substitution failure (for $v becomes for
&lt;br&gt;4)
&lt;br&gt;&lt;br&gt;(6) ignore output of tests (possibly for certain platforms only), as these
&lt;br&gt;are system limits related (too deep recursion):
&lt;br&gt;- tests/BugTracker/crash_on_concatenated_query.SF-1730547 - for all
&lt;br&gt;systems
&lt;br&gt;- tests/BugTracker/server-side_compilation_crash.SF-1607210 - for all
&lt;br&gt;systems
&lt;br&gt;- tests/BugsViaSourgeforce/ID.1015172{a,b,c}: timeout on windows5
&lt;br&gt;(windows6 works)
&lt;br&gt;- tests/XQuery/step_attr_nametest: Darwin9.8.0 G.32.32.d too deep
&lt;br&gt;recursion,
&lt;br&gt;- tests/XQuery/typeswitch3 - too deep recursion on various systems..
&lt;br&gt;- tests/BugDay_2005-11-09_0.9.3/xquery_crashtest.SF-1207048: pf recursion
&lt;br&gt;check not triggered on Fedora10 G.32.32.d.1
&lt;br&gt;&lt;br&gt;&lt;br&gt;what will be left, then
&lt;br&gt;=======================
&lt;br&gt;&lt;br&gt;The only problems that will be left after following the above are in fact
&lt;br&gt;problems that occur only on a single system.
&lt;br&gt;Rather than indicating a platform deficiency, however, it is still very
&lt;br&gt;likely that these differences indicate the
&lt;br&gt;precense of a bug, that is only triggered under certain circumstances that
&lt;br&gt;happen to hold on that platform.
&lt;br&gt;&lt;br&gt;so these are interesting to look at; all of them were already present in
&lt;br&gt;the last Stable
&lt;br&gt;&lt;br&gt;Fedora10.G.64.64.d.0 - merge_union2: non dense head
&lt;br&gt;- tests/XQuery/merge_union2
&lt;br&gt;Fedora10 G.64.64.d.0 - crash
&lt;br&gt;- tests/XQuery/step_attribute8,
&lt;br&gt;&lt;br&gt;Fedora10 I.64.64.d.1: crash
&lt;br&gt;- tests/XQuery/orderby6
&lt;br&gt;&lt;br&gt;Fedora10 G.64.64.s.1 - crash
&lt;br&gt;- tests/XQuery/step_descendant-or-self3
&lt;br&gt;&lt;br&gt;Fedora10.G.32.32.d.1 &amp;nbsp;-- segmentation fault
&lt;br&gt;- xbench/tc/md/q10
&lt;br&gt;- tests/W3C_use_cases/XQ/XMP/Q07
&lt;br&gt;&lt;br&gt;windows - !ERROR: couldn't read name (1000000152_qn_uri) 1
&lt;br&gt;- tests/BugTracker/32_docs.SF-1730617:
&lt;br&gt;&lt;br&gt;sunos5 g32.32.d.1 - segmentation fault
&lt;br&gt;- mbench/{qs28,31}
&lt;br&gt;- tests/XQuery/{step_duplicates,transient_upward_steps}
&lt;br&gt;- benchmarks/XPathMark/{Q27,28}
&lt;br&gt;- benchmarks/XPath/q13
&lt;br&gt;- benchmarks/XMark/q04
&lt;br&gt;- tests/XQuery/step_attr_nametest (also on Darwin9.8.0 G.32.32.d.1)
&lt;br&gt;sunos5 g32.32.d.1 - 4 times inserted nil due to errors at tuples 0, 1, 2,
&lt;br&gt;3
&lt;br&gt;- tests/BugTracker/child-steps-and-replace.SF-2716723:
&lt;br&gt;&lt;br&gt;Debian4.0 G.32.32.d.1 - !fatal error: columns referenced in trace message
&lt;br&gt;operator not found
&lt;br&gt;- tests/BugTracker/fn-trace.SF-2805513 (also Gentoo2.0.1 G.64.64.d.1)
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-08 18:13
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;The same test that fail with Aug2009_NFI, while working with Aug2009,
&lt;br&gt;indeed also fail with Nov2009.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-08 16:50
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;For completeness:
&lt;br&gt;&lt;br&gt;I checked this on my 64-bit Fedora 10 Linux desktop, using a &amp;quot;testing&amp;quot;
&lt;br&gt;build of MonetDB, i.e., configured with --disbale-debug --enable-optimize
&lt;br&gt;--enable-assert .
&lt;br&gt;&lt;br&gt;I ran Mtest.py (more precisely make check, respectively RunMtest in the
&lt;br&gt;build directory) seperately for the Aug2009 and the Aug2009_NFI brach
&lt;br&gt;(builds) of pathfinder, collected the console output in files, and run diff
&lt;br&gt;over those (as well as over the times.sql files that Mtest.py creates in
&lt;br&gt;its &amp;lt;TSTTRGBASE&amp;gt; directory.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2893875&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2893875&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26404954&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-2893875---PF%3A-82-tests-fail-on-Auf2009_NFI-Nov2009-but-work-on-Aug2009-tp26404954p26404954.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26404662</id>
	<title>[ monetdb-Bugs-2898944 ] pf takes 'forever' (&gt; 1 hour) to compile particular query</title>
	<published>2009-11-18T01:20:05Z</published>
	<updated>2009-11-18T01:20:05Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #2898944, was opened at 2009-11-17 09:27
&lt;br&gt;Message generated for change (Comment added) made by tsheyar
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: PF/compiler
&lt;br&gt;Group: Pathfinder &amp;quot;candidate&amp;quot;
&lt;br&gt;&amp;gt;Status: Closed
&lt;br&gt;&amp;gt;Resolution: Fixed
&lt;br&gt;Priority: 6
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Axel Belinfante (axelbel)
&lt;br&gt;&amp;gt;Assigned to: Jan Rittinger (tsheyar)
&lt;br&gt;Summary: pf takes 'forever' (&amp;gt; 1 hour) to compile particular query
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;I don't know whether the following really qualifies as bug, or just is a case of 'user error by giving stupid input.
&lt;br&gt;In any case, I would like to bring this to your attention.
&lt;br&gt;&lt;br&gt;When I compile a query for attached module definition with pf (may or aug or pre-nov version), compilation takes 'forever'.
&lt;br&gt;When I replace &amp;nbsp;the clause &amp;nbsp;ecv:to-human($g0, $human_type) &amp;nbsp; by simple &amp;nbsp; $g0
&lt;br&gt;and remove definitions of &amp;nbsp; $human_type &amp;nbsp; and &amp;nbsp; to-human &amp;nbsp; it compiles almost instantly.
&lt;br&gt;It is the huge difference in compilation time that surprises me.
&lt;br&gt;&lt;br&gt;The query I compile is:
&lt;br&gt;&lt;br&gt;import module namespace ecv = &amp;quot;&lt;a href=&quot;http://www.cs.utwente.nl/~belinfan/ecv&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.utwente.nl/~belinfan/ecv&lt;/a&gt;&amp;quot; at &amp;quot;/tmp/long-compilation.xq&amp;quot;; ecv:view-from-save(&amp;quot;eprints-export-conv-fmt.xml&amp;quot;)
&lt;br&gt;&lt;br&gt;where tmp/long-compilation.xq is the attached module.
&lt;br&gt;&lt;br&gt;&lt;br&gt;What the query attempts to do: obtain results from the database, order these on two criteria, and when listing the results, insert human-readable headers.
&lt;br&gt;The human-readable headers are obtained by the to-human mapping from field value (used as ordering criterium) to human-readable string.
&lt;br&gt;At some point I just used if-then-else-if-then-else etc. to do the mapping, but that seemed slower to compile than the approach I took here.
&lt;br&gt;&lt;br&gt;Suggestions for rewriting the query to a fast-compiling one would be considered as a fix too, I guess.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Jan Rittinger (tsheyar)
&lt;br&gt;Date: 2009-11-18 10:20
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;The reason for the 'forever' compile time is that the physical plan space
&lt;br&gt;blows up in a heuristic that tries to find good plan orders. I now added a
&lt;br&gt;check that avoids generating to many plans.
&lt;br&gt;&lt;br&gt;I checked in the fix in the Nov2009 stable branch. I'm however not sure
&lt;br&gt;whether it makes it into the release -- probably not. So please get it from
&lt;br&gt;either CVS or nightly-builds.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-17 09:32
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;not sure about category or group - chose seemingly most appropriate.
&lt;br&gt;&lt;br&gt;even though I did not change default priority , having some answer for
&lt;br&gt;this
&lt;br&gt;(whether fix in code, or guideline for fast compiling query) would be very
&lt;br&gt;helpful.
&lt;br&gt;In my application the pf compilation run is triggered from a web-gui -
&lt;br&gt;fast compilation
&lt;br&gt;is very important there, and predicatable compilation times maybe even
&lt;br&gt;more.
&lt;br&gt;(i.e. it would be nice when all compilations would take the same order of
&lt;br&gt;time).
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26404662&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-2898944---pf-takes-%27forever%27-%28%3E-1-hour%29-to-compile-particular-query-tp26404662p26404662.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26396713</id>
	<title>[ monetdb-Bugs-2898944 ] pf takes 'forever' (&gt; 1 hour) to compile particular query</title>
	<published>2009-11-17T12:09:55Z</published>
	<updated>2009-11-17T12:09:55Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #2898944, was opened at 2009-11-17 09:27
&lt;br&gt;Message generated for change (Settings changed) made by axelbel
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: PF/compiler
&lt;br&gt;Group: Pathfinder &amp;quot;candidate&amp;quot;
&lt;br&gt;Status: Open
&lt;br&gt;Resolution: None
&lt;br&gt;&amp;gt;Priority: 6
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Axel Belinfante (axelbel)
&lt;br&gt;Assigned to: Nobody/Anonymous (nobody)
&lt;br&gt;&amp;gt;Summary: pf takes 'forever' (&amp;gt; 1 hour) to compile particular query
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;I don't know whether the following really qualifies as bug, or just is a case of 'user error by giving stupid input.
&lt;br&gt;In any case, I would like to bring this to your attention.
&lt;br&gt;&lt;br&gt;When I compile a query for attached module definition with pf (may or aug or pre-nov version), compilation takes 'forever'.
&lt;br&gt;When I replace &amp;nbsp;the clause &amp;nbsp;ecv:to-human($g0, $human_type) &amp;nbsp; by simple &amp;nbsp; $g0
&lt;br&gt;and remove definitions of &amp;nbsp; $human_type &amp;nbsp; and &amp;nbsp; to-human &amp;nbsp; it compiles almost instantly.
&lt;br&gt;It is the huge difference in compilation time that surprises me.
&lt;br&gt;&lt;br&gt;The query I compile is:
&lt;br&gt;&lt;br&gt;import module namespace ecv = &amp;quot;&lt;a href=&quot;http://www.cs.utwente.nl/~belinfan/ecv&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.utwente.nl/~belinfan/ecv&lt;/a&gt;&amp;quot; at &amp;quot;/tmp/long-compilation.xq&amp;quot;; ecv:view-from-save(&amp;quot;eprints-export-conv-fmt.xml&amp;quot;)
&lt;br&gt;&lt;br&gt;where tmp/long-compilation.xq is the attached module.
&lt;br&gt;&lt;br&gt;&lt;br&gt;What the query attempts to do: obtain results from the database, order these on two criteria, and when listing the results, insert human-readable headers.
&lt;br&gt;The human-readable headers are obtained by the to-human mapping from field value (used as ordering criterium) to human-readable string.
&lt;br&gt;At some point I just used if-then-else-if-then-else etc. to do the mapping, but that seemed slower to compile than the approach I took here.
&lt;br&gt;&lt;br&gt;Suggestions for rewriting the query to a fast-compiling one would be considered as a fix too, I guess.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Axel Belinfante (axelbel)
&lt;br&gt;Date: 2009-11-17 09:32
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;not sure about category or group - chose seemingly most appropriate.
&lt;br&gt;&lt;br&gt;even though I did not change default priority , having some answer for
&lt;br&gt;this
&lt;br&gt;(whether fix in code, or guideline for fast compiling query) would be very
&lt;br&gt;helpful.
&lt;br&gt;In my application the pf compilation run is triggered from a web-gui -
&lt;br&gt;fast compilation
&lt;br&gt;is very important there, and predicatable compilation times maybe even
&lt;br&gt;more.
&lt;br&gt;(i.e. it would be nice when all compilations would take the same order of
&lt;br&gt;time).
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2898944&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26396713&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-2898944---pf-takes-%27forever%27-%28%3E-1-hour%29-to-compile-particular-query-tp26396713p26396713.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26387142</id>
	<title>[ monetdb-Bugs-1911209 ] XQ: MonetDB 'hangs' after requesting non-existing doc</title>
	<published>2009-11-17T01:57:58Z</published>
	<updated>2009-11-17T01:57:58Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #1911209, was opened at 2008-03-10 17:37
&lt;br&gt;Message generated for change (Comment added) made by stmane
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=1911209&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=1911209&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: PF/runtime
&lt;br&gt;Group: (zombie: MonetDB4 4.22)
&lt;br&gt;Status: Open
&lt;br&gt;Resolution: Fixed
&lt;br&gt;Priority: 8
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Wouter Alink (vzzzbx)
&lt;br&gt;Assigned to: Nobody/Anonymous (nobody)
&lt;br&gt;Summary: XQ: MonetDB 'hangs' after requesting non-existing doc
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;Using mps.
&lt;br&gt;&lt;br&gt;Querying 'pf:documents()' will never return ('hang') after having inserted a node and then querying for a non-existing doc a few times.
&lt;br&gt;&lt;br&gt;Reproduce by inserting a document &amp;quot;aap.xml&amp;quot; in the database (with content '&amp;lt;aap/&amp;gt;' and shred it updatable):
&lt;br&gt;&lt;br&gt;pf:add-doc(&amp;quot;/tmp/aap.xml&amp;quot;,&amp;quot;aap.xml&amp;quot;,&amp;quot;aap.xml&amp;quot;,10)
&lt;br&gt;&lt;br&gt;&lt;br&gt;The following script will execute fine (can be run many times):
&lt;br&gt;&lt;br&gt;N=0
&lt;br&gt;while [[ $N -lt 1000 ]] 
&lt;br&gt;do
&lt;br&gt;&amp;nbsp; echo &amp;quot;Step $N&amp;quot;
&lt;br&gt;&amp;nbsp; echo 'pf:documents()' | mclient -lxq &amp;gt; /dev/null
&lt;br&gt;&amp;nbsp; echo 'doc(&amp;quot;aap.xml&amp;quot;)' | mclient -lxq &amp;gt; /dev/null
&lt;br&gt;&amp;nbsp; N=$(($N + 1))
&lt;br&gt;done
&lt;br&gt;&lt;br&gt;&lt;br&gt;This script will execute fine (it returns an error for each document, can also be run many times):
&lt;br&gt;&lt;br&gt;N=0
&lt;br&gt;while [[ $N -lt 1000 ]] 
&lt;br&gt;do
&lt;br&gt;&amp;nbsp; echo &amp;quot;Step $N&amp;quot;
&lt;br&gt;&amp;nbsp; echo 'pf:documents()' | mclient -lxq &amp;gt; /dev/null
&lt;br&gt;&amp;nbsp; echo 'doc(&amp;quot;does_not_exist.xml&amp;quot;)' | mclient -lxq &amp;gt; /dev/null
&lt;br&gt;&amp;nbsp; N=$(($N + 1))
&lt;br&gt;done
&lt;br&gt;&lt;br&gt;perform the update:
&lt;br&gt;&lt;br&gt;do insert &amp;lt;beer/&amp;gt; into doc(&amp;quot;aap.xml&amp;quot;)/aap 
&lt;br&gt;&lt;br&gt;now execute the above script again:
&lt;br&gt;&lt;br&gt;N=0
&lt;br&gt;while [[ $N -lt 1000 ]] 
&lt;br&gt;do
&lt;br&gt;&amp;nbsp; echo &amp;quot;Step $N&amp;quot;
&lt;br&gt;&amp;nbsp; echo 'pf:documents()' | mclient -lxq &amp;gt; /dev/null
&lt;br&gt;&amp;nbsp; echo 'doc(&amp;quot;does_not_exist.xml&amp;quot;)' | mclient -lxq &amp;gt; /dev/null
&lt;br&gt;&amp;nbsp; N=$(($N + 1))
&lt;br&gt;done
&lt;br&gt;&lt;br&gt;on my system this script 'hangs' on the 'pf:documents()' query after a few tries (between 10 and 250). 
&lt;br&gt;&lt;br&gt;System: Fedora Core 8, 64bit, MonetDB 4.22 64bit-oids, Feb2008 supertarball.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-17 10:57
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;&amp;quot;fixed&amp;quot; by moving this test to be the second in this directory such that it
&lt;br&gt;runs on an empty DB and hence the output is identical as when run in
&lt;br&gt;isolation.
&lt;br&gt;&lt;br&gt;To be closed once nightly testing confirms the &amp;quot;fix&amp;quot;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-16 22:24
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;re-opened as the test fails since it has been added on 2009.08.01
&lt;br&gt;cf.,
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/hang_non_existing_doc.SF-1911209.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/hang_non_existing_doc.SF-1911209.out.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Sjoerd Mullender (sjoerd)
&lt;br&gt;Date: 2009-07-31 10:03
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Finally added test in pathfinder/tests/BugTracker:
&lt;br&gt;hang_non_existing_doc.SF-1911209.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-02-16 13:36
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;re-opened to remind us that we should consider adding a test
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Peter Boncz (boncz)
&lt;br&gt;Date: 2008-03-30 03:00
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=591107
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;a recent checking in gdk_bbp.x (deadlock resolved) seems to solve this
&lt;br&gt;bug.
&lt;br&gt;&lt;br&gt;If you update MonetDB to the HEAD, I would expect the problem to disappear
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Peter Boncz (boncz)
&lt;br&gt;Date: 2008-03-30 01:58
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=591107
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;a recent checking in gdk_bbp.x (deadlock resolved) seems to solve this
&lt;br&gt;bug.
&lt;br&gt;&lt;br&gt;If you update MonetDB to the HEAD, I would expect the problem to disappear
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Peter Boncz (boncz)
&lt;br&gt;Date: 2008-03-29 21:22
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=591107
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;a recent checking in gdk_bbp.x (deadlock resolved) seems to solve this
&lt;br&gt;bug.
&lt;br&gt;&lt;br&gt;If you update MonetDB to the HEAD, I would expect the problem to disappear
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Wouter Alink (vzzzbx)
&lt;br&gt;Date: 2008-03-12 13:15
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=621590
&lt;br&gt;Originator: YES
&lt;br&gt;&lt;br&gt;forgot to say: it doesn't happen with 4.20
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=1911209&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=1911209&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26387142&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-1911209---XQ%3A-MonetDB-%27hangs%27-after-requesting-non-existing-doc-tp26387142p26387142.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26386590</id>
	<title>[ monetdb-Bugs-1730547 ] XQ: Mserver crashes on concatenated query</title>
	<published>2009-11-17T01:15:22Z</published>
	<updated>2009-11-17T01:15:22Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #1730547, was opened at 2007-06-04 10:42
&lt;br&gt;Message generated for change (Comment added) made by stmane
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=1730547&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=1730547&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: PF/runtime
&lt;br&gt;Group: Pathfinder CVS Head
&lt;br&gt;Status: Open
&lt;br&gt;Resolution: Fixed
&lt;br&gt;&amp;gt;Priority: 8
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Wouter Alink (vzzzbx)
&lt;br&gt;Assigned to: Stefan Manegold (stmane)
&lt;br&gt;Summary: XQ: Mserver crashes on concatenated query
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;The attached query looks like:
&lt;br&gt;&lt;br&gt;&amp;quot;aap&amp;quot;,
&lt;br&gt;&amp;quot;aap&amp;quot;,
&lt;br&gt;&amp;quot;aap&amp;quot;,
&lt;br&gt;&amp;quot;aap&amp;quot;,
&lt;br&gt;... (1000 times)
&lt;br&gt;&amp;quot;aap&amp;quot;,
&lt;br&gt;&amp;quot;aap&amp;quot;
&lt;br&gt;&lt;br&gt;When given to Mserver, it says: Segmentation Fault (0.12 as well as 0.17 (build last week)).
&lt;br&gt;&lt;br&gt;This bug should not have high priority.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-17 10:15
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Instead of a &amp;quot;ERROR = !fatal error: aborted too deep recursion&amp;quot;
&lt;br&gt;the test now (again) triggers a timeout or segfault on all platform:
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/crash_on_concatenated_query.SF-1730547.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/crash_on_concatenated_query.SF-1730547.err.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2008-11-19 14:52
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;It was the &amp;quot;expected&amp;quot; output, since this test used to trigger a &amp;quot;ERROR =
&lt;br&gt;!fatal error: aborted too deep recursion&amp;quot; (and hence produce no output) on
&lt;br&gt;all platforms.
&lt;br&gt;&lt;br&gt;Apparently, this is no longer the case but now some platforms are able to
&lt;br&gt;run the test without error, i.e., producing some (correct? -&amp;gt; to be
&lt;br&gt;checked! ...) output.
&lt;br&gt;&lt;br&gt;Maybe, we need to split this test into two, a small one that works on all
&lt;br&gt;platforms and a huge one that fails (i.e., triggers a reasonable error
&lt;br&gt;message) on all platforms ...
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Jan Rittinger (tsheyar)
&lt;br&gt;Date: 2008-11-19 14:42
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Hmm I'm not sure if the 'correct' output is indeed the correct one:
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Current/pathfinder/.mTests103/Int.64.32.d.1-Fedora8/tests_BugTracker/crash_on_concatenated_query.SF-1730547.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Current/pathfinder/.mTests103/Int.64.32.d.1-Fedora8/tests_BugTracker/crash_on_concatenated_query.SF-1730547.out.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;@ Stefan could you please verify.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2007-06-05 20:44
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=572415
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;Test added in
&lt;br&gt;pathfinder/tests/BugTracker/Tests/Attic/crash_on_concatenated_query.SF-1730547.*
&lt;br&gt;&lt;br&gt;Thanks to Peter's latest fix, it now correctly triggers
&lt;br&gt;&amp;quot;ERROR = !fatal error: aborted too deep recursion&amp;quot;
&lt;br&gt;instead of crashing the server.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Peter Boncz (boncz)
&lt;br&gt;Date: 2007-06-05 18:31
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=591107
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;fixed
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Peter Boncz (boncz)
&lt;br&gt;Date: 2007-06-05 18:31
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=591107
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;fixed
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2007-06-04 21:19
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=572415
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;Debugging releaved that the segfault is indeed caused by burg running out
&lt;br&gt;of stack space due to too deep recursion.
&lt;br&gt;&lt;br&gt;See also
&lt;br&gt;[ 1607210 ] XQ: server-side compilation crash (member benchmark)
&lt;br&gt;&lt;a href=&quot;http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1607210&amp;group_id=56967&amp;atid=482468&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1607210&amp;group_id=56967&amp;atid=482468&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2007-06-04 18:21
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=572415
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;for got to mention:
&lt;br&gt;pf &amp;quot;eventually&amp;quot; produces some MIL plan; no error.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2007-06-04 18:20
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=572415
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;Running this through plain pf (0.18), i.e.,
&lt;br&gt;&lt;br&gt;{ for i in `seq 1 999` ; do echo '&amp;quot;aap&amp;quot;,' ; done ; echo '&amp;quot;aap&amp;quot;' ; } | pf
&lt;br&gt;&lt;br&gt;makes pf grow to 2.7 GB virt (1.8 GB res) on my 64-bit FC6 machine;
&lt;br&gt;hence, this might well be a memory and/or burg problem,
&lt;br&gt;especially on 32-bit machines.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=1730547&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=1730547&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26386590&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-1730547---XQ%3A-Mserver-crashes-on-concatenated-query-tp26386590p26386590.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26386533</id>
	<title>[ monetdb-Bugs-1981735 ] PF/alg: some error messages differ from PF/mps</title>
	<published>2009-11-17T01:11:18Z</published>
	<updated>2009-11-17T01:11:18Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #1981735, was opened at 2008-06-02 08:43
&lt;br&gt;Message generated for change (Comment added) made by sjoerd
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=1981735&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=1981735&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: PF/tests
&lt;br&gt;Group: Pathfinder &amp;quot;stable&amp;quot;
&lt;br&gt;Status: Closed
&lt;br&gt;Resolution: Fixed
&lt;br&gt;Priority: 2
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Stefan Manegold (stmane)
&lt;br&gt;Assigned to: Peter Boncz (boncz)
&lt;br&gt;Summary: PF/alg: some error messages differ from PF/mps
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;With the Algebra back-end, some error messages seem to differ from the milprint_summer back-end.
&lt;br&gt;&lt;br&gt;In case this is intended, we should (must) approved the Algebra-specific output
&lt;br&gt;(as I already did with
&lt;br&gt;tests/BugDay_2005-12-19_0.9.3/Tests/tag_name_validation.SF-1221984.stable.err{,.Algebra}
&lt;br&gt;tests/BugDay_2005-12-19_0.9.3/Tests/zero-or-one_merged-union.SF-1221336.stable.err{,.Algebra}
&lt;br&gt;).
&lt;br&gt;Otherwise, we should (must) fix the error messages.
&lt;br&gt;&lt;br&gt;Examples:
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsG103/GNU.64.64.d-Fedora8/tests_i18n/bad-001.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsG103/GNU.64.64.d-Fedora8/tests_i18n/bad-001.err.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsG103/GNU.64.64.d-Fedora8/tests_XQuery/matches02.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsG103/GNU.64.64.d-Fedora8/tests_XQuery/matches02.err.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsG103/GNU.64.64.d-Fedora8/tests_XQuery/matches01.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsG103/GNU.64.64.d-Fedora8/tests_XQuery/matches01.err.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsG103/GNU.64.64.d-Fedora8/tests_XQuery/attr_err.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsG103/GNU.64.64.d-Fedora8/tests_XQuery/attr_err.err.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsG103/GNU.64.64.d-Fedora8/tests_XQuery/div.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsG103/GNU.64.64.d-Fedora8/tests_XQuery/div.err.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsG103/GNU.64.64.d-Fedora8/tests_XQuery/cast2.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsG103/GNU.64.64.d-Fedora8/tests_XQuery/cast2.err.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsG103/GNU.64.64.d-Fedora8/tests_W3C_use_cases_XQUF_R/Q4.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsG103/GNU.64.64.d-Fedora8/tests_W3C_use_cases_XQUF_R/Q4.out.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsG103/GNU.64.64.d-Fedora8/tests_BugsViaSourgeforce/invisible_error_messages.SF-1409122.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsG103/GNU.64.64.d-Fedora8/tests_BugsViaSourgeforce/invisible_error_messages.SF-1409122.err.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Sjoerd Mullender (sjoerd)
&lt;br&gt;Date: 2009-11-17 10:11
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;I now have a patch ready for the problem I identified in my last comment. 
&lt;br&gt;It's too late for the release build I'm doing now, so if this patch proofs
&lt;br&gt;to be good, it'll come in the next release.
&lt;br&gt;The error message I now get contains the complete invalid character, not
&lt;br&gt;just the first byte of its UTF-8 encoding.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Sjoerd Mullender (sjoerd)
&lt;br&gt;Date: 2009-11-17 09:31
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Actually, I think this does show a (small) problem in the compiler: when
&lt;br&gt;confronted with a multi-byte character that it doesn't expect, it only
&lt;br&gt;prints the first byte. &amp;nbsp;The compiler should treat the document as a
&lt;br&gt;sequence of Unicode code point, not as a sequence of bytes.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-16 23:38
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Thanks.
&lt;br&gt;I approved the Linux-specific error message.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Peter Boncz (boncz)
&lt;br&gt;Date: 2009-11-16 23:23
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Stefan, I'd say this seems to have to do with different locales on
&lt;br&gt;different test machines.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-14 22:37
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;The issues is not gone, yet.
&lt;br&gt;The question is still, why the same query triggers different error
&lt;br&gt;messages on different systems, and/or whether this matters or whether we
&lt;br&gt;just accept the differences as given.
&lt;br&gt;&lt;br&gt;We seems to get either
&lt;br&gt;&amp;quot;
&lt;br&gt;ERROR = !parse error: syntax error, unexpected invalid_character on line
&lt;br&gt;5, column 19 (next token is `�')
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; !parse error: XQuery parsing failed
&lt;br&gt;&amp;quot;
&lt;br&gt;or simply
&lt;br&gt;&amp;quot;
&lt;br&gt;ERROR = ! &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;!parse error: XQuery parsing failed
&lt;br&gt;&amp;quot;
&lt;br&gt;&lt;br&gt;cf.
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_i18n/bad-001.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_i18n/bad-001.err.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsg103/GNU.64.64.d.1-Fedora10/tests_i18n/bad-001.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsg103/GNU.64.64.d.1-Fedora10/tests_i18n/bad-001.err.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Peter Boncz (boncz)
&lt;br&gt;Date: 2009-11-12 10:37
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;after my latest pass over the web, such issues should be gone
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-02-14 19:20
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;for this one, the error message appears to be identical (now) with ALG &amp;
&lt;br&gt;MPS, but differs from what it used to be, giving less information than
&lt;br&gt;before:
&lt;br&gt;&lt;br&gt;ALG:
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.32.32.d.1-Debian4.0/tests_i18n/bad-001.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.32.32.d.1-Debian4.0/tests_i18n/bad-001.err.00.html&lt;/a&gt;&lt;br&gt;MPS:
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsg103/GNU.32.32.d.1-Debian4.0/tests_i18n/bad-001.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsg103/GNU.32.32.d.1-Debian4.0/tests_i18n/bad-001.err.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-02-14 18:41
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;For the records:
&lt;br&gt;&lt;br&gt;Only one seems to remain:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora8/tests_XQuery/div.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora8/tests_XQuery/div.err.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Lefteris Sidirourgos (lsidir)
&lt;br&gt;Date: 2008-06-12 14:34
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=1856546
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;Lower the priority since the remaining two different error messages are
&lt;br&gt;not important
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Lefteris Sidirourgos (lsidir)
&lt;br&gt;Date: 2008-06-09 15:11
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=1856546
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;The following tests are now producing the correct error msg:
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsG103/GNU.64.64.d-Fedora8/tests_XQuery/matches02.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsG103/GNU.64.64.d-Fedora8/tests_XQuery/matches02.err.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsG103/GNU.64.64.d-Fedora8/tests_XQuery/matches01.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsG103/GNU.64.64.d-Fedora8/tests_XQuery/matches01.err.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2008-06-03 13:43
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=572415
&lt;br&gt;Originator: YES
&lt;br&gt;&lt;br&gt;Still differing:
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsG103/GNU.64.64.d-Fedora8/tests_i18n/bad-001.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsG103/GNU.64.64.d-Fedora8/tests_i18n/bad-001.err.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsG103/GNU.64.64.d-Fedora8/tests_XQuery/matches02.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsG103/GNU.64.64.d-Fedora8/tests_XQuery/matches02.err.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsG103/GNU.64.64.d-Fedora8/tests_XQuery/matches01.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsG103/GNU.64.64.d-Fedora8/tests_XQuery/matches01.err.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsG103/GNU.64.64.d-Fedora8/tests_XQuery/div.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsG103/GNU.64.64.d-Fedora8/tests_XQuery/div.err.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2008-06-03 11:33
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=572415
&lt;br&gt;Originator: YES
&lt;br&gt;&lt;br&gt;With the updated error message of invisible_error_messages.SF-
&lt;br&gt;1409122.stable.err, the MPS test now fails
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.32.d-Fedora8/tests_BugsViaSourgeforce/invisible_error_messages.SF-1409122.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.32.d-Fedora8/tests_BugsViaSourgeforce/invisible_error_messages.SF-1409122.err.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Jan Rittinger (tsheyar)
&lt;br&gt;Date: 2008-06-02 15:57
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Logged In: YES 
&lt;br&gt;user_id=993208
&lt;br&gt;Originator: NO
&lt;br&gt;&lt;br&gt;Fixed attr_err.err, cast2.err, Q4.out, and invisible_error_messages.SF-
&lt;br&gt;1409122.err.
&lt;br&gt;&lt;br&gt;Still remaining:
&lt;br&gt;bad-001.err (could it be that mclient has problems with the characters?)
&lt;br&gt;matches (CATCH is missing in the code generation)
&lt;br&gt;div (check for denominator in milgen is missing)
&lt;br&gt;&lt;br&gt;Re-assigned to Lefteris as he can fix the MIL specific problems (and he
&lt;br&gt;started fn:matches).
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=1981735&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=1981735&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26386533&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-1981735---PF-alg%3A-some-error-messages-differ-from-PF-mps-tp26386533p26386533.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26386500</id>
	<title>[ monetdb-Bugs-2893875 ] PF: 82 tests fail on Auf2009_NFI/Nov2009 but work on Aug2009</title>
	<published>2009-11-17T01:08:36Z</published>
	<updated>2009-11-17T01:08:36Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #2893875, was opened at 2009-11-07 17:19
&lt;br&gt;Message generated for change (Comment added) made by stmane
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2893875&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2893875&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: PF/tests
&lt;br&gt;Group: Pathfinder &amp;quot;stable&amp;quot;
&lt;br&gt;Status: Open
&lt;br&gt;Resolution: None
&lt;br&gt;Priority: 9
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Stefan Manegold (stmane)
&lt;br&gt;Assigned to: Stefan Manegold (stmane)
&lt;br&gt;Summary: PF: 82 tests fail on Auf2009_NFI/Nov2009 but work on Aug2009
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;The following 82 tests work(ed) fine with the Aug2009 branch,
&lt;br&gt;but appear to fail with the Aug2009 branch,
&lt;br&gt;and hence most probaly also with the Nov2009 branch
&lt;br&gt;(which is currently even more instable wrt. testing for yet undiscovered reasons):
&lt;br&gt;&lt;br&gt;benchmarks/MBench/qa05
&lt;br&gt;benchmarks/MBench/
&lt;br&gt;benchmarks/XBench/DC/MD/q19
&lt;br&gt;benchmarks/XBench/DC/MD/
&lt;br&gt;modules/pftijah/procs
&lt;br&gt;modules/pftijah/colltest1
&lt;br&gt;modules/pftijah/colltest2
&lt;br&gt;modules/pftijah/
&lt;br&gt;runtime/xrpc/admin/add_del_doc_noxrpc
&lt;br&gt;runtime/xrpc/admin/backup_restore_noxrpc
&lt;br&gt;runtime/xrpc/admin/
&lt;br&gt;tests/BugTracker/treat_as.SF-1586454
&lt;br&gt;tests/BugTracker/insert_multiple.SF-1590580
&lt;br&gt;tests/BugTracker/inserting_multiple_elements.SF-1590583
&lt;br&gt;tests/BugTracker/insert_into_transient.SF-1626208
&lt;br&gt;tests/BugTracker/clear_attrs_on_delete.SF-1612739
&lt;br&gt;tests/BugTracker/clear_attrs_on_delete.SF-1612739-b
&lt;br&gt;tests/BugTracker/clear_attrs_on_delete.SF-1612739-c
&lt;br&gt;tests/BugTracker/corrupt_after_update.SF-1706640
&lt;br&gt;tests/BugTracker/accessing_renamed_inserted_deleted_node.SF-1718622-1718635-1718709
&lt;br&gt;tests/BugTracker/insert_large_doc.SF-1726954
&lt;br&gt;tests/BugTracker/replace-corrupts.SF-1758902
&lt;br&gt;tests/BugTracker/swizzle-bug.SF-1760811
&lt;br&gt;tests/BugTracker/swizzle-bug2.SF-1763495
&lt;br&gt;tests/BugTracker/insert_attribute_gives_ERROR_in_merged_union.SF-1763575
&lt;br&gt;tests/BugTracker/immune_for_updates.SF-1766259
&lt;br&gt;tests/BugTracker/repeated-insert.SF-1814911
&lt;br&gt;tests/BugTracker/insert-new-page.SF-1854215
&lt;br&gt;tests/BugTracker/immune_for_updates.SF-1981852
&lt;br&gt;tests/BugTracker/hang_non_existing_doc.SF-1911209
&lt;br&gt;tests/BugTracker/function_parameter_without_type.SF-1898518
&lt;br&gt;tests/BugTracker/copybug.SF-2642003
&lt;br&gt;tests/BugTracker/update-with-timing.SF-2852928
&lt;br&gt;tests/BugTracker/compilation_error.SF-2860574_1
&lt;br&gt;tests/BugTracker/compilation_error.SF-2860574_2
&lt;br&gt;tests/BugsViaSourgeforce/invisible_error_messages.SF-1409122
&lt;br&gt;tests/BugsViaSourgeforce/
&lt;br&gt;tests/StandOff/update/basic_insert
&lt;br&gt;tests/StandOff/update/basic_test
&lt;br&gt;tests/StandOff/update/
&lt;br&gt;tests/Update/setattr-1
&lt;br&gt;tests/Update/insert-1
&lt;br&gt;tests/Update/insert-2
&lt;br&gt;tests/Update/symm
&lt;br&gt;tests/Update/replacevaluetest
&lt;br&gt;tests/Update/replacevaluetest2
&lt;br&gt;tests/Update/update
&lt;br&gt;tests/Update/illegal-insert
&lt;br&gt;tests/Update/illegal-delete
&lt;br&gt;tests/Update/insert_test_order
&lt;br&gt;tests/Update/insert_test_order_seq
&lt;br&gt;tests/Update/replacenode-corruption.SF-2153245
&lt;br&gt;tests/W3C_use_cases/XQUF/AddressBook/Q1x
&lt;br&gt;tests/W3C_use_cases/XQUF/AddressBook/check_docs
&lt;br&gt;tests/W3C_use_cases/XQUF/AddressBook/
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q1
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q2
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q3a1
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q3a2
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q4a
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q4ax
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q4b
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q4bx
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q4c
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q4cx
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q6
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q6x
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q1
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q2
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q3
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q4
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q4x
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q5b
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q6a
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q6b
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q7
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q7x
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q8
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q9
&lt;br&gt;tests/XQuery/is-before4
&lt;br&gt;tests/XQuery/union
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-17 10:08
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;forgot to finish:
&lt;br&gt;&lt;br&gt;&amp;quot;I already&amp;quot; ...
&lt;br&gt;... approved ALG-specific output of the insert-order test on Lefteris'
&lt;br&gt;advice and closed the bug report:
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=1964365&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=1964365&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-17 10:05
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Thanks, Peter!
&lt;br&gt;&lt;br&gt;Your checkins were &amp;quot;too late&amp;quot; for last night's (this morning's) testing,
&lt;br&gt;but local testing shows pathfinder/benchmarks/MBench/Tests/qa05.* and
&lt;br&gt;pathfinder/tests/Update/Tests/update.* working fine, again.
&lt;br&gt;&lt;br&gt;I already 
&lt;br&gt;&lt;br&gt;Can be closed once confirmed by nightly testing.
&lt;br&gt;(For now, system-specific problems are also documented in the TestWeb, and
&lt;br&gt;should be handled later; they're not considered crucial for the upcoming
&lt;br&gt;release.)
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Peter Boncz (boncz)
&lt;br&gt;Date: 2009-11-17 00:32
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;both problems are fixed now
&lt;br&gt;&lt;br&gt;I did spot in tests/Update/insert_test_order_seq
&lt;br&gt;another instance of differences accross all platforms.
&lt;br&gt;&lt;br&gt;The test is a little vauge, inserting a sequence of values; I am not sure
&lt;br&gt;what the XQUF semantics says about this. Is the order
&lt;br&gt;implementation-dependent? This this order might also be ok and the test
&lt;br&gt;could be approved. 
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Jan Rittinger (tsheyar)
&lt;br&gt;Date: 2009-11-16 18:42
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;In MBench/qa05 Peter's heuristic rewrite leads to an (unnecessary) cross
&lt;br&gt;product. (For all eNest nodes it applies pf:attribute.) I guess that might
&lt;br&gt;be the problem.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Sjoerd Mullender (sjoerd)
&lt;br&gt;Date: 2009-11-16 15:42
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;This is a show stopper.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-16 15:28
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Peter, 
&lt;br&gt;&lt;br&gt;the two &amp;quot;crucial&amp;quot; problems remaining (which both started on the Nov2009
&lt;br&gt;branch after propagations of NFI changes from the Aug2009_NFI branch to the
&lt;br&gt;Nov2009 branch) are
&lt;br&gt;&lt;br&gt;&lt;br&gt;timeout in
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/benchmarks_MBench/qa05.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/benchmarks_MBench/qa05.err.00.html&lt;/a&gt;&lt;br&gt;(since 2009.10.09)
&lt;br&gt;&lt;br&gt;&lt;br&gt;missing updates in
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_Update/update.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_Update/update.out.00.html&lt;/a&gt;&lt;br&gt;(since 2009.10.08)
&lt;br&gt;They might actually be missing, because the query parts of the update
&lt;br&gt;queries involving an attribute predicate yield an empty result.
&lt;br&gt;The missing updates are
&lt;br&gt;&lt;br&gt;for $elem in $testdoc/document/element[@attribute = 50]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return do rename exactly-one($elem) into &amp;quot;Element&amp;quot;
&lt;br&gt;&lt;br&gt;for $elem in $testdoc/document/element[@attribute = 10]
&lt;br&gt;&amp;nbsp; return (do insert &amp;lt;a/&amp;gt; as first into exactly-one($elem) treat as
&lt;br&gt;element(),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; do insert &amp;lt;b/&amp;gt; as first into exactly-one($elem) treat as element())
&lt;br&gt;&lt;br&gt;for $elem in $testdoc/document/element[@attribute = 20]
&lt;br&gt;&amp;nbsp; return (do insert &amp;lt;a/&amp;gt; as last into exactly-one($elem) treat as
&lt;br&gt;element(),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; do insert &amp;lt;b/&amp;gt; as last into exactly-one($elem) treat as element())
&lt;br&gt;&lt;br&gt;for $elem in $testdoc/document/element[@attribute = 30]
&lt;br&gt;&amp;nbsp; return (do insert &amp;lt;a/&amp;gt; before exactly-one($elem),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; do insert &amp;lt;b/&amp;gt; before exactly-one($elem))
&lt;br&gt;&lt;br&gt;for $elem in $testdoc/document/element[@attribute = 40]
&lt;br&gt;&amp;nbsp; return (do insert &amp;lt;a/&amp;gt; after exactly-one($elem),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; do insert &amp;lt;b/&amp;gt; after exactly-one($elem))
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-15 13:57
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;below the details what I did so far:
&lt;br&gt;&lt;br&gt;&amp;gt; - tests/BugTracker/empty_file.SF-2017862: SunOS specific version only!!
&lt;br&gt;approved.
&lt;br&gt;&amp;gt; - tests/BugTracker/XML_document_cache_broken.SF-1414720
&lt;br&gt;approved.
&lt;br&gt;&amp;gt; - tests/W3C_use_cases/XQ/NS/* (or remove tests!)
&lt;br&gt;disabled.
&lt;br&gt;&amp;gt; - tests/XQuery/{div.is-before4,union}
&lt;br&gt;div:
&lt;br&gt;approved MIL error messages iso. XQuery error message
&lt;br&gt;&lt;br&gt;is-before4, union:
&lt;br&gt;nothing, as I'm not sure, whether the new output is correct.
&lt;br&gt;Since the NFI change were propagated to the Nov2009 branch on Oct 7,
&lt;br&gt;these tests show again the output as it was before
&lt;br&gt;===================================================================
&lt;br&gt;2009/05/20 - tsheyar:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pathfinder/tests/XQuery/Tests/is-before4.stable.out,1.5.30.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pathfinder/tests/XQuery/Tests/union.stable.out,1.6.12.1
&lt;br&gt;-- Make the error message for missing documents more informative:
&lt;br&gt;&amp;nbsp; &amp;nbsp;Include the document name in the error message.
&lt;br&gt;&lt;br&gt;-- Adjust new error messages in the testweb.
&lt;br&gt;&lt;br&gt;-- Adjust stable output (for tests with a modified inter-document order).
&lt;br&gt;&lt;br&gt;-- Fix/Extend a cross product rewrite (for unreferenced inputs).
&lt;br&gt;&lt;br&gt;-- Simplify the 'missing document' error message in the algebra
&lt;br&gt;&amp;nbsp; &amp;nbsp;for constant document names (which is the default).
&lt;br&gt;===================================================================
&lt;br&gt;cf.,
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_XQuery/is-before4.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_XQuery/is-before4.out.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_XQuery/union.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_XQuery/union.out.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Peter and/or Jan R., could you please comment?
&lt;br&gt;&lt;br&gt;&amp;gt; -
&lt;br&gt;tests/BugDay_2005-12-19_0.9.3/attribute_after_non-attribute_content.SF-1351516
&lt;br&gt;disabled.
&lt;br&gt;&amp;gt; - tests/BugDay_2005-12-19_0.9.3/shred_doc_with_space.SF-1211372: windows
&lt;br&gt;only
&lt;br&gt;minor --- either approve or change access rights on Windows machine:
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/Int.64.32.d.1-Windows6.0/tests_BugDay_2005-12-19_0.9.3/shred_doc_with_space.SF-1211372.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/Int.64.32.d.1-Windows6.0/tests_BugDay_2005-12-19_0.9.3/shred_doc_with_space.SF-1211372.out.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/Int.64.64.d.1-Windows6.0/tests_BugDay_2005-12-19_0.9.3/shred_doc_with_space.SF-1211372.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/Int.64.64.d.1-Windows6.0/tests_BugDay_2005-12-19_0.9.3/shred_doc_with_space.SF-1211372.out.00.html&lt;/a&gt;&lt;br&gt;&amp;gt; - tests/clients/php_monetdb
&lt;br&gt;fixed.
&lt;br&gt;&amp;gt; - runtime/procs/approve
&lt;br&gt;approved.
&lt;br&gt;&amp;gt; - modules/pftijah/{load,sigs,procs}
&lt;br&gt;approved.
&lt;br&gt;&amp;gt; -
&lt;br&gt;tests/BugsViaSourgeforce/{invisible_error_messages.SF-1409122,ID.1766173}
&lt;br&gt;approved.
&lt;br&gt;&lt;br&gt;&amp;gt; (2) remove or disable the following tests, which seem incorrect or
&lt;br&gt;outdated:
&lt;br&gt;&amp;gt; - tests/BugTracker/xs_untypedAtomic.SF-1509806.mps
&lt;br&gt;disabled.
&lt;br&gt;&amp;gt; - tests/BugTracker/Zombie_document.SF-2009556
&lt;br&gt;Nothing yet; we get a timeout:
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/Zombie_document.SF-2009556.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/Zombie_document.SF-2009556.out.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/Zombie_document.SF-2009556.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/Zombie_document.SF-2009556.err.00.html&lt;/a&gt;&lt;br&gt;&amp;gt; - tests/BugTracker/function_parameter_without_type.SF-1898518
&lt;br&gt;approved.
&lt;br&gt;&amp;gt; - tests/BugTracker/fn-root_fn-id_on_attribute_nodes.SF-1
&lt;br&gt;disabled.
&lt;br&gt;&amp;gt; - tests/BugTracker/975028,non-existing_collection.SF-1991726
&lt;br&gt;approved.
&lt;br&gt;&amp;gt; - tests/BugTracker/port_busy.SF-1809586
&lt;br&gt;Nothing, yet; output might actually be OK / as expected:
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/port_busy.SF-1809586.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/port_busy.SF-1809586.out.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/port_busy.SF-1809586.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/port_busy.SF-1809586.err.00.html&lt;/a&gt;&lt;br&gt;&amp;gt; - tests/BugTracker/collection_management
&lt;br&gt;Nothing, yet; need to understand what's (supposed to be) going on:
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/collection_management.SF-1726599.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/collection_management.SF-1726599.out.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/collection_management.SF-1726599.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/collection_management.SF-1726599.err.00.html&lt;/a&gt;&lt;br&gt;&amp;gt; - tests/BugDay_2005-12-19_0.9.3/multiple_servers_2.SF-1385152
&lt;br&gt;fixed.
&lt;br&gt;&amp;gt; - runtime/smack
&lt;br&gt;Nothing, yet; smack00 test works fine for MIL, MAL, SQL, but never worked
&lt;br&gt;(timout: hangs &amp;quot;forever&amp;quot;) for XQuery
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/runtime/smack00.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/runtime/smack00.out.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/runtime/smack00.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/runtime/smack00.err.00.html&lt;/a&gt;&lt;br&gt;&amp;gt; - benchmarks/mbench/{qa02,qa06} are now only run for Darwin9.8.0
&lt;br&gt;G.32.32.d.1
&lt;br&gt;&amp;gt; -- should also set NOT_ALGEBRA for this platform
&lt;br&gt;these are (and have been) skipped with Algebra on all platforms.
&lt;br&gt;&lt;br&gt;&amp;gt; (3) ask Jennie to look at the following tests in runtime/xrpc/admin/:
&lt;br&gt;&amp;gt; - add_del_doc_norpc: approve?
&lt;br&gt;&amp;gt; - backup_restore_xrpc: empty, check this pls??
&lt;br&gt;Since 12.11., these now fail with
&lt;br&gt;&lt;br&gt;ERROR = !module import: error loading module from
&lt;br&gt;&lt;a href=&quot;http://$HOST:47966/admin/admin.xq&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://$HOST:47966/admin/admin.xq&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/runtime_xrpc_admin/add_del_doc_noxrpc.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/runtime_xrpc_admin/add_del_doc_noxrpc.err.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/runtime_xrpc_admin/backup_restore_noxrpc.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/runtime_xrpc_admin/backup_restore_noxrpc.err.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;gt; (4) ask Jan Flokstra to look at the following tests in
&lt;br&gt;modules/pftijah/:
&lt;br&gt;&amp;gt; - coltest1 hang
&lt;br&gt;&amp;gt; - test_lms-or: order
&lt;br&gt;&amp;gt; - test_lms_rmoverlap, test_select_start*: empty
&lt;br&gt;fixed by Sjoerd's backport of Hennigs fixes from the head to the Nov2009
&lt;br&gt;branch
&lt;br&gt;&lt;br&gt;&amp;gt; (5) adapt or disable these test scripts to work on windows:
&lt;br&gt;&amp;gt; - tests/BugDay_2005-12-19_0.9.3/file_locked_after_shredding.SF-1238352
&lt;br&gt;&amp;gt; (windows6 only) -
&lt;br&gt;&amp;gt; - tests/BugDay_2005-12-19_0.9.3/shredding_on_the_fly.SF-1377006: idem
&lt;br&gt;&amp;gt; - tests/BugTracker/predicate_selects_too_few_nodes.SF-1636588 - windows
&lt;br&gt;fails
&lt;br&gt;&amp;gt; to parse, because of Mtest substitution failure (for $v becomes for 4)
&lt;br&gt;fixed by Sjoerd.
&lt;br&gt;&lt;br&gt;&amp;gt; (6) ignore output of tests (possibly for certain platforms only), as
&lt;br&gt;these are
&lt;br&gt;&amp;gt; system limits related (too deep recursion):
&lt;br&gt;&amp;gt; - tests/BugTracker/crash_on_concatenated_query.SF-1730547 - for all
&lt;br&gt;systems
&lt;br&gt;&amp;gt; - tests/BugTracker/server-side_compilation_crash.SF-1607210 - for all
&lt;br&gt;systems
&lt;br&gt;&amp;gt; - tests/BugsViaSourgeforce/ID.1015172{a,b,c}: timeout on windows5
&lt;br&gt;(windows6
&lt;br&gt;&amp;gt; works)
&lt;br&gt;&amp;gt; - tests/XQuery/step_attr_nametest: Darwin9.8.0 G.32.32.d too deep
&lt;br&gt;recursion,
&lt;br&gt;&amp;gt; - tests/XQuery/typeswitch3 - too deep recursion on various systems..
&lt;br&gt;&amp;gt; - tests/BugDay_2005-11-09_0.9.3/xquery_crashtest.SF-1207048: pf
&lt;br&gt;recursion
&lt;br&gt;&amp;gt; check not triggered on Fedora10 G.32.32.d.1
&lt;br&gt;to be done ...
&lt;br&gt;&lt;br&gt;didn't get further than here, so far ...
&lt;br&gt;&lt;br&gt;Stefan
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Peter Boncz (boncz)
&lt;br&gt;Date: 2009-11-11 11:45
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Thanks. I looked into this and fixed a problem with XQuery updates that
&lt;br&gt;indeed was present. This will reduce the amount of problems, removing
&lt;br&gt;(almost) all of those tests that are XQuery updates from the list.
&lt;br&gt;&lt;br&gt;The update bug was caused by a later modification that succeeded my own
&lt;br&gt;check of the testweb that I performed before checking in the code. At that
&lt;br&gt;time, already, I found it very hard to work with the test web. Note, this
&lt;br&gt;is not a complaint to anyone in particular. However a matter of fact.
&lt;br&gt;Simply too many tests fail, such that one is forced to spend an hour just
&lt;br&gt;to compare the state of the testweb before and after a check-in, to detect
&lt;br&gt;which of the tests that fail were actually already failing before the
&lt;br&gt;check-in. Let alone analyze what is happening.
&lt;br&gt;&lt;br&gt;my suggestons are as follows:
&lt;br&gt;&lt;br&gt;(1) approve output:
&lt;br&gt;- tests/BugTracker/empty_file.SF-2017862: SunOS specific version only!!
&lt;br&gt;- tests/BugTracker/XML_document_cache_broken.SF-1414720
&lt;br&gt;- tests/W3C_use_cases/XQ/NS/* (or remove tests!)
&lt;br&gt;- tests/XQuery/{div.is-before4,union}
&lt;br&gt;-
&lt;br&gt;tests/BugDay_2005-12-19_0.9.3/attribute_after_non-attribute_content.SF-1351516
&lt;br&gt;- tests/BugDay_2005-12-19_0.9.3/shred_doc_with_space.SF-1211372: windows
&lt;br&gt;only
&lt;br&gt;- tests/clients/php_monetdb
&lt;br&gt;- runtime/procs/approve
&lt;br&gt;- modules/pftijah/{load,sigs,procs}
&lt;br&gt;-
&lt;br&gt;tests/BugsViaSourgeforce/{invisible_error_messages.SF-1409122,ID.1766173}
&lt;br&gt;&lt;br&gt;(2) remove or disable the following tests, which seem incorrect or
&lt;br&gt;outdated:
&lt;br&gt;- tests/BugTracker/xs_untypedAtomic.SF-1509806.mps
&lt;br&gt;- tests/BugTracker/Zombie_document.SF-2009556
&lt;br&gt;- tests/BugTracker/function_parameter_without_type.SF-1898518
&lt;br&gt;- tests/BugTracker/fn-root_fn-id_on_attribute_nodes.SF-1
&lt;br&gt;- tests/BugTracker/975028,non-existing_collection.SF-1991726
&lt;br&gt;- tests/BugTracker/port_busy.SF-1809586
&lt;br&gt;- tests/BugTracker/collection_management
&lt;br&gt;- tests/BugDay_2005-12-19_0.9.3/multiple_servers_2.SF-1385152
&lt;br&gt;- runtime/smack
&lt;br&gt;- benchmarks/mbench/{qa02,qa06} are now only run for Darwin9.8.0
&lt;br&gt;G.32.32.d.1 -- should also set NOT_ALGEBRA for this platform
&lt;br&gt;&lt;br&gt;(3) ask Jennie to look at the following tests in runtime/xrpc/admin/:
&lt;br&gt;- add_del_doc_norpc: approve?
&lt;br&gt;- backup_restore_xrpc: empty, check this pls??
&lt;br&gt;&lt;br&gt;(4) ask Jan Flokstra to look at the following tests in modules/pftijah/:
&lt;br&gt;- coltest1 hang
&lt;br&gt;- test_lms-or: order
&lt;br&gt;- test_lms_rmoverlap, test_select_start*: empty
&lt;br&gt;&lt;br&gt;(5) adapt or disable these test scripts to work on windows:
&lt;br&gt;- tests/BugDay_2005-12-19_0.9.3/file_locked_after_shredding.SF-1238352
&lt;br&gt;(windows6 only) -
&lt;br&gt;- tests/BugDay_2005-12-19_0.9.3/shredding_on_the_fly.SF-1377006: idem
&lt;br&gt;- tests/BugTracker/predicate_selects_too_few_nodes.SF-1636588 - windows
&lt;br&gt;fails to parse, because of Mtest substitution failure (for $v becomes for
&lt;br&gt;4)
&lt;br&gt;&lt;br&gt;(6) ignore output of tests (possibly for certain platforms only), as these
&lt;br&gt;are system limits related (too deep recursion):
&lt;br&gt;- tests/BugTracker/crash_on_concatenated_query.SF-1730547 - for all
&lt;br&gt;systems
&lt;br&gt;- tests/BugTracker/server-side_compilation_crash.SF-1607210 - for all
&lt;br&gt;systems
&lt;br&gt;- tests/BugsViaSourgeforce/ID.1015172{a,b,c}: timeout on windows5
&lt;br&gt;(windows6 works)
&lt;br&gt;- tests/XQuery/step_attr_nametest: Darwin9.8.0 G.32.32.d too deep
&lt;br&gt;recursion,
&lt;br&gt;- tests/XQuery/typeswitch3 - too deep recursion on various systems..
&lt;br&gt;- tests/BugDay_2005-11-09_0.9.3/xquery_crashtest.SF-1207048: pf recursion
&lt;br&gt;check not triggered on Fedora10 G.32.32.d.1
&lt;br&gt;&lt;br&gt;&lt;br&gt;what will be left, then
&lt;br&gt;=======================
&lt;br&gt;&lt;br&gt;The only problems that will be left after following the above are in fact
&lt;br&gt;problems that occur only on a single system.
&lt;br&gt;Rather than indicating a platform deficiency, however, it is still very
&lt;br&gt;likely that these differences indicate the
&lt;br&gt;precense of a bug, that is only triggered under certain circumstances that
&lt;br&gt;happen to hold on that platform.
&lt;br&gt;&lt;br&gt;so these are interesting to look at; all of them were already present in
&lt;br&gt;the last Stable
&lt;br&gt;&lt;br&gt;Fedora10.G.64.64.d.0 - merge_union2: non dense head
&lt;br&gt;- tests/XQuery/merge_union2
&lt;br&gt;Fedora10 G.64.64.d.0 - crash
&lt;br&gt;- tests/XQuery/step_attribute8,
&lt;br&gt;&lt;br&gt;Fedora10 I.64.64.d.1: crash
&lt;br&gt;- tests/XQuery/orderby6
&lt;br&gt;&lt;br&gt;Fedora10 G.64.64.s.1 - crash
&lt;br&gt;- tests/XQuery/step_descendant-or-self3
&lt;br&gt;&lt;br&gt;Fedora10.G.32.32.d.1 &amp;nbsp;-- segmentation fault
&lt;br&gt;- xbench/tc/md/q10
&lt;br&gt;- tests/W3C_use_cases/XQ/XMP/Q07
&lt;br&gt;&lt;br&gt;windows - !ERROR: couldn't read name (1000000152_qn_uri) 1
&lt;br&gt;- tests/BugTracker/32_docs.SF-1730617:
&lt;br&gt;&lt;br&gt;sunos5 g32.32.d.1 - segmentation fault
&lt;br&gt;- mbench/{qs28,31}
&lt;br&gt;- tests/XQuery/{step_duplicates,transient_upward_steps}
&lt;br&gt;- benchmarks/XPathMark/{Q27,28}
&lt;br&gt;- benchmarks/XPath/q13
&lt;br&gt;- benchmarks/XMark/q04
&lt;br&gt;- tests/XQuery/step_attr_nametest (also on Darwin9.8.0 G.32.32.d.1)
&lt;br&gt;sunos5 g32.32.d.1 - 4 times inserted nil due to errors at tuples 0, 1, 2,
&lt;br&gt;3
&lt;br&gt;- tests/BugTracker/child-steps-and-replace.SF-2716723:
&lt;br&gt;&lt;br&gt;Debian4.0 G.32.32.d.1 - !fatal error: columns referenced in trace message
&lt;br&gt;operator not found
&lt;br&gt;- tests/BugTracker/fn-trace.SF-2805513 (also Gentoo2.0.1 G.64.64.d.1)
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-08 18:13
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;The same test that fail with Aug2009_NFI, while working with Aug2009,
&lt;br&gt;indeed also fail with Nov2009.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-08 16:50
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;For completeness:
&lt;br&gt;&lt;br&gt;I checked this on my 64-bit Fedora 10 Linux desktop, using a &amp;quot;testing&amp;quot;
&lt;br&gt;build of MonetDB, i.e., configured with --disbale-debug --enable-optimize
&lt;br&gt;--enable-assert .
&lt;br&gt;&lt;br&gt;I ran Mtest.py (more precisely make check, respectively RunMtest in the
&lt;br&gt;build directory) seperately for the Aug2009 and the Aug2009_NFI brach
&lt;br&gt;(builds) of pathfinder, collected the console output in files, and run diff
&lt;br&gt;over those (as well as over the times.sql files that Mtest.py creates in
&lt;br&gt;its &amp;lt;TSTTRGBASE&amp;gt; directory.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2893875&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2893875&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26386500&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-2893875---PF%3A-82-tests-fail-on-Auf2009_NFI-Nov2009-but-work-on-Aug2009-tp26386500p26386500.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26386462</id>
	<title>[ monetdb-Bugs-2893875 ] PF: 82 tests fail on Auf2009_NFI/Nov2009 but work on Aug2009</title>
	<published>2009-11-17T01:05:24Z</published>
	<updated>2009-11-17T01:05:24Z</updated>
	<author>
		<name>SourceForge.net</name>
	</author>
	<content type="html">Bugs item #2893875, was opened at 2009-11-07 17:19
&lt;br&gt;Message generated for change (Comment added) made by stmane
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2893875&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2893875&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please note that this message will contain a full copy of the comment thread,
&lt;br&gt;including the initial issue submission, for this request,
&lt;br&gt;not just the latest update.
&lt;br&gt;Category: PF/tests
&lt;br&gt;Group: Pathfinder &amp;quot;stable&amp;quot;
&lt;br&gt;Status: Open
&lt;br&gt;Resolution: None
&lt;br&gt;Priority: 9
&lt;br&gt;Private: No
&lt;br&gt;Submitted By: Stefan Manegold (stmane)
&lt;br&gt;Assigned to: Stefan Manegold (stmane)
&lt;br&gt;Summary: PF: 82 tests fail on Auf2009_NFI/Nov2009 but work on Aug2009
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;The following 82 tests work(ed) fine with the Aug2009 branch,
&lt;br&gt;but appear to fail with the Aug2009 branch,
&lt;br&gt;and hence most probaly also with the Nov2009 branch
&lt;br&gt;(which is currently even more instable wrt. testing for yet undiscovered reasons):
&lt;br&gt;&lt;br&gt;benchmarks/MBench/qa05
&lt;br&gt;benchmarks/MBench/
&lt;br&gt;benchmarks/XBench/DC/MD/q19
&lt;br&gt;benchmarks/XBench/DC/MD/
&lt;br&gt;modules/pftijah/procs
&lt;br&gt;modules/pftijah/colltest1
&lt;br&gt;modules/pftijah/colltest2
&lt;br&gt;modules/pftijah/
&lt;br&gt;runtime/xrpc/admin/add_del_doc_noxrpc
&lt;br&gt;runtime/xrpc/admin/backup_restore_noxrpc
&lt;br&gt;runtime/xrpc/admin/
&lt;br&gt;tests/BugTracker/treat_as.SF-1586454
&lt;br&gt;tests/BugTracker/insert_multiple.SF-1590580
&lt;br&gt;tests/BugTracker/inserting_multiple_elements.SF-1590583
&lt;br&gt;tests/BugTracker/insert_into_transient.SF-1626208
&lt;br&gt;tests/BugTracker/clear_attrs_on_delete.SF-1612739
&lt;br&gt;tests/BugTracker/clear_attrs_on_delete.SF-1612739-b
&lt;br&gt;tests/BugTracker/clear_attrs_on_delete.SF-1612739-c
&lt;br&gt;tests/BugTracker/corrupt_after_update.SF-1706640
&lt;br&gt;tests/BugTracker/accessing_renamed_inserted_deleted_node.SF-1718622-1718635-1718709
&lt;br&gt;tests/BugTracker/insert_large_doc.SF-1726954
&lt;br&gt;tests/BugTracker/replace-corrupts.SF-1758902
&lt;br&gt;tests/BugTracker/swizzle-bug.SF-1760811
&lt;br&gt;tests/BugTracker/swizzle-bug2.SF-1763495
&lt;br&gt;tests/BugTracker/insert_attribute_gives_ERROR_in_merged_union.SF-1763575
&lt;br&gt;tests/BugTracker/immune_for_updates.SF-1766259
&lt;br&gt;tests/BugTracker/repeated-insert.SF-1814911
&lt;br&gt;tests/BugTracker/insert-new-page.SF-1854215
&lt;br&gt;tests/BugTracker/immune_for_updates.SF-1981852
&lt;br&gt;tests/BugTracker/hang_non_existing_doc.SF-1911209
&lt;br&gt;tests/BugTracker/function_parameter_without_type.SF-1898518
&lt;br&gt;tests/BugTracker/copybug.SF-2642003
&lt;br&gt;tests/BugTracker/update-with-timing.SF-2852928
&lt;br&gt;tests/BugTracker/compilation_error.SF-2860574_1
&lt;br&gt;tests/BugTracker/compilation_error.SF-2860574_2
&lt;br&gt;tests/BugsViaSourgeforce/invisible_error_messages.SF-1409122
&lt;br&gt;tests/BugsViaSourgeforce/
&lt;br&gt;tests/StandOff/update/basic_insert
&lt;br&gt;tests/StandOff/update/basic_test
&lt;br&gt;tests/StandOff/update/
&lt;br&gt;tests/Update/setattr-1
&lt;br&gt;tests/Update/insert-1
&lt;br&gt;tests/Update/insert-2
&lt;br&gt;tests/Update/symm
&lt;br&gt;tests/Update/replacevaluetest
&lt;br&gt;tests/Update/replacevaluetest2
&lt;br&gt;tests/Update/update
&lt;br&gt;tests/Update/illegal-insert
&lt;br&gt;tests/Update/illegal-delete
&lt;br&gt;tests/Update/insert_test_order
&lt;br&gt;tests/Update/insert_test_order_seq
&lt;br&gt;tests/Update/replacenode-corruption.SF-2153245
&lt;br&gt;tests/W3C_use_cases/XQUF/AddressBook/Q1x
&lt;br&gt;tests/W3C_use_cases/XQUF/AddressBook/check_docs
&lt;br&gt;tests/W3C_use_cases/XQUF/AddressBook/
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q1
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q2
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q3a1
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q3a2
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q4a
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q4ax
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q4b
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q4bx
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q4c
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q4cx
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q6
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/Q6x
&lt;br&gt;tests/W3C_use_cases/XQUF/Parts/
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q1
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q2
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q3
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q4
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q4x
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q5b
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q6a
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q6b
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q7
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q7x
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q8
&lt;br&gt;tests/W3C_use_cases/XQUF/R/Q9
&lt;br&gt;tests/XQuery/is-before4
&lt;br&gt;tests/XQuery/union
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-17 10:05
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Thanks, Peter!
&lt;br&gt;&lt;br&gt;Your checkins were &amp;quot;too late&amp;quot; for last night's (this morning's) testing,
&lt;br&gt;but local testing shows pathfinder/benchmarks/MBench/Tests/qa05.* and
&lt;br&gt;pathfinder/tests/Update/Tests/update.* working fine, again.
&lt;br&gt;&lt;br&gt;I already 
&lt;br&gt;&lt;br&gt;Can be closed once confirmed by nightly testing.
&lt;br&gt;(For now, system-specific problems are also documented in the TestWeb, and
&lt;br&gt;should be handled later; they're not considered crucial for the upcoming
&lt;br&gt;release.)
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Peter Boncz (boncz)
&lt;br&gt;Date: 2009-11-17 00:32
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;both problems are fixed now
&lt;br&gt;&lt;br&gt;I did spot in tests/Update/insert_test_order_seq
&lt;br&gt;another instance of differences accross all platforms.
&lt;br&gt;&lt;br&gt;The test is a little vauge, inserting a sequence of values; I am not sure
&lt;br&gt;what the XQUF semantics says about this. Is the order
&lt;br&gt;implementation-dependent? This this order might also be ok and the test
&lt;br&gt;could be approved. 
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Jan Rittinger (tsheyar)
&lt;br&gt;Date: 2009-11-16 18:42
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;In MBench/qa05 Peter's heuristic rewrite leads to an (unnecessary) cross
&lt;br&gt;product. (For all eNest nodes it applies pf:attribute.) I guess that might
&lt;br&gt;be the problem.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Sjoerd Mullender (sjoerd)
&lt;br&gt;Date: 2009-11-16 15:42
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;This is a show stopper.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-16 15:28
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Peter, 
&lt;br&gt;&lt;br&gt;the two &amp;quot;crucial&amp;quot; problems remaining (which both started on the Nov2009
&lt;br&gt;branch after propagations of NFI changes from the Aug2009_NFI branch to the
&lt;br&gt;Nov2009 branch) are
&lt;br&gt;&lt;br&gt;&lt;br&gt;timeout in
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/benchmarks_MBench/qa05.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/benchmarks_MBench/qa05.err.00.html&lt;/a&gt;&lt;br&gt;(since 2009.10.09)
&lt;br&gt;&lt;br&gt;&lt;br&gt;missing updates in
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_Update/update.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_Update/update.out.00.html&lt;/a&gt;&lt;br&gt;(since 2009.10.08)
&lt;br&gt;They might actually be missing, because the query parts of the update
&lt;br&gt;queries involving an attribute predicate yield an empty result.
&lt;br&gt;The missing updates are
&lt;br&gt;&lt;br&gt;for $elem in $testdoc/document/element[@attribute = 50]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return do rename exactly-one($elem) into &amp;quot;Element&amp;quot;
&lt;br&gt;&lt;br&gt;for $elem in $testdoc/document/element[@attribute = 10]
&lt;br&gt;&amp;nbsp; return (do insert &amp;lt;a/&amp;gt; as first into exactly-one($elem) treat as
&lt;br&gt;element(),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; do insert &amp;lt;b/&amp;gt; as first into exactly-one($elem) treat as element())
&lt;br&gt;&lt;br&gt;for $elem in $testdoc/document/element[@attribute = 20]
&lt;br&gt;&amp;nbsp; return (do insert &amp;lt;a/&amp;gt; as last into exactly-one($elem) treat as
&lt;br&gt;element(),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; do insert &amp;lt;b/&amp;gt; as last into exactly-one($elem) treat as element())
&lt;br&gt;&lt;br&gt;for $elem in $testdoc/document/element[@attribute = 30]
&lt;br&gt;&amp;nbsp; return (do insert &amp;lt;a/&amp;gt; before exactly-one($elem),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; do insert &amp;lt;b/&amp;gt; before exactly-one($elem))
&lt;br&gt;&lt;br&gt;for $elem in $testdoc/document/element[@attribute = 40]
&lt;br&gt;&amp;nbsp; return (do insert &amp;lt;a/&amp;gt; after exactly-one($elem),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; do insert &amp;lt;b/&amp;gt; after exactly-one($elem))
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-15 13:57
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;below the details what I did so far:
&lt;br&gt;&lt;br&gt;&amp;gt; - tests/BugTracker/empty_file.SF-2017862: SunOS specific version only!!
&lt;br&gt;approved.
&lt;br&gt;&amp;gt; - tests/BugTracker/XML_document_cache_broken.SF-1414720
&lt;br&gt;approved.
&lt;br&gt;&amp;gt; - tests/W3C_use_cases/XQ/NS/* (or remove tests!)
&lt;br&gt;disabled.
&lt;br&gt;&amp;gt; - tests/XQuery/{div.is-before4,union}
&lt;br&gt;div:
&lt;br&gt;approved MIL error messages iso. XQuery error message
&lt;br&gt;&lt;br&gt;is-before4, union:
&lt;br&gt;nothing, as I'm not sure, whether the new output is correct.
&lt;br&gt;Since the NFI change were propagated to the Nov2009 branch on Oct 7,
&lt;br&gt;these tests show again the output as it was before
&lt;br&gt;===================================================================
&lt;br&gt;2009/05/20 - tsheyar:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pathfinder/tests/XQuery/Tests/is-before4.stable.out,1.5.30.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pathfinder/tests/XQuery/Tests/union.stable.out,1.6.12.1
&lt;br&gt;-- Make the error message for missing documents more informative:
&lt;br&gt;&amp;nbsp; &amp;nbsp;Include the document name in the error message.
&lt;br&gt;&lt;br&gt;-- Adjust new error messages in the testweb.
&lt;br&gt;&lt;br&gt;-- Adjust stable output (for tests with a modified inter-document order).
&lt;br&gt;&lt;br&gt;-- Fix/Extend a cross product rewrite (for unreferenced inputs).
&lt;br&gt;&lt;br&gt;-- Simplify the 'missing document' error message in the algebra
&lt;br&gt;&amp;nbsp; &amp;nbsp;for constant document names (which is the default).
&lt;br&gt;===================================================================
&lt;br&gt;cf.,
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_XQuery/is-before4.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_XQuery/is-before4.out.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_XQuery/union.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_XQuery/union.out.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Peter and/or Jan R., could you please comment?
&lt;br&gt;&lt;br&gt;&amp;gt; -
&lt;br&gt;tests/BugDay_2005-12-19_0.9.3/attribute_after_non-attribute_content.SF-1351516
&lt;br&gt;disabled.
&lt;br&gt;&amp;gt; - tests/BugDay_2005-12-19_0.9.3/shred_doc_with_space.SF-1211372: windows
&lt;br&gt;only
&lt;br&gt;minor --- either approve or change access rights on Windows machine:
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/Int.64.32.d.1-Windows6.0/tests_BugDay_2005-12-19_0.9.3/shred_doc_with_space.SF-1211372.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/Int.64.32.d.1-Windows6.0/tests_BugDay_2005-12-19_0.9.3/shred_doc_with_space.SF-1211372.out.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/Int.64.64.d.1-Windows6.0/tests_BugDay_2005-12-19_0.9.3/shred_doc_with_space.SF-1211372.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/Int.64.64.d.1-Windows6.0/tests_BugDay_2005-12-19_0.9.3/shred_doc_with_space.SF-1211372.out.00.html&lt;/a&gt;&lt;br&gt;&amp;gt; - tests/clients/php_monetdb
&lt;br&gt;fixed.
&lt;br&gt;&amp;gt; - runtime/procs/approve
&lt;br&gt;approved.
&lt;br&gt;&amp;gt; - modules/pftijah/{load,sigs,procs}
&lt;br&gt;approved.
&lt;br&gt;&amp;gt; -
&lt;br&gt;tests/BugsViaSourgeforce/{invisible_error_messages.SF-1409122,ID.1766173}
&lt;br&gt;approved.
&lt;br&gt;&lt;br&gt;&amp;gt; (2) remove or disable the following tests, which seem incorrect or
&lt;br&gt;outdated:
&lt;br&gt;&amp;gt; - tests/BugTracker/xs_untypedAtomic.SF-1509806.mps
&lt;br&gt;disabled.
&lt;br&gt;&amp;gt; - tests/BugTracker/Zombie_document.SF-2009556
&lt;br&gt;Nothing yet; we get a timeout:
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/Zombie_document.SF-2009556.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/Zombie_document.SF-2009556.out.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/Zombie_document.SF-2009556.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/Zombie_document.SF-2009556.err.00.html&lt;/a&gt;&lt;br&gt;&amp;gt; - tests/BugTracker/function_parameter_without_type.SF-1898518
&lt;br&gt;approved.
&lt;br&gt;&amp;gt; - tests/BugTracker/fn-root_fn-id_on_attribute_nodes.SF-1
&lt;br&gt;disabled.
&lt;br&gt;&amp;gt; - tests/BugTracker/975028,non-existing_collection.SF-1991726
&lt;br&gt;approved.
&lt;br&gt;&amp;gt; - tests/BugTracker/port_busy.SF-1809586
&lt;br&gt;Nothing, yet; output might actually be OK / as expected:
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/port_busy.SF-1809586.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/port_busy.SF-1809586.out.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/port_busy.SF-1809586.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/port_busy.SF-1809586.err.00.html&lt;/a&gt;&lt;br&gt;&amp;gt; - tests/BugTracker/collection_management
&lt;br&gt;Nothing, yet; need to understand what's (supposed to be) going on:
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/collection_management.SF-1726599.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/collection_management.SF-1726599.out.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/collection_management.SF-1726599.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/tests_BugTracker/collection_management.SF-1726599.err.00.html&lt;/a&gt;&lt;br&gt;&amp;gt; - tests/BugDay_2005-12-19_0.9.3/multiple_servers_2.SF-1385152
&lt;br&gt;fixed.
&lt;br&gt;&amp;gt; - runtime/smack
&lt;br&gt;Nothing, yet; smack00 test works fine for MIL, MAL, SQL, but never worked
&lt;br&gt;(timout: hangs &amp;quot;forever&amp;quot;) for XQuery
&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/runtime/smack00.out.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/runtime/smack00.out.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/runtime/smack00.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/runtime/smack00.err.00.html&lt;/a&gt;&lt;br&gt;&amp;gt; - benchmarks/mbench/{qa02,qa06} are now only run for Darwin9.8.0
&lt;br&gt;G.32.32.d.1
&lt;br&gt;&amp;gt; -- should also set NOT_ALGEBRA for this platform
&lt;br&gt;these are (and have been) skipped with Algebra on all platforms.
&lt;br&gt;&lt;br&gt;&amp;gt; (3) ask Jennie to look at the following tests in runtime/xrpc/admin/:
&lt;br&gt;&amp;gt; - add_del_doc_norpc: approve?
&lt;br&gt;&amp;gt; - backup_restore_xrpc: empty, check this pls??
&lt;br&gt;Since 12.11., these now fail with
&lt;br&gt;&lt;br&gt;ERROR = !module import: error loading module from
&lt;br&gt;&lt;a href=&quot;http://$HOST:47966/admin/admin.xq&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://$HOST:47966/admin/admin.xq&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/runtime_xrpc_admin/add_del_doc_noxrpc.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/runtime_xrpc_admin/add_del_doc_noxrpc.err.00.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/runtime_xrpc_admin/backup_restore_noxrpc.err.00.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTests103/GNU.64.64.d.1-Fedora10/runtime_xrpc_admin/backup_restore_noxrpc.err.00.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;gt; (4) ask Jan Flokstra to look at the following tests in
&lt;br&gt;modules/pftijah/:
&lt;br&gt;&amp;gt; - coltest1 hang
&lt;br&gt;&amp;gt; - test_lms-or: order
&lt;br&gt;&amp;gt; - test_lms_rmoverlap, test_select_start*: empty
&lt;br&gt;fixed by Sjoerd's backport of Hennigs fixes from the head to the Nov2009
&lt;br&gt;branch
&lt;br&gt;&lt;br&gt;&amp;gt; (5) adapt or disable these test scripts to work on windows:
&lt;br&gt;&amp;gt; - tests/BugDay_2005-12-19_0.9.3/file_locked_after_shredding.SF-1238352
&lt;br&gt;&amp;gt; (windows6 only) -
&lt;br&gt;&amp;gt; - tests/BugDay_2005-12-19_0.9.3/shredding_on_the_fly.SF-1377006: idem
&lt;br&gt;&amp;gt; - tests/BugTracker/predicate_selects_too_few_nodes.SF-1636588 - windows
&lt;br&gt;fails
&lt;br&gt;&amp;gt; to parse, because of Mtest substitution failure (for $v becomes for 4)
&lt;br&gt;fixed by Sjoerd.
&lt;br&gt;&lt;br&gt;&amp;gt; (6) ignore output of tests (possibly for certain platforms only), as
&lt;br&gt;these are
&lt;br&gt;&amp;gt; system limits related (too deep recursion):
&lt;br&gt;&amp;gt; - tests/BugTracker/crash_on_concatenated_query.SF-1730547 - for all
&lt;br&gt;systems
&lt;br&gt;&amp;gt; - tests/BugTracker/server-side_compilation_crash.SF-1607210 - for all
&lt;br&gt;systems
&lt;br&gt;&amp;gt; - tests/BugsViaSourgeforce/ID.1015172{a,b,c}: timeout on windows5
&lt;br&gt;(windows6
&lt;br&gt;&amp;gt; works)
&lt;br&gt;&amp;gt; - tests/XQuery/step_attr_nametest: Darwin9.8.0 G.32.32.d too deep
&lt;br&gt;recursion,
&lt;br&gt;&amp;gt; - tests/XQuery/typeswitch3 - too deep recursion on various systems..
&lt;br&gt;&amp;gt; - tests/BugDay_2005-11-09_0.9.3/xquery_crashtest.SF-1207048: pf
&lt;br&gt;recursion
&lt;br&gt;&amp;gt; check not triggered on Fedora10 G.32.32.d.1
&lt;br&gt;to be done ...
&lt;br&gt;&lt;br&gt;didn't get further than here, so far ...
&lt;br&gt;&lt;br&gt;Stefan
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Peter Boncz (boncz)
&lt;br&gt;Date: 2009-11-11 11:45
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Thanks. I looked into this and fixed a problem with XQuery updates that
&lt;br&gt;indeed was present. This will reduce the amount of problems, removing
&lt;br&gt;(almost) all of those tests that are XQuery updates from the list.
&lt;br&gt;&lt;br&gt;The update bug was caused by a later modification that succeeded my own
&lt;br&gt;check of the testweb that I performed before checking in the code. At that
&lt;br&gt;time, already, I found it very hard to work with the test web. Note, this
&lt;br&gt;is not a complaint to anyone in particular. However a matter of fact.
&lt;br&gt;Simply too many tests fail, such that one is forced to spend an hour just
&lt;br&gt;to compare the state of the testweb before and after a check-in, to detect
&lt;br&gt;which of the tests that fail were actually already failing before the
&lt;br&gt;check-in. Let alone analyze what is happening.
&lt;br&gt;&lt;br&gt;my suggestons are as follows:
&lt;br&gt;&lt;br&gt;(1) approve output:
&lt;br&gt;- tests/BugTracker/empty_file.SF-2017862: SunOS specific version only!!
&lt;br&gt;- tests/BugTracker/XML_document_cache_broken.SF-1414720
&lt;br&gt;- tests/W3C_use_cases/XQ/NS/* (or remove tests!)
&lt;br&gt;- tests/XQuery/{div.is-before4,union}
&lt;br&gt;-
&lt;br&gt;tests/BugDay_2005-12-19_0.9.3/attribute_after_non-attribute_content.SF-1351516
&lt;br&gt;- tests/BugDay_2005-12-19_0.9.3/shred_doc_with_space.SF-1211372: windows
&lt;br&gt;only
&lt;br&gt;- tests/clients/php_monetdb
&lt;br&gt;- runtime/procs/approve
&lt;br&gt;- modules/pftijah/{load,sigs,procs}
&lt;br&gt;-
&lt;br&gt;tests/BugsViaSourgeforce/{invisible_error_messages.SF-1409122,ID.1766173}
&lt;br&gt;&lt;br&gt;(2) remove or disable the following tests, which seem incorrect or
&lt;br&gt;outdated:
&lt;br&gt;- tests/BugTracker/xs_untypedAtomic.SF-1509806.mps
&lt;br&gt;- tests/BugTracker/Zombie_document.SF-2009556
&lt;br&gt;- tests/BugTracker/function_parameter_without_type.SF-1898518
&lt;br&gt;- tests/BugTracker/fn-root_fn-id_on_attribute_nodes.SF-1
&lt;br&gt;- tests/BugTracker/975028,non-existing_collection.SF-1991726
&lt;br&gt;- tests/BugTracker/port_busy.SF-1809586
&lt;br&gt;- tests/BugTracker/collection_management
&lt;br&gt;- tests/BugDay_2005-12-19_0.9.3/multiple_servers_2.SF-1385152
&lt;br&gt;- runtime/smack
&lt;br&gt;- benchmarks/mbench/{qa02,qa06} are now only run for Darwin9.8.0
&lt;br&gt;G.32.32.d.1 -- should also set NOT_ALGEBRA for this platform
&lt;br&gt;&lt;br&gt;(3) ask Jennie to look at the following tests in runtime/xrpc/admin/:
&lt;br&gt;- add_del_doc_norpc: approve?
&lt;br&gt;- backup_restore_xrpc: empty, check this pls??
&lt;br&gt;&lt;br&gt;(4) ask Jan Flokstra to look at the following tests in modules/pftijah/:
&lt;br&gt;- coltest1 hang
&lt;br&gt;- test_lms-or: order
&lt;br&gt;- test_lms_rmoverlap, test_select_start*: empty
&lt;br&gt;&lt;br&gt;(5) adapt or disable these test scripts to work on windows:
&lt;br&gt;- tests/BugDay_2005-12-19_0.9.3/file_locked_after_shredding.SF-1238352
&lt;br&gt;(windows6 only) -
&lt;br&gt;- tests/BugDay_2005-12-19_0.9.3/shredding_on_the_fly.SF-1377006: idem
&lt;br&gt;- tests/BugTracker/predicate_selects_too_few_nodes.SF-1636588 - windows
&lt;br&gt;fails to parse, because of Mtest substitution failure (for $v becomes for
&lt;br&gt;4)
&lt;br&gt;&lt;br&gt;(6) ignore output of tests (possibly for certain platforms only), as these
&lt;br&gt;are system limits related (too deep recursion):
&lt;br&gt;- tests/BugTracker/crash_on_concatenated_query.SF-1730547 - for all
&lt;br&gt;systems
&lt;br&gt;- tests/BugTracker/server-side_compilation_crash.SF-1607210 - for all
&lt;br&gt;systems
&lt;br&gt;- tests/BugsViaSourgeforce/ID.1015172{a,b,c}: timeout on windows5
&lt;br&gt;(windows6 works)
&lt;br&gt;- tests/XQuery/step_attr_nametest: Darwin9.8.0 G.32.32.d too deep
&lt;br&gt;recursion,
&lt;br&gt;- tests/XQuery/typeswitch3 - too deep recursion on various systems..
&lt;br&gt;- tests/BugDay_2005-11-09_0.9.3/xquery_crashtest.SF-1207048: pf recursion
&lt;br&gt;check not triggered on Fedora10 G.32.32.d.1
&lt;br&gt;&lt;br&gt;&lt;br&gt;what will be left, then
&lt;br&gt;=======================
&lt;br&gt;&lt;br&gt;The only problems that will be left after following the above are in fact
&lt;br&gt;problems that occur only on a single system.
&lt;br&gt;Rather than indicating a platform deficiency, however, it is still very
&lt;br&gt;likely that these differences indicate the
&lt;br&gt;precense of a bug, that is only triggered under certain circumstances that
&lt;br&gt;happen to hold on that platform.
&lt;br&gt;&lt;br&gt;so these are interesting to look at; all of them were already present in
&lt;br&gt;the last Stable
&lt;br&gt;&lt;br&gt;Fedora10.G.64.64.d.0 - merge_union2: non dense head
&lt;br&gt;- tests/XQuery/merge_union2
&lt;br&gt;Fedora10 G.64.64.d.0 - crash
&lt;br&gt;- tests/XQuery/step_attribute8,
&lt;br&gt;&lt;br&gt;Fedora10 I.64.64.d.1: crash
&lt;br&gt;- tests/XQuery/orderby6
&lt;br&gt;&lt;br&gt;Fedora10 G.64.64.s.1 - crash
&lt;br&gt;- tests/XQuery/step_descendant-or-self3
&lt;br&gt;&lt;br&gt;Fedora10.G.32.32.d.1 &amp;nbsp;-- segmentation fault
&lt;br&gt;- xbench/tc/md/q10
&lt;br&gt;- tests/W3C_use_cases/XQ/XMP/Q07
&lt;br&gt;&lt;br&gt;windows - !ERROR: couldn't read name (1000000152_qn_uri) 1
&lt;br&gt;- tests/BugTracker/32_docs.SF-1730617:
&lt;br&gt;&lt;br&gt;sunos5 g32.32.d.1 - segmentation fault
&lt;br&gt;- mbench/{qs28,31}
&lt;br&gt;- tests/XQuery/{step_duplicates,transient_upward_steps}
&lt;br&gt;- benchmarks/XPathMark/{Q27,28}
&lt;br&gt;- benchmarks/XPath/q13
&lt;br&gt;- benchmarks/XMark/q04
&lt;br&gt;- tests/XQuery/step_attr_nametest (also on Darwin9.8.0 G.32.32.d.1)
&lt;br&gt;sunos5 g32.32.d.1 - 4 times inserted nil due to errors at tuples 0, 1, 2,
&lt;br&gt;3
&lt;br&gt;- tests/BugTracker/child-steps-and-replace.SF-2716723:
&lt;br&gt;&lt;br&gt;Debian4.0 G.32.32.d.1 - !fatal error: columns referenced in trace message
&lt;br&gt;operator not found
&lt;br&gt;- tests/BugTracker/fn-trace.SF-2805513 (also Gentoo2.0.1 G.64.64.d.1)
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-08 18:13
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;The same test that fail with Aug2009_NFI, while working with Aug2009,
&lt;br&gt;indeed also fail with Nov2009.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Stefan Manegold (stmane)
&lt;br&gt;Date: 2009-11-08 16:50
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;For completeness:
&lt;br&gt;&lt;br&gt;I checked this on my 64-bit Fedora 10 Linux desktop, using a &amp;quot;testing&amp;quot;
&lt;br&gt;build of MonetDB, i.e., configured with --disbale-debug --enable-optimize
&lt;br&gt;--enable-assert .
&lt;br&gt;&lt;br&gt;I ran Mtest.py (more precisely make check, respectively RunMtest in the
&lt;br&gt;build directory) seperately for the Aug2009 and the Aug2009_NFI brach
&lt;br&gt;(builds) of pathfinder, collected the console output in files, and run diff
&lt;br&gt;over those (as well as over the times.sql files that Mtest.py creates in
&lt;br&gt;its &amp;lt;TSTTRGBASE&amp;gt; directory.
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2893875&amp;group_id=56967&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker/?func=detail&amp;atid=482468&amp;aid=2893875&amp;group_id=56967&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Monetdb-bugs mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26386462&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monetdb-bugs@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/monetdb-bugs&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--monetdb-Bugs-2893875---PF%3A-82-tests-fail-on-Auf2009_NFI-Nov2009-but-work-on-Aug2009-tp26386462p26386462.html" />
</entry>

</feed>
