electric-fence Questions
4
Solved
I've been experimenting with Electric Fence lately and I can't figure out how to use it with c++ code.
Here's an example:
// test.cpp
#include <cstdlib>
using namespace std;
int main() ...
Echo asked 29/2, 2012 at 7:8
1
Solved
std::map<int,int> bar;
int foo(int key)
{
bar.erase(key);
return 1;
}
int main()
{
bar[0] = foo(0);
return 0;
}
This code compiled with GCC 4.8 segs fault when checking memory usage ...
Bot asked 14/10, 2015 at 17:33
5
Solved
I have created a buggy program - buggy.c - this is a buffer-overflow scenario for buffer t.
You can see that I am writing more than 5 indexes. It works fine. It never throws me an error. I was wond...
Novobiocin asked 6/10, 2013 at 10:25
2
When debugging a program that terminates with a segfault, electric fence, in conjunction with gdb, returns this:
"ElectricFence Exiting: mprotect() failed: Cannot allocate memory
[Thread 0xb0bd4b7...
Romantic asked 15/11, 2010 at 21:54
3
Solved
I recently encountered my first battle (solved) with heap corruption. On my linux machine at home the culprit code exits without error using valgrind and electric-fence(with gdb). Yet on the window...
Faa asked 25/4, 2011 at 3:1
1
© 2022 - 2024 — McMap. All rights reserved.