Bugs item #1649137, was opened at 2007-01-31 20:23
Message generated for change (Comment added) made by yingying
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1649137&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: PF/compiler
Group: Pathfinder CVS Head
>Status: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: Ying Zhang (yingying)
Assigned to: Jens Teubner (teubner)
>Summary: XQ: All XRPC tests fail due to SIGSEGV

Initial Comment:
In the Current branch, all XRPC tests fail due to SIGSEGV.  This happens after 
the check-ins on Jan. 23.

GDB tells us where the problem is:

In shell 1:

$ cat xrpc-add_dbl.xq 
import module namespace xrpc = "http://www.monetdb.nl/xrpc/";
            at "/ufs/zhang/input/modules/xrpc.xq";

for $i in (40.5, 50.5)
return execute at {"localhost"} {xrpc:add($i, 10.5)}

$ cat /ufs/zhang/input/modules/xrpc.xq 
module namespace xrpc = "http://www.monetdb.nl/xrpc/";;

declare function xrpc:add($v1 as xs:decimal, $v2 as xs:decimal*) as xs:decimal* 
{
    let $res := $v1 
    for $i in $v2  
        return $res + $i 
}; 

$ mapiclnt -lx xrpc-add_dbl.xq 


In shell 2:

$ gdb --args Mserver --dbinit="module(pftijah); module(xrpc_server); 
rpcd_start();"
...
(gdb) r
Starting program: 
/net/andorea/export/scratch1/zhang/monet/current/G.64.64.d.debug/bin/Mserver 
--dbinit=module\(pftijah\)\;\ module\(xrpc_server\)\;\ rpcd_start\(\)\;
...
MonetDB>

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1115703648 (LWP 14073)]
0x00002aaab44f5be9 in mem_realloc (pa=0xfb77f0, p=0x0, n=2048)
    at ../../../compiler/mem/mem.c:133
133             memcpy(r, p, n);
(gdb) bt
#0  0x00002aaab44f5be9 in mem_realloc (pa=0xfb77f0, p=0x0, n=2048)
    at ../../../compiler/mem/mem.c:133
#1  0x00002aaab44f5c8c in PFrealloc_ (n=2048, mem=0x0, 
    file=0x2aaab45e4df8 "../../../compiler/mem/array.c", 
    func=0x2aaab45e4e16 "PFarray_at", line=128)
    at ../../../compiler/mem/mem.c:165
#2  0x00002aaab44f5162 in PFarray_at (a=0x2aaab6180ab0, i=1)
    at ../../../compiler/mem/array.c:128
#3  0x00002aaab44f6a2e in PFqname (ns=
      {prefix = 0x2aaab61789d0 "xrpc", uri = 0x2aaab6183280 
"http://www.monetdb.nl/xrpc/"}, loc=0x2aaab61789d5 "convert") at 
../../compiler/qname.c:188
#4  0x00002aaab4405d5e in ns_resolve (n=0x2aaab6178f80)
    at ../../../compiler/semantics/ns.c:656
#5  0x00002aaab44069ea in ns_resolve (n=0x2aaab6178970)
    at ../../../compiler/semantics/ns.c:974
#6  0x00002aaab4405b46 in ns_resolve (n=0x2aaab6182170)
    at ../../../compiler/semantics/ns.c:570
#7  0x00002aaab44069ea in ns_resolve (n=0x2aaab61821f0)
    at ../../../compiler/semantics/ns.c:974
#8  0x00002aaab44069ea in ns_resolve (n=0x2aaab6177770)
    at ../../../compiler/semantics/ns.c:974
#9  0x00002aaab4406b31 in PFns_resolve (root=0x2aaab6177770)
    at ../../../compiler/semantics/ns.c:1014
#10 0x00002aaab43e254e in PFcompile_MonetDB (
    xquery=0x10a9379 "import module namespace xrpc = 
\"http://www.monetdb.nl/xrpc/\"\n";, ' ' <repeats 12 times>, "at 
\"/ufs/zhang/input/modules/xrpc.xq\";\n\nfor $i in (40.5, 50.5)\nreturn execute 
at {\"localhost\"} {xrpc:add($i, 10.5)}\n", 
    url=0x10a9379 "import module namespace xrpc = 
\"http://www.monetdb.nl/xrpc/\"\n";, ' ' <repeats 12 times>, "at 
\"/ufs/zhang/input/modules/xrpc.xq\";\n\nfor $i in (40.5, 50.5)\nreturn execute 
at {\"localhost\"} {xrpc:add($i, 10.5)}\n", 
    prologue=0x42803cd0, query=0x428038d8, epilogue=0x42803cc0, options=0)
    at ../../compiler/compile.c:728
...


Jens,  I temporarily assign this bug to you, since you checked in some qname 
related changes on Jan. 23.  Would you please have a look at this problem?  Any 
help of you will be very appreciated!

Regards,

Jennie

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

>Comment By: Ying Zhang (yingying)
Date: 2007-02-06 11:04

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

I think this can be closed.

Jens, thanks for fixing this!

Jennie

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

Comment By: Stefan Manegold (stmane)
Date: 2007-02-01 17:25

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

As always, testing ("the TestWeb") will tell us tomorrow ... ;-)


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

Comment By: Jens Teubner (teubner)
Date: 2007-02-01 13:54

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

Jennie,

I think the changes I just made should fix your problems.
XRPC tests seem to run fine here.  Can you confirm and then
close this bug?


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

Comment By: Jan Rittinger (tsheyar)
Date: 2007-01-31 21:49

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

This might be the same problem as in bug #1649059.

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

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

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to