Bugs item #1826627, was opened at 2007-11-06 08:09
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1826627&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 2.20
Status: Open
Resolution: None
Priority: 7
Private: No
Submitted By: Stefan Manegold (stmane)
Assigned to: Niels Nes (nielsnes)
Summary: SQL/4: tests segfault due to uninitialized variable

Initial Comment:
Since
===================================================================
2007/10/29 - nielsnes: ./sql/src/backends/monet4/sql_session.mx,1.230.2.4
cleanup of global variable creation (code resembles m5 version again)
also fixed a leak (free stmt as its dupped in the set_var call)
===================================================================

test sql/src/benchmark/ATIS/Tests/cache.sql segfaults (strangely with icc, 
only) in the strcmp() in line 1364 of sql/src/server/sql_mvc.mx's 
stack_set_var(), called from line 741 of 
sql/src/backends/monet4/sql_session.mx, as variable "char *name" is handed to 
stack_set_var() in sql/src/backends/monet4/sql_session.mx's global_variables() 
without being initialized.

I'm actually a bit puzzled, why it "happens to work" with gcc...

gdb did not help to find this (as it seems to initialize variables to 0 (NULL) 
be default) |-(
valgrind DID help to find this ;-)

N.B.:
Since sql/src/backends/monet4/Makefile.ag disabls the "X_CFLAGS", no compiler 
(is told to) detect(s) that the variable name "is used before its value is set".
|-((


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

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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to