Bugs item #1714399, was opened at 2007-05-07 17:15 Message generated for change (Comment added) made by yingying You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1714399&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/runtime Group: Pathfinder CVS Head Status: Open Resolution: Works For Me Priority: 5 Private: No Submitted By: Wouter Alink (vzzzbx) Assigned to: Ying Zhang (yingying) Summary: XQuery/XRPC: refresh admin-page causes segmentation fault Initial Comment: I was playing with Mserver 4.17.1 (monetdb_install.sh --nightly=current). I couldn't find any documentation, so I just played around a little. I noticed the following: starting Mserver: Mserver --dbinit="module(pathfinder);" and then browsing to the website: http://localhost:50001/admin/ works fine. pressing Ctrl-R (refresh) a few times (3 or 4 is often enough) makes Mserver segfault. it is not necessary to solve this bug instantly, but i just wanted you guys to know. i got another error when i pressed a button, but I might not have configured the system correctly. (i probably have to play some more with it) p.s. if you would like me to wait with testing these new features, then please tell me. ---------------------------------------------------------------------- >Comment By: Ying Zhang (yingying) Date: 2007-05-08 11:29 Message: Logged In: YES user_id=341633 Originator: NO Hi Wouter, It should not matter if Mserver has access to the Internet or not, since the admin page is on your localhost. I cannot reproduce your problem, maybe because I don't use the nightly build, but CVS source? Documentation about XRPC can be found here: http://monetdb.cwi.nl/projects/monetdb/XQuery/Documentation/XRPC.html It was written for the last release, so I see that some information is out-dated. I will update the documentation a.s.a.p. Regards, Jennie PS> Here is a quick update of the XRPC documentation: - Now the XRPC modules are loaded by default, hence $ Mserver --dbinit="module(pathfinder);" also starts the XRPC server - XRPC options in MonetDB.conf.in: * xrpc_port: to which port the xrpc server should listen, default 50001, or mapi_port+1 if you changed mapi_port * xrpc_open: works the same as mapi_open * xrpc_options: the only implemented option is "timing", for performance tests, usually not used. * xrpc_admin: usually you the admin web interface can only be access via localhost, if you want to access the page from another host than where Mserver with XRPC is running, you need to add the IP or the hostname of the other host to this list * xrpc_user: the same idea as xrpc_admin, but for retrieving XML docs from MXQ. * xrpc_trusted: this concerns a security check added after the last release. We now only execute functions in a module, which location (the 'at'-hint) has one of the prefixes in this list. For example, if this list contains the prefix "www.monetdb.nl", then we will execute functions in modules such as "www.monetdb.nl/foo.xq" and "www.monetdb.nl/bar/foo.xq". Of course, the default values of these options can be set when you start Mserver with --set option=value There is also a proc "add_xrpc_trusted" with which you can add more prefixes to the list "xrpc_trusted". ---------------------------------------------------------------------- Comment By: Wouter Alink (vzzzbx) Date: 2007-05-07 19:53 Message: Logged In: YES user_id=621590 Originator: YES ah, now i see the confusion... the script installed fine (it downloaded the sources from the internet using a proxy ;). the user under which the Mserver ran did not know how to reach the internet. (i thought this might be relevant information regarding the xrpc bug i desribed in the bugreport) ---------------------------------------------------------------------- Comment By: Fabian (mr-meltdown) Date: 2007-05-07 19:40 Message: Logged In: YES user_id=963970 Originator: NO mid-air collision, sorry ---------------------------------------------------------------------- Comment By: Fabian (mr-meltdown) Date: 2007-05-07 19:38 Message: Logged In: YES user_id=963970 Originator: NO He downloaded ssb-sr1 which contains a monetdb-install.sh script, and used --nightly=current. What is possibly an issue here, is how a machine without internet access can download the current nightlies. There may be a bug here that the script just installs using the packaged sources. Wouter, can you tell if the script downloaded sources for you? ---------------------------------------------------------------------- Comment By: Wouter Alink (vzzzbx) Date: 2007-05-07 19:37 Message: Logged In: YES user_id=621590 Originator: YES oops ---------------------------------------------------------------------- Comment By: Wouter Alink (vzzzbx) Date: 2007-05-07 19:35 Message: Logged In: YES user_id=621590 Originator: YES the monetdb_install.sh script from the package SR1, and using it to install the nightly build (current). there was no 'pathfinder-nightly-build' option, so i marked it 'pathfinder-head' sorry for the confusion. ---------------------------------------------------------------------- Comment By: Stefan Manegold (stmane) Date: 2007-05-07 19:31 Message: Logged In: YES user_id=572415 Originator: NO ... actually, Wouter's info is (still) confusing: "from the SR1 release tarball" indicates the *release* tarball, but "--nightly=current" suggests nightly builds. Could you please clearify? ---------------------------------------------------------------------- Comment By: Stefan Manegold (stmane) Date: 2007-05-07 19:26 Message: Logged In: YES user_id=572415 Originator: NO To avoid confusion and redundant/extra/use-less bug chasing and debugging, please provide accurate information in your bug reports: "SR1" is (IMHO) MonetDB-Venus-SuperBall-SR1.tar.bz2, and hence the leatest (bug-fix) *release* MonetDB 4.16.2 / pathfinder 0.16.2 not the CVS head version... ---------------------------------------------------------------------- Comment By: Wouter Alink (vzzzbx) Date: 2007-05-07 19:09 Message: Logged In: YES user_id=621590 Originator: YES 64-bit, fedora core 6 from the SR1 release tarball: monetdb_install.sh --enable-optimise --enable-xquery --nightly=current (i modified the script in that it adds the --enable-oid32 option) note that the system is not able to communicate with the internet. ps, jennie do you perhaps have a pointer to some documentation? i don't know how to correctly start the xrpc service (is module(pathfinder); enough?). i also have difficulty setting the correct values in MonetDB.conf. who is a user, who is a admin? do i need to add each host that is allowed to do xrpc, or can i use wildcards? ---------------------------------------------------------------------- Comment By: Ying Zhang (yingying) Date: 2007-05-07 18:22 Message: Logged In: YES user_id=341633 Originator: NO Hi Wouter, Thanks for trying the admin interface and reporting the problem. But I can not get Mserver crash in the way you describe (the code has just been checked out from CVS and rebuilt). I can refresh the page several tens of times without problem. Can you please provide some more system information? - OS (Windows/Linux)? - Bits (32/64)? - Compile option (debug/optimize)? Thanks in advance! Jennie PS> All admin/xrpc related problems can be assigned to me. PSS> Those new features are made to be played with, so don't wait:) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1714399&group_id=56967 ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Monetdb-bugs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/monetdb-bugs
