|
From: Tom H. <th...@cy...> - 2004-07-13 13:43:47
|
In message <Pin...@he...>
Nicholas Nethercote <nj...@ca...> wrote:
> Looks like a Valgrind bug. It's not catching replacing
> delete(nothrow) with its own version.
>
> To fix this requires knowing what the mangled name of delete(nothrow)
> is, but I don't know how to work this out... the one for new(nothrow)
> is _ZnwjRKSt9nothrow_t... maybe someone else can enlighten me.
A bit of playing with nm and c++filt on libstdc++.so suggests this:
_ZdaPvRKSt9nothrow_t operator delete[](void*, std::nothrow_t const&)
_ZdlPvRKSt9nothrow_t operator delete(void*, std::nothrow_t const&)
_ZnwjRKSt9nothrow_t operator new(unsigned, std::nothrow_t const&)
_ZnajRKSt9nothrow_t operator new[](unsigned, std::nothrow_t const&)
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|