Bugs item #2556566, was opened at 2009-02-02 12:07
Message generated for change (Settings changed) made by romulog
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2556566&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: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Romulo Goncalves (romulog)
Assigned to: Martin Kersten (mlkersten)
Summary: select from history 

Initial Comment:
The following query crashes the M5-SQL

select * from history;

The crash:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe1433950 (LWP 23049)]
0x00007fffe2520ce2 in rel_projections (sql=0x7fffe200b2a8, rel=0x7fffe1ea7c68, 
tname=0x0, settname=1, intern=1) at 
/ufs/goncalve/MonetDB/stable/sql/src/server/rel_select.mx:386
386                             for (en = rel->exps->h; en; en = en->next) {
Missing separate debuginfos, use: debuginfo-install 
bzip2-libs-1.0.5-3.fc10.x86_64 e2fsprogs-libs-1.41.3-2.fc10.x86_64 
glibc-2.9-3.x86_64 keyutils-libs-1.2-3.fc9.x86_64 
krb5-libs-1.6.3-16.fc10.x86_64 libselinux-2.0.73-1.fc10.x86_64 
ncurses-libs-5.6-20.20080927.fc10.x86_64 openssl-0.9.8g-12.fc10.x86_64 
pcre-7.8-1.fc10.x86_64 readline-5.2-13.fc9.x86_64 zlib-1.2.3-18.fc9.x86_64
(gdb) 


The tname argument in the function is NULL.

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

>Comment By: Romulo Goncalves (romulog)
Date: 2009-02-03 11:48

Message:
Bug is fixed with the following check in:
[Monetdb-sql-checkins] sql/src/server rel_select.mx, Feb2009,   1.113.2.1,
1.113.2.2

Log Message:
be more protective when looking at sql stack variables
(ie don't intepret simple values as tables)
Solves bug select * from history)

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

Comment By: Romulo Goncalves (romulog)
Date: 2009-02-02 12:12

Message:
Test added at:

sql/src/tests/BugTracker-2009/Tests/select_from_history.SF-2556566.sql

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

Comment By: Romulo Goncalves (romulog)
Date: 2009-02-02 12:09

Message:
Sorry

The problem is not with tname, it is the rel->exps :)
386                             for (en = rel->exps->h; en; en = en->next) {
(gdb) p rel->exps
$2 = (list *) 0xdbdbdbdbdbdbdbdb
(gdb) 


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

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

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to