Menu

#424 Using Uninitialized val : printVal() (DataType.cxx : 1843)

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== Use of uninitialised value of size 4
==16251== at 0xA817DB: _itoa_word (in /lib/libc-2.7.so)
==16251== by 0xA8573F: vfprintf (in /lib/libc-2.7.so)
==16251== by 0xA8B9B2: printf (in /lib/libc-2.7.so)
==16251== by 0x40269E2: AllDataType::printVal(void*, DataType, int) (DataType.cxx:1843)
==16251== by 0x405CEBF: SelStatement::fetchAndPrint(bool) (SelStatement.cxx:795)
==16251== by 0x406597C: SqlStatement::fetchAndPrint(bool) (SqlStatement.cxx:151)
==16251== by 0x804975C: getInput(bool) (isql.cxx:342)
==16251== by 0x8049B11: main (isql.cxx:109)

Discussion

  • Nihar Ranjan paital

    refer test/sql / Aggregate / test005.ksh

     
  • Nihar Ranjan paital

    • assigned_to: nobody --> niharlcp1
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.