New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LEAK (C++ exception in app built w/ mingw g++ 4.5.2) #1043
Comments
From bruen...@google.com on February 20, 2013 11:38:26 xref issue #1134 xref the leak mentioned here, in gcc's libgcc/config/i386/gthr-win32.c,
|
From bruen...@google.com on February 20, 2013 11:46:31 although I have not taken the time to prove it, most likely this is a real leak so I'm going to add a suppression Labels: -Bug-FalsePositive ThirdParty-Bug |
From bruen...@google.com on February 20, 2013 11:48:34 for the record, this shows up on the test app listed in issue #1134 |
From bruen...@google.com on February 20, 2013 11:54:21 Actually, the reason the mingw key dtors aren't freeing the memory may be TlsGetValue() will fail b/c TlsFree was already called (that's the issue #1134 bug) and thus the destructor won't be called, at least from looking at the |
From bruen...@google.com on February 20, 2013 13:08:30 |
From derek.br...@gmail.com on February 21, 2013 13:42:50 This issue was closed by revision r1190 . Status: Fixed |
From bruen...@google.com on October 08, 2012 09:04:56
i686-pc-mingw32-g++.exe -static-libgcc -static-libstdc++ -ggdb -o cs2bug-mingw-4.5.2.exe cs2bug.cpp
~/drmemory/git/build_x86_dbg/bin/drmemory.exe -dr d:/derek/dr/git/exports -batch -- ./cs2bug-mingw-4.5.2.exe
in addition to the expected errors we have:
Error
#8
: UNADDRESSABLE ACCESS: reading 0x7efdde1c-0x7efdde20 4 byte(s)=> issue #623 Error
#10
: LEAK 8 direct bytes 0x00d1d078-0x00d1d080 + 0 indirect bytes#0 __cxa_get_globals [/usr/src/packages/mingw-gcc/mingw-gcc-4.5.2-1/src/gcc-4.5.2/libstdc++-v3/libsupc++/eh_globals.cc:132]
#1 __cxa_allocate_exception [/usr/src/packages/mingw-gcc/mingw-gcc-4.5.2-1/src/gcc-4.5.2/libstdc++-v3/libsupc++/eh_alloc.cc:132]
#2 test_exception() [/d/derek/dr/test/cs2bug.cpp:165]
#3 main [/d/derek/dr/test/cs2bug.cpp:206]
Original issue: http://code.google.com/p/drmemory/issues/detail?id=1043
The text was updated successfully, but these errors were encountered: