Bugs item #2840309, was opened at 2009-08-19 15:42
Message generated for change (Tracker Item Submitted) 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


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

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

Reply via email to