40K+ bytes memory leak found in agent in DnsHandler::HandleDefaultDnsRequest()
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R2.20 |
Fix Committed
|
High
|
Hari Prasad Killi | |||
R2.21.x |
Fix Committed
|
High
|
Hari Prasad Killi | |||
R2.22.x |
Fix Committed
|
High
|
Hari Prasad Killi | |||
R3.0 |
Fix Committed
|
High
|
Hari Prasad Killi | |||
R3.0.2.x |
Fix Committed
|
High
|
Hari Prasad Killi | |||
R3.1 |
Fix Committed
|
High
|
Hari Prasad Killi | |||
Trunk |
Fix Committed
|
High
|
Hari Prasad Killi |
Bug Description
Noticed this leak during GR testing with master branch code (3.2)
Possible fix...
diff --git a/src/vnsw/
index eba44f8..7f38ee4 100644
--- a/src/vnsw/
+++ b/src/vnsw/
@@ -250,6 +250,7 @@ bool DnsHandler:
+ delete resolv;
}
==6284== 46,440 (19,944 direct, 26,496 indirect) bytes in 831 blocks are definitely lost in loss record 10,781 of 11,018
==6284== at 0x4C2B0E0: operator new(unsigned long) (in /usr/lib/
==6284== by 0x19FD5D5: DnsHandler:
==6284== by 0x19FCB94: DnsHandler:
==6284== by 0x19FC221: DnsHandler::Run() (dns_handler.
==6284== by 0x1B2AA7E: Proto::
==6284== by 0x1B2AB6B: Proto::
==6284== by 0x1B2DA13: boost::
==6284== by 0x1B2D3BF: bool boost::
==6284== by 0x1B2CD33: bool boost::
==6284== by 0x1B2C964: boost::
==6284== by 0x1B2E221: boost::
==6284== by 0x1B2DDAF: QueueTaskRunner
==6284== by 0x1B2DB91: QueueTaskRunner
==6284== by 0x22E6337: TaskImpl::execute() (task.cc:262)
==6284== by 0x6BDCB39: ??? (in /usr/lib/
==6284== by 0x6BD8815: ??? (in /usr/lib/
==6284== by 0x6BD7F4A: ??? (in /usr/lib/
==6284== by 0x6BD40FE: ??? (in /usr/lib/
==6284== by 0x6BD42F8: ??? (in /usr/lib/
==6284== by 0x69A6183: start_thread (pthread_
==6284== by 0x770A37C: clone (clone.S:111)
Review in progress for https:/ /review. opencontrail. org/23538
Submitter: Hari Prasad Killi (<email address hidden>)