logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prakash kadam <prakash_f_ka...@walla.com>
Subject NDC Query
Date Thu, 09 Feb 2006 12:51:33 GMT

<BODY oncontextmenu="return false" dir=ltr style="OVERFLOW-Y: scroll" leftMargin=0 topMargin=0
rightMargin=0><DIV id=wrteplaceholder style="FONT-FAMILY: Arial" name="wrteplaceholder">
<DIV>Hi all,<BR>&nbsp; I am using log4cxx version 0.9.7.&nbsp;I&nbsp;check&nbsp;log4cxx
for memory leak with my application, it gives me memory leak at NDC::push. <BR><BR>I
am calling it as<BR>&nbsp;&nbsp;&nbsp; const char * methodName&nbsp;
= "getTagName";<BR>&nbsp;&nbsp;&nbsp; NDC::push(methodName);<BR><BR>and
I get memory leak :<BR><BR>MLK: 64 bytes leaked at 0x8875f8<BR>&nbsp;
* This memory was allocated from:<BR>&nbsp;malloc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
[rtlib.o]<BR>&nbsp;c2n6Fi_Pv___1&nbsp; [libCrun.so.1]<BR>&nbsp;void*operator
new(unsigned) [rtlib.o]<BR>&nbsp;void*std::allocator&lt;log4cxx::NDC::DiagnosticContext&gt;::allocate(unsigned,void*)
[liblog4cxx.so.9]<BR>&nbsp;log4cxx::NDC::DiagnosticContext*std::allocator_interface&lt;std::allocator&lt;log4cxx::NDC::DiagnosticContext&gt;,log4cxx::NDC::DiagnosticContext&gt;::allocate(unsigned,log4cxx::NDC::DiagnosticContext*)
[liblog4cxx.so.9]<BR>&nbsp;void std::deque&lt;log4cxx::NDC::DiagnosticContext,std::allocator&lt;log4cxx::NDC::DiagnosticContext&gt;
&gt;::__allocate_at_end() [deque]<BR>&nbsp;void std::deque&lt;log4cxx::NDC::DiagnosticContext,std::allocator&lt;log4cxx::NDC::DiagnosticContext&gt;
&gt;::push_back(const log4cxx::NDC::DiagnosticContext&amp;) [liblog4cxx.so.9]<BR>&nbsp;void
std::stack&lt;log4cxx::NDC::DiagnosticContext,std::deque&lt;log4cxx::NDC::DiagnosticContext,std::allocator&lt;log4cxx::NDC::DiagnosticContext&gt;
&gt; &gt;::push(const log4cxx::NDC::DiagnosticContext&amp;) [liblog4cxx.so.9]<BR>&nbsp;void
log4cxx::NDC::push(const std::basic_string&lt;char,std::char_traits&lt;char&gt;,std::allocator&lt;char&gt;
&gt;&amp;) [ndc.cpp]<BR>&nbsp;EMS_NDC::EMS_NDC(const char*,log4cxx::Logger*)
[emslog.h:22]<BR><BR><BR>How do i overcame with this?<BR><BR><BR>
<HR>

<DIV>Prakash F. Kadam<BR></DIV></DIV></DIV></BODY><hr><div
style="background-color:white;color:black;">Walla! Mail - <a href="http://www.walla.com"
style="color:blue">get your free 3G mail today</a></div>
Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
    • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message