Menu

#486 PacketPrepare::marshall() (NetworkPacket.cxx:36) leaks

V2.1 Beta
open
nobody
leak (188)
5
2009-02-07
2009-02-07
No

File Reference : test008b.ksh
I run the forrloing under test / cache / FailOver directory for check memory leaks

[lakshya@localhost FailOver]$ CSQL_CONF=${PWD}/cache/FailOver/csql.conf
[lakshya@localhost FailOver]$ input=${PWD}/cache/FailOver/csqlinputt3.sql
[lakshya@localhost FailOver]$ REL_PATH=.
[lakshya@localhost FailOver]$ export DSN=myodbc3
[lakshya@localhost FailOver]$ export CSQL_CONFIG_FILE=$REL_PATH/csql.conf
[lakshya@localhost FailOver]$ echo DSN=$DSN >> $CSQL_CONFIG_FILE
[lakshya@localhost FailOver]$ isql $DSN < $REL_PATH/mysqlinputtest1.sql
[lakshya@localhost FailOver]$ rm -f /tmp/csql/csqltable.conf /tmp/csql/csql.db
[lakshya@localhost FailOver]$ touch /tmp/csql/csqltable.conf /tmp/csql/csql.db
[lakshya@localhost FailOver]$ for (( a=1; a<2; a++ )); do echo "1:t$a NULL NULL NULL"; done >> /tmp/csql/csqltable.conf
[lakshya@localhost FailOver]$ $CSQL_INSTALL_ROOT/bin/csqlserver -c >/dev/null 2>&1 &
[lakshya@localhost FailOver]$ pid=$!
[lakshya@localhost FailOver]$ isql $DSN < $REL_PATH/mysqlinputtest2.sql
[lakshya@localhost FailOver]$ valgrind --tool=memcheck --leak-check=full --show-reachable=yes csql -g -s csqlinputt3.sql
[lakshya@localhost FailOver]$ valgrind --tool=memcheck --leak-check=full --show-reachable=yes ./insertexeccsqldown
And found memory leaks

Error Summary :
==10850== 127 bytes in 1 blocks are indirectly lost in loss record 50 of 66
==10850== at 0x4005525: malloc (vg_replace_malloc.c:149)
==10850== by 0x408676E: PacketPrepare::marshall() (NetworkPacket.cxx:36)
==10850== by 0x402FC40: SqlLogStatement::prepare(char*) (SqlLogStatement.cxx:73)
==10850== by 0x40ABE28: SqlGwStatement::prepare(char*) (SqlGwStatement.cxx:30)
==10850== by 0x80488D4: main (in csql/test/cache/FailOver/insertexeccsqldown)

Discussion


Log in to post a comment.