casseopea2 / gperftools

Automatically exported from code.google.com/p/gperftools
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

google-perftools-0.99.1 tcmalloc_minimal_unittest crashes #86

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Build release solution of tcmalloc_minimal using Visual Studio 2005 SP1
and all sample VSProjects.
2. Made sure that tcmalloc_minimal was was linked with "Multithreaded DLL" 
(Compiler flags : /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D
"LIBTCMALLOC_MINIMAL_EXPORTS" /D "_VC80_UPGRADE=0x0710" /D "_WINDLL" /D
"_MBCS" /FD /EHsc /MD /Fo"Release\\" /Fd"Release\vc80.pdb" /W3 /nologo /c
/Wp64 /Zi /TP /errorReport:prompt)
3. Release version of tcmalloc_minimal_unittest.exe crashes when run; call
stack -
>   libtcmalloc_minimal.dll!do_free(void * ptr=0x00376508)  Line 2764   C++
    libtcmalloc_minimal.dll!operator delete[](void * p=0x00376508, const
std::nothrow_t & __formal={...})  Line 2975 + 0x6 bytes C++
    msvcr80.dll!_freefls(void * data=0x00376508)  Line 751 + 0x6 bytes  C
    msvcr80.dll!_freeptd(_tiddata * ptd=0x00000000)  Line 804 + 0x6 bytes   C
    msvcr80.dll!__CRTDLL_INIT(void * hDllHandle=0x78130000, unsigned long
dwReason=3, void * lpreserved=0x00000000)  Line 457 + 0x6 bytes C
    msvcr80.dll!_CRTDLL_INIT(void * hDllHandle=0x78130000, unsigned long
dwReason=3, void * lpreserved=0x00000000)  Line 214 + 0x11 bytes    C
    NTDLL.DLL!7c90118a()    
    [Frames below may be incorrect and/or missing, no symbols loaded for
NTDLL.DLL]  
    NTDLL.DLL!7c913a23()    
    libtcmalloc_minimal.dll!do_free(void * ptr=0x1002b5a0)  Line 2788   C++
    KERNEL32.DLL!7c80c126()     
    KERNEL32.DLL!7c80b719()     

What version of the product are you using? On what operating system?
google-perftools-0.99.1.zip, Windows XP and MS Visual Studio 2005 SP1

Please provide any additional information below.
Call stack of the crash and bit map file attached.

Original issue reported on code.google.com by kka...@gmail.com on 24 Nov 2008 at 6:56

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by `` on 18 Jan 2012 at 9:28

GoogleCodeExporter commented 9 years ago
In perftools 0.99, tcmalloc on windows is really only reliable in debug mode --
release mode has problems with how windows allocates and deallocates memory on
startup.  I'm working steadily on major windows improvements for perftools 1.0, 
which
I hope will fix this issue.

Original comment by csilv...@gmail.com on 24 Nov 2008 at 9:07