Bugs item #2607045, was opened at 2009-02-16 22:54
Message generated for change (Comment added) made by stmane
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2607045&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: 6
Private: No
Submitted By: Romulo Goncalves (romulog)
Assigned to: Romulo Goncalves (romulog)
Summary: SQL: set history and drop table

Initial Comment:
The following SQL code crashes M5-SQL

set history='true';
select id from tables where id > 0;
create table t1 (id int);
drop table t1;

mserver debug info:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe0f05950 (LWP 5796)]
0x00000038308830b3 in memset () from /lib64/libc.so.6
(gdb) up
#1  0x00007ffff771eea1 in GDKfree (blk=0x7fffe5600ca4)
    at /ufs/goncalve/MonetDB/stable/MonetDB/src/gdk/gdk_utils.mx:1135
1135                    DEADBEEFCHK memset(s, 0xDB, size - (8 + (size & 1)));  
/* 0xDeadBeef */
(gdb) p size
$1 = 28549272340070512
(gdb) p s
$2 = (ssize_t *) 0x7fffe5600ca4
(gdb) p 0xDB
$3 = 219
(gdb) up
#2  0x0000000000c8ace4 in clearVariable (mb=0x7fffe0664fa8, varid=98)
    at /ufs/goncalve/MonetDB/stable/MonetDB5/src/mal/mal_instruction.mx:1557
1557                    GDKfree(v->name);
(gdb) p v->name
$4 = 0x7fffe5600ca4 "ctime"
(gdb)


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

>Comment By: Stefan Manegold (stmane)
Date: 2009-08-17 14:18

Message:
new output has been approved by Niels.


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

Comment By: Stefan Manegold (stmane)
Date: 2009-08-14 13:55

Message:
tagged subject

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

Comment By: Stefan Manegold (stmane)
Date: 2009-08-13 19:20

Message:
re-opened since the test produces different output since checkins on
2009/07/25 and/or 2009/07/26 on the CVS HEAD;
cf.,
http://monetdb.cwi.nl/testing/projects/monetdb/Stable/sql/.mTests103/GNU.64.64.d.1-Fedora10/src_test_BugTracker-2009/set_history_and_drop_table.SF-2607045.out.00.html


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

Comment By: Niels Nes (nielsnes)
Date: 2009-02-20 23:38

Message:
works now. was a bug in m5 opt_history. variable names need to be allocated

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

Comment By: Romulo Goncalves (romulog)
Date: 2009-02-16 23:38

Message:
test added to 

sql/src/tests/BugTracker-2009/Tests/set_history_and_drop_table.SF-2607045.SQL.py

with additional files:

sql/src/tests/BugTracker-2009/set_history_and_drop_table.SF-2607045.sql
sql/src/tests/BugTracker-2009/drop_history.sql

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2607045&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