#422 Invalid Write:AllDataType::copyVal()(DataType.cxx:501) leaks

V2.1 Beta
open
leak (188)
5
2009-02-05
2009-01-30
No

i have run ( sql / Aggregate / aggregate5.sql ) with valgrind tool as
valgrind --tool=memcheck --leak-check=yes --show-reachable=yes csql -s
createt1t2.sql
valgrind --tool=memcheck --leak-check=yes --show-reachable=yes csql -s
aggregate5.sql
and found memory leakage as follows.

Error Summary :
==16251== Invalid write of size 4
==16251== at 0x4028D97: AllDataType::copyVal(void*, void*, DataType, int) (DataType.cxx:501)
==16251== by 0x403B5F5: AggTableImpl::execute() (AggTableImpl.cxx:159)
==16251== by 0x405CB35: SelStatement::execute(int&) (SelStatement.cxx:89)
==16251== by 0x4065888: SqlStatement::execute(int&) (SqlStatement.cxx:105)
==16251== by 0x80495C5: getInput(bool) (isql.cxx:311)
==16251== by 0x8049B11: main (isql.cxx:109)

Discussion

  • refer test / sql / Aggregate / test005.ksh

     
    • assigned_to: nobody --> niharlcp1
     
  • Memory leak in parser is fix with change file:
    dmlyecc.yxx.

    This bug needs to be closed.