Memory leak in test_kstate
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenContrail |
Fix Committed
|
High
|
Praveen |
Bug Description
praveen@
WARNING: Perftools heap leak checker is active -- Performance may suffer
Config file <controller/
log4cplus:ERROR No appenders could be found for logger (root).
log4cplus:ERROR Please initialize the log4cplus system properly.
[==========] Running 10 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 10 tests from KStateTest
[ RUN ] KStateTest.
[ OK ] KStateTest.
[ RUN ] KStateTest.
[ OK ] KStateTest.
[ RUN ] KStateTest.
[ OK ] KStateTest.
[ RUN ] KStateTest.
[ OK ] KStateTest.
[ RUN ] KStateTest.
[ OK ] KStateTest.
[ RUN ] KStateTest.
[ OK ] KStateTest.
[ RUN ] KStateTest.
[ OK ] KStateTest.
[ RUN ] KStateTest.
[ OK ] KStateTest.
[ RUN ] KStateTest.
[ OK ] KStateTest.
[ RUN ] KStateTest.
[ OK ] KStateTest.
[----------] 10 tests from KStateTest (1470 ms total)
[----------] Global test environment tear-down
[==========] 10 tests from 1 test case ran. (1470 ms total)
[ PASSED ] 10 tests.
YOU HAVE 1 DISABLED TEST
Leak check _main_ detected leaks of 29301 bytes in 404 objects
The 20 largest leaks:
Using local file ./build/
Leak of 9504 bytes in 14 objects allocated from:
@ 149e32c __gnu_cxx:
@ 1499db9 std::_Vector_
@ 14a7f34 std::vector:
@ 14a7731 std::vector:
@ 14a516f KState:
@ 14165fc vr_nexthop_
@ 18173fb Sandesh:
@ 14557b7 KSyncSockTypeMa
@ 14420df KSyncSock:
@ 1451a93 boost::
@ 1450308 boost::
@ 144dcfa boost::
@ 144b4b1 boost::
@ 1453261 boost::func
Leak of 3200 bytes in 7 objects allocated from:
@ 149e1d8 __gnu_cxx:
@ 1499cd7 std::_Vector_
@ 14a7bd0 std::vector:
@ 14a76b3 std::vector:
@ 14a4cf4 KState:
@ 134e3cc vr_interface_
@ 18173fb Sandesh:
@ 14557b7 KSyncSockTypeMa
@ 14420df KSyncSock:
@ 1451a93 boost::
@ 1450308 boost::
@ 144dcfa boost::
@ 144b4b1 boost::
@ 1453261 boost::fun
Leak of 1489 bytes in 44 objects allocated from:
@ 7f29b030ea89 std::basic_
Leak of 1440 bytes in 45 objects allocated from:
@ 7f29b030ea89 std::basic_
@ 7f2900000001 0x00007f2900000001
Leak of 1120 bytes in 10 objects allocated from:
@ 11b0bdb TestNHKState::Init
@ 11aa421 KStateTest_
@ 12220b4 testing:
@ 121d4c0 testing:
@ 120af9d testing::Test::Run
@ 120b6f4 testing:
@ 120bc9b testing:
@ 121097a testing:
@ 1223155 testing:
@ 121e1dc testing:
@ 120f72a testing:
@ 11ac3ab mai
Leak of 1060 bytes in 20 objects allocated from:
@ 7f29b030ea89 std::basic_
@ 1407ecf __gnu_cxx:
@ 14ab4bc NHKState:
@ 14a511a KState:
@ 14165fc vr_nexthop_
@ 18173fb Sandesh:
@ 14557b7 KSyncSockTypeMa
@ 14420df KSyncSock:
@ 1451a93 boost::
@ 1450308 boost::
@ 144dcfa boost::
@ 144b4b1 boost::
@ 1453261 boost::
@ 1452dec QueueTaskRunne
Leak of 891 bytes in 26 objects allocated from:
@ 7f29b030ea89 std::basic_
@ 7fff021890a0 0x00007fff021890a0
Leak of 800 bytes in 10 objects allocated from:
@ 11b0c19 TestNHKState::Init
@ 11aa421 KStateTest_
@ 12220b4 testing:
@ 121d4c0 testing:
@ 120af9d testing::Test::Run
@ 120b6f4 testing:
@ 120bc9b testing:
@ 121097a testing:
@ 1223155 testing:
@ 121e1dc testing:
@ 120f72a testing:
@ 11ac3ab main
Leak of 628 bytes in 20 objects allocated from:
@ 7f29b030ea89 std::basic_
@ 1 _init
Leak of 618 bytes in 20 objects allocated from:
@ 7f29b030ea89 std::basic_
@ 7f29b05a8e35 tc_delete
@ 7f29aeb28860 0x00007f29aeb28860
Leak of 573 bytes in 17 objects allocated from:
@ 7f29b030ea89 std::basic_
@ 7f29b03264a8 __cxxabiv1:
@ 2ba43c0 0x0000000002ba43c0
Leak of 480 bytes in 5 objects allocated from:
@ 149e47f __gnu_cxx:
@ 1499e9b std::_Vector_
@ 14a856f std::vector:
@ 14a7826 std::vector:
@ 14a54d9 KState:
@ 14120f4 vr_mpls_
@ 18173fb Sandesh:
@ 14557b7 KSyncSockTypeMa
@ 14420df KSyncSock:
@ 1451a93 boost::
@ 1450308 boost::
@ 144dcfa boost::
@ 144b4b1 boost::
@ 1453261 boost::functio
Leak of 450 bytes in 15 objects allocated from:
@ 7f29b030ea89 std::basic_
@ 400000001 0x0000000400000001
Leak of 448 bytes in 4 objects allocated from:
@ 11b00f9 TestIfKState::Init
@ 11aa0ab KStateTest_
@ 12220b4 testing:
@ 121d4c0 testing:
@ 120af9d testing::Test::Run
@ 120b6f4 testing:
@ 120bc9b testing:
@ 121097a testing:
@ 1223155 testing:
@ 121e1dc testing:
@ 120f72a testing:
@ 11ac3ab main
Leak of 448 bytes in 4 objects allocated from:
@ 11b1588 TestMplsKState:
@ 11aa5de KStateTest_
@ 12220b4 testing:
@ 121d4c0 testing:
@ 120af9d testing::Test::Run
@ 120b6f4 testing:
@ 120bc9b testing:
@ 121097a testing:
@ 1223155 testing:
@ 121e1dc testing:
@ 120f72a testing:
@ 11ac3ab m
Leak of 436 bytes in 14 objects allocated from:
@ 7f29b030ea89 std::basic_
@ 7f29b05a8e35 tc_delete
@ 7f29ae727860 0x00007f29ae727860
Leak of 420 bytes in 10 objects allocated from:
@ 7f29b030ea89 std::basic_
@ 7f2900000000 0x00007f2900000000
@ 2aed3d9 0x0000000002aed3d9
Leak of 320 bytes in 4 objects allocated from:
@ 11b0137 TestIfKState::Init
@ 11aa0ab KStateTest_
@ 12220b4 testing:
@ 121d4c0 testing:
@ 120af9d testing::Test::Run
@ 120b6f4 testing:
@ 120bc9b testing:
@ 121097a testing:
@ 1223155 testing:
@ 121e1dc testing:
@ 120f72a testing:
@ 11ac3ab main
Leak of 320 bytes in 4 objects allocated from:
@ 11b15c6 TestMplsKState:
@ 11aa5de KStateTest_
@ 12220b4 testing:
@ 121d4c0 testing:
@ 120af9d testing::Test::Run
@ 120b6f4 testing:
@ 120bc9b testing:
@ 121097a testing:
@ 1223155 testing:
@ 121e1dc testing:
@ 120f72a testing:
@ 11ac3ab m
Leak of 256 bytes in 8 objects allocated from:
@ 7f29b030ea89 std::basic_
@ 3501320 0x0000000003501320
Skipping leaks numbered 20..65
If the preceding stack traces are not enough to find the leaks, try running THIS shell command:
pprof ./build/
If you are still puzzled about why the leaks are there, try rerunning this program with HEAP_CHECK_
If the leak report occurs in a small fraction of runs, try running with TCMALLOC_
Exiting with error code (instead of crashing) because of whole-program memory leaks
tags: | added: vrouter |
Fix committed /github. com/Juniper/ contrail- controller/ commit/ 33e0886386621d1 e5ff4cdd1637a08 3b86b8ba76
https:/