So, is memory leaking only here or is no one cares? Can xpcom dev
confirm that this is intended or is it a bug on my side?
Call stack for first leaked memory block is below:
----
        msvcr80d.dll!_heap_alloc_dbg(unsigned int nSize=12, int nBlockUse=1,
const char * szFileName=0x00000000, int nLine=0)  Line 369      C++
        msvcr80d.dll!_nh_malloc_dbg(unsigned int nSize=12, int nhFlag=0, int
nBlockUse=1, const char * szFileName=0x00000000, int nLine=0)  Line 266
+ 0x15 bytes    C++
        msvcr80d.dll!_malloc_dbg(unsigned int nSize=12, int nBlockUse=1,
const char * szFileName=0x00000000, int nLine=0)  Line 189 + 0x1b
bytes   C++
        msvcr80d.dll!_calloc_dbg(unsigned int nNum=1, unsigned int nSize=12,
int nBlockUse=1, const char * szFileName=0x00000000, int nLine=0)  Line
561 + 0x15 bytes        C++
        msvcr80d.dll!calloc(unsigned int nNum=1, unsigned int nSize=12)  Line
506 + 0x13 bytes        C++
        nspr4.dll!PR_Calloc(unsigned int nelem=1, unsigned int elsize=12)
Line 518 + 0xe bytes    C
>       nspr4.dll!PR_NewLogModule(const char * name=0x3003cda4)  Line 361 + 0x9 
> bytes   C
        nspr4.dll!_PR_InitStuff()  Line 185 + 0xa bytes C
        nspr4.dll!_PR_ImplicitInitialization()  Line 265        C
        nspr4.dll!PR_NewLogModule(const char * name=0x00503f40)  Line 361       
C
        xpcom_core.dll!`dynamic initializer for 'gTimerLog''()  Line 57 + 0xe
bytes   C++
        msvcr80d.dll!_initterm(void (void)* * pfbegin=0x00502104, void
(void)* * pfend=0x00502238)  Line 855   C
        xpcom_core.dll!_CRT_INIT(void * hDllHandle=0x00430000, unsigned long
dwReason=1, void * lpreserved=0x00000000)  Line 313 + 0xf bytes C
        xpcom_core.dll!__DllMainCRTStartup(void * hDllHandle=0x00430000,
unsigned long dwReason=1, void * lpreserved=0x00000000)  Line 489 +
0x11 bytes      C
        xpcom_core.dll!_DllMainCRTStartup(void * hDllHandle=0x00430000,
unsigned long dwReason=1, void * lpreserved=0x00000000)  Line 459 +
0x11 bytes      C
        NTDLL.DLL!77f8806c()
        [Frames below may be incorrect and/or missing, no symbols loaded for
NTDLL.DLL]
        NTDLL.DLL!77f8568b()
        NTDLL.DLL!77f8c618()
        NTDLL.DLL!77f8d483()
        NTDLL.DLL!77f9cefc()
        NTDLL.DLL!77fb2593()
        NTDLL.DLL!77fb0ffd()
        NTDLL.DLL!77fb0fd5()
        NTDLL.DLL!77fb0fd5()
        NTDLL.DLL!77f9bf98()
        NTDLL.DLL!77f9c1ea()
        NTDLL.DLL!77f9cc27()
        KERNEL32.DLL!7c5992ac()
        NTDLL.DLL!77f86775()
        NTDLL.DLL!77fcb74f()
        KERNEL32.DLL!7c59944f()
        NTDLL.DLL!77f85b43()
        KERNEL32.DLL!7c59077a()
        KERNEL32.DLL!7c5902ff()
        XPCOMTest1.exe!XPCOMGlueLoad(const char * xpcomFile=0x0012fe78)  Line
121 + 0xe bytes C++
        msvcr80d.dll!_unlock(int locknum=4306788)  Line 376     C
        XPCOMTest1.exe!XPCOMGlueStartup(const char * xpcomFile=0x0041b764)
Line 75 + 0x9 bytes     C++
        XPCOMTest1.exe!wmain(int argc=1, wchar_t * * argv=0x00366218)  Line
22 + 0x7 bytes  C++
        XPCOMTest1.exe!__tmainCRTStartup()  Line 583 + 0x19 bytes       C
        XPCOMTest1.exe!wmainCRTStartup()  Line 403      C
        KERNEL32.DLL!7c598989()
        NTDLL.DLL!77f85c09()
        NTDLL.DLL!77f85d6f()
        NTDLL.DLL!77f85d6f()
----

here line "lm = PR_NEWZAP(PRLogModuleInfo)" that makes an allocation in
PR_NewLogModule.

-- 
With best regards, Igor.

_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to