[Valgrind-users] 答复: 答复: [HELP] I run the valgrind in the unreleased android version(arm32), I am confused by function stack. Can you show me why?

2018-04-12 Thread Wuweijia
Hi John You mean I need hide to the symbal operator new in libc.so ? So I trip the libc.so , so there is no symbals operator new in libc.so localhost:/system/bin # readelf -s ../lib64/libc++.so | grep Znam 696: 0005cd2044 FUNCWEAK DEFAULT 12 _ZnamRKSt9not

Re: [Valgrind-users] 答复: 答复: [HELP] I run the valgrind in the unreleased android version(arm32), I am confused by function stack. Can you show me why?

2018-04-12 Thread John Reiser
#include #include class Node{ public: int a; int b; }; extern "C" void demoNew(void) { Node *n0 = new Node; Node *n1 = (Node *)new char[sizeof(Node)]; printf("no=%p n1=%p\n", n0, n1); delete n0; delete[] n1; } int main(int a

[Valgrind-users] 答复: 答复: [HELP] I run the valgrind in the unreleased android version(arm32), I am confused by function stack. Can you show me why?

2018-04-12 Thread Wuweijia
Hi John: I wrote the simple example, error can re-producce. As below: #include #include class Node{ public: int a; int b; }; extern "C" void demoNew(void) { Node *n0 = new Node; Node *n1 = (Node *)new char[sizeof(Node)]; printf("no=%p n1