|
From: L.P. M. <mer...@cs...> - 2004-10-20 08:31:27
|
Hello,
When I was trying to leak detect one program of me, for some reason, I got
this error:
Memcheck: the `impossible' happened:
add_MAC_chunk: shadow area is accessible
Basic block ctr is approximately 0
Now, I found out that this is caused by some error-checking that the
client is able to access the memory used by the checker, but this results
in me unable to check leaks. The code *really* doesn't do anything
special:
in Main.cc:
int main () {
std::cout << "foo" << std::endl;
A * a = new A (10);
}
in A.cc :
A::A(int num) {
std::cout << "bar" << std::endl;
}
That's basically the idea of the class... the program normally *does* run,
but under valgrind, it prints out "foo" and then no more. Anyone has any
idea what might be going wrong ? Thanks in advance!
Grt,
Leon Mergen
|
|
From: Nicholas N. <nj...@ca...> - 2004-10-20 09:26:01
|
On Wed, 20 Oct 2004, L.P. Mergen wrote: > When I was trying to leak detect one program of me, for some reason, I got > this error: > > Memcheck: the `impossible' happened: > add_MAC_chunk: shadow area is accessible > Basic block ctr is approximately 0 That's come up a number of times before, we haven't worked out why. You can try just commenting out the assertion in memcheck/mac_malloc_wrappers.c and it may still work... N |
|
From: Dennis L. <pla...@gm...> - 2004-10-20 10:57:13
|
At 10:31 20.10.2004, you wrote: >Hello, > >That's basically the idea of the class... the program normally *does* run, >but under valgrind, it prints out "foo" and then no more. Anyone has any >idea what might be going wrong ? Thanks in advance! Hm, such a simple program runs here fine. So we can see your error too you should : - tell us your compiler, kernel, distro etc. - create a one-file simple-as-possible testcase that gives the same error. - tell us about any unusual changes to your system (security kernel patches, strange limites etc.) greets Dennis Carpe quod tibi datum est |