-
Notifications
You must be signed in to change notification settings - Fork 264
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
false positive INVALID HEAP ARGUMENT (new/delete mismatch) error in v8.dll #1625
Comments
From zhao...@google.com on September 12, 2014 12:50:35 We already have internal code to turn it off for any case with msvcr*.dll being involved, maybe we can extend from that. v8!operator delete: they all pointing to the MSVCR120 version of routines, we can decode a bit and then decide if we need disable mismatch detection. |
From zhao...@google.com on September 12, 2014 13:47:58 |
From bruen...@google.com on September 13, 2014 09:36:49 what was the resolution of issue #1058 ? it looks very similar |
From zhao...@google.com on September 15, 2014 07:57:32 the test is excluded, so I do not think we solve that issue. Status: Duplicate |
From zhao...@google.com on September 15, 2014 13:58:26 This might be a more general problem for VS2013 #include <stdio.h> build it with CL and debug build ConsoleApplication3.cpp /out:ConsoleApplication3.exe We can see that the compiler is able to use new/delete instead of new[] and delete[] ConsoleApplication3!main: |
From zhao...@google.com on September 15, 2014 14:08:16 actually, vs2010 produce similar code using new/delete. |
From zhao...@google.com on September 15, 2014 14:29:45 for VS2013, even with more complicated code, it still use new/delete #include <stdio.h> class mismatch { private: void mismatch::resize(size_t new_size) int main(int argc, char* argv[]) It first use use new to allocate memory, then calls So no new/delete is not called at all. Similar thing happens for VS 2010. There should be some path that trigger the compiler to use new[] and delete[] and some path not, which may cause false-positive mismatch. |
From zhao...@google.com on September 12, 2014 15:34:58
xref crbug.com/413215
Original issue: http://code.google.com/p/drmemory/issues/detail?id=1625
The text was updated successfully, but these errors were encountered: