Bugs item #2840309, was opened at 2009-08-19 15:42 Message generated for change (Comment added) made by jmswams You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2840309&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: SQL/Core Group: SQL "stable" Status: Open Resolution: None Priority: 5 Private: No Submitted By: Jan-Mark (jmswams) Assigned to: Niels Nes (nielsnes) Summary: Embedded example won't run. Initial Comment: If I run the install script and than the plain vanilla embedded server example (from http://monetdb.cwi.nl/projects/monetdb//MonetDB/Documentation/A-Simple-Example.html) it crashes. Below the "screen dump." As you can see the file sql_types.c line 207 contains a dereference of a variable named 'types' and it's current value is NULL. Since the install script does not leave me with the source code, I can't really look at the source code. But the bigger question is: "Is the example code in the daily test set, or in any test set?" because I think it should. (I ran the install script with these parameters: ./monetdb-install.sh --enable-sql --cvs=May2009-SP2 --enable-debug --enable-testing) I installed on both 2.6.28-11-generic #42-Ubuntu SMP as well as FreeBSD. Both have the same problem. (Note you do have to build a non generic kernel voor FreeBSD to run MonetDB.) My guess, is a test for NULL is needed. Probably something that is not needed in the non-embedded version. Regards Jan-Mark Here is a "screen dump." $ gdb embedtest2 GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu"... (gdb) run Starting program: /home/jms/src/RaxUnixServer/embedtest2 [Thread debugging using libthread_db enabled] [New Thread 0xb6e3e8d0 (LWP 15588)] [New Thread 0xb6e3db90 (LWP 15591)] [New Thread 0xb20f6b90 (LWP 15592)] [Thread 0xb6e3db90 (LWP 15591) exited] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb20f6b90 (LWP 15592)] 0xb7eeb886 in sql_find_subtype (res=0xb20f6268, name=0xb21f0b00 "int", digits=0, scale=0) at sql_types.c:207 207 for (n = types->h; n; n = n->next) { (gdb) print types $1 = (list *) 0x0 ---------------------------------------------------------------------- >Comment By: Jan-Mark (jmswams) Date: 2009-08-26 14:53 Message: FYI $ mserver5 --version MonetDB server v5.14.0 (32-bit), based on kernel v1.32.0 (32-bit oids) Copyright (c) 1993-July 2008 CWI Copyright (c) August 2008-2009 MonetDB B.V., all rights reserved Visit http://monetdb.cwi.nl/ for further information Configured for prefix: /home/jms/MonetDB Libraries: libpcre: 7.8 2008-09-05 (compiled with 7.8) openssl: OpenSSL 0.9.8g 19 Oct 2007 (compiled with OpenSSL 0.9.8g 19 Oct 2007) Compiled by: j...@columnstoresrv001 (i686-pc-linux-gnu) Compilation: gcc -g Linking : /usr/bin/ld ---------------------------------------------------------------------- Comment By: Stefan Manegold (stmane) Date: 2009-08-19 17:36 Message: mea cupla --- I didn't recall that feature and accidently check the Feb2009 version --- handling too many versions in parallel for tracing historical performance and stability behavior ... However, then the argument must be "May2009" (to get the head of the May2009 branch with by now in the code base of the May2009-Sp2 release, plus any bug-fixes that might have been applied after that release, or "May2009_4" to get the actual code base of the May2009-SP2 release ("4" is the <release> part of the <major>.<minor>.<release> version numbers any "-SP2" release). There is no "May2009-SP2" CVS tag. ---------------------------------------------------------------------- Comment By: Fabian (mr-meltdown) Date: 2009-08-19 16:56 Message: > Since the install script does not leave me > with the source code, I can't really look at the source code the installscript leaves /var/tmp/MonetDB-XXXXXXXXX behind containing the build tree, and the build log ---------------------------------------------------------------------- Comment By: Fabian (mr-meltdown) Date: 2009-08-19 16:54 Message: from monetdb-install.sh --help --cvs[=tag] checkout a CVS snapshot of the current branch or optionally given tag :) On request of loredana we added this, as this is possible since we use unified tags over all our repos ---------------------------------------------------------------------- Comment By: Stefan Manegold (stmane) Date: 2009-08-19 16:14 Message: Hi Jan-Mark, thanks for your report, we will double-check our embedded example as soon as time allows us to do so. Til then, a few remarks: - The MonetDB source are available for download from http://monetdb.cwi.nl/downloads/sources/ - Your install command might not do what you expect/intend to do: According to the documentation (see `monetdb-install.sh --help`), the --cvs switch does not take any arguments, but rather installs " checkout a CVS snapshot of the current branch" --- in MonetDB lingo, "current (branch)" usually refers to the CVS HEAD (aka., development trunk), not the (latest) release branch. Hence, I assume that your "May2009-SP2" argument is (silently instead of issuing a warnig or error) ignored, and you installed a CVS snapshot instead of a released version of MonetDB --- you can check this by running `mserver5 --version`: v5.12.4 -> May2009-SP2; v5.15.0 "Current" CVS development snapshot. To install the May2009-SP2 release, you'd (e.g.) need to download the respective "SuperSourceBall" from http://monetdb.cwi.nl/downloads/sources/May2009-SP2/MonetDB-May2009-SuperBall-SP2.tar.bz2, unpack it, and run the extracted monetdb-install.sh without --cvs option. Stefan ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2840309&group_id=56967 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Monetdb-bugs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/monetdb-bugs
