Bugs item #2864991, was opened at 2009-09-23 14:57
Message generated for change (Tracker Item Submitted) made by axelbel
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2864991&group_id=56967

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Axel Belinfante (axelbel)
Assigned to: Nobody/Anonymous (nobody)
Summary: monetbd crash

Initial Comment:

MonetDB craashes after the following sequence of commands:



echo 'import module namespace ecv = "http://www.cs.utwente.nl/~belinfan/ecv"; at 
"/local/dbguest/ECV/xrpc/export/ecv.xq"; ecv:get-active-views("view-defs.xml")' 
| mclient -lx -p51012

echo 'import module namespace ecv = "http://www.cs.utwente.nl/~belinfan/ecv"; at 
"/local/dbguest/ECV/xrpc/export/ecv.xq"; ecv:save-view("view-defs.xml", 
"feenstra", "axel", <view now="1253707155.50922" name="feenstra" 
prevname="untitled" prevseq="0" user="axel"><select allany="" 
inex="exclude"><cond cmp="contains" 
field="creators_family">feenstra</cond></select></view>)' | mclient -lx -p 51012

echo 'import module namespace ecv = "http://www.cs.utwente.nl/~belinfan/ecv"; at 
"/local/dbguest/ECV/xrpc/export/ecv.xq"; ecv:get-active-views("view-defs.xml")' 
| mclient -lx -p51012


where the database is started as 
 $MONET_PREFIX/bin/Mserver --config=$demodir/MonetDB.conf --set 
monet_daemon=yes \
       --set mapi_port=51012 --set xrpc_port=51013 \
       --dbinit="module(mapi);module(pathfinder);module(pftijah); 
xrpc_trusted.delete(); mil_start();" \
       --dbname $FARM start-mxq.mil

and start-mxq.mil contains:

shred_doc("/local/dbguest/ECV/preload/updatable/view-defs.xml","view-defs.xml","ECVsave",lng(10));

I attach view-defs.xml    and  ecv.xq


this is on linux: Linux ewi865 2.6.16.21-0.8-smp #1 SMP Mon Jul 3 18:25:39 UTC 
2006 x86_64 x86_64 x86_64 GNU/Linux

a gdb stack trace follows below.

(gdb) run  --config=/local/dbguest/ECV/MonetDB.conf --set monet_daemon=yes 
--set mapi_port=51012 --set xrpc_port=51013 
--dbinit="module(mapi);module(pathfinder);module(pftijah); 
xrpc_trusted.delete(); mil_start();"  --dbname demo start-mxq.mil
Starting program: /local/dbguest/Install/MonetDB-XQuery_Aug2009/bin/Mserver 
--config=/local/dbguest/ECV/MonetDB.conf --set monet_daemon=yes --set 
mapi_port=51012 --set xrpc_port=51013 
--dbinit="module(mapi);module(pathfinder);module(pftijah); 
xrpc_trusted.delete(); mil_start();"  --dbname demo start-mxq.mil
[Thread debugging using libthread_db enabled]
[New Thread 47689001507792 (LWP 8600)]
[New Thread 1075841344 (LWP 8607)]
# MonetDB Server v4.32.1
# based on GDK   v1.32.1
# Copyright (c) 1993-July 2008, CWI. All rights reserved.
# Copyright (c) August 2008-2009, MonetDB B.V.. All rights reserved.
# Compiled for x86_64-suse-linux/64bit with 32bit OIDs; dynamically linked.
# Visit http://monetdb.cwi.nl/ for further information.
[New Thread 1077942592 (LWP 8608)]
# PF/Tijah module v0.13.0 loaded. http://dbappl.cs.utwente.nl/pftijah
# MonetDB/XQuery module v0.28.3 loaded (default back-end is 'algebra')
# XRPC administrative console at http://127.0.0.1:51013/admin
[New Thread 1080043840 (LWP 8609)]
[New Thread 1082145088 (LWP 8610)]
# DB group ECV demo server (Aug2009) started.
!ERROR: shred_doc: document eprints-dummy.xml already exists in collection ECV 
(1 such errors)!
[New Thread 1084246336 (LWP 8612)]


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1084246336 (LWP 8612)]
0x00002b5f744fddae in interpret_assignment (stk=2287, lt=0x17e8cf8, 
res=0x409fecf0) at monet_interpreter.mx:1842
1842                    ATOMunfix(oldvalue.vtype, VALptr(&oldvalue));
(gdb) bt
#0  0x00002b5f744fddae in interpret_assignment (stk=2287, lt=0x17e8cf8, 
res=0x409fecf0) at monet_interpreter.mx:1842
#1  0x00002b5f744f0fac in interpret (stk=2287, lt=0x17e8cf8, res=0x409fecf0) at 
monet_interpreter.mx:725
#2  0x00002b5f744fdf4e in interpret_seqblock (stk=2287, lt=0x17f1cc8, 
res=0x409fecf0, scope=0) at monet_interpreter.mx:1877
#3  0x00002b5f744f103d in interpret (stk=2287, lt=0x17f1cc8, res=0x409fecf0) at 
monet_interpreter.mx:732
#4  0x00002b5f744fdf4e in interpret_seqblock (stk=2287, lt=0x17f1c90, 
res=0x409fecf0, scope=1) at monet_interpreter.mx:1877
#5  0x00002b5f744f103d in interpret (stk=1050, lt=0x17f1c90, res=0x409fecf0) at 
monet_interpreter.mx:732
#6  0x00002b5f744fdf4e in interpret_seqblock (stk=1050, lt=0x1802dd8, 
res=0x409fecf0, scope=0) at monet_interpreter.mx:1877
#7  0x00002b5f744f103d in interpret (stk=1050, lt=0x1802dd8, res=0x409fecf0) at 
monet_interpreter.mx:732
#8  0x00002aaaadb886a5 in xquery_tree_exec (ctx=0x10357d8, t=0x1802dd8, 
repeat=1) at pathfinder.mx:4525
#9  0x00002aaaadb8bbba in xquery_function_call (ctx=0x10357d8, usec=28412951, 
ns=0x13a93bc "ecv", module=0x40a037d0 "http://www.cs.utwente.nl/~belinfan/ecv";, 
    method=0x13a93c0 "get-active-views", seqnr=0x0, qid=0x2aaaadd6504b "", 
caller=0x2aaaadd6504b "", timeout=0, mode=0x2aaaadd6504b "", argc=1, itercnt=1, 
    argcnt=0x40a033c8, argtpe=0x40a03330, argval=0x40a03130, shredBAT=0x0) at 
pathfinder.mx:5147
#10 0x00002aaaadb8f540 in xquery_prepare (ctx=0x10357d8, usec=28412951, 
    query=0x13a9349 "import module namespace ecv = 
\"http://www.cs.utwente.nl/~belinfan/ecv\"; at 
\"/local/dbguest/ECV/xrpc/export/ecv.xq\"; ecv")
    at pathfinder.mx:6032
#11 0x00002aaaadb8fc89 in xquery_client_engine (mc=0x2aaaac501f88) at 
pathfinder.mx:6220
#12 0x00002aaaac3fe291 in mapi_client_engine (FC=0x2aaaac501f88) at mapi.mx:497
#13 0x00002b5f75770193 in start_thread () from /lib64/libpthread.so.0
#14 0x00002b5f75e7745d in clone () from /lib64/libc.so.6
#15 0x0000000000000000 in ?? ()


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

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

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to