Hi all,
I have two questions about Electric Fence, in case anyone can help me.
1) Does EF work on C++ programs as well as it does on C programs?
2) What does it mean when my program aborts with:
ElectricFence Exiting: mmap() failed: Cannot allocate memory
?
thanks
--
-bob
Particle
ent variable
> MALLOC_CHECK_, i.e.:
>
Thanks a lot for everybody.
After linking with electric-fence, I finaly nailed the place I write off
the array boundary. After fixing that, I have no more segfaults in
destructor.
Thanks again. You
On Wed, Sep 03, 1997 at 05:07:11PM +0200, E.L. Meijer (Eric) wrote:
> > I have some strange problem with my C++ code: I get a segmentation fault
> > in destructor's delete[] operator. GDB says it happend in free().
> > What could be the cause of that? The only place I touch the pointer
> > I pass t
Alex Yukhimets <[EMAIL PROTECTED]> writes:
> I have some strange problem with my C++ code: I get a segmentation fault
> in destructor's delete[] operator. GDB says it happend in free().
> What could be the cause of that? The only place I touch the pointer
> I pass to delete[] is in the constructor
is extremely hard to pin down, especially in larger programs.
The simple fact that your program runs OK on one platform using one
compiler doesn't mean there are no errors which can turn out fatal with
different compilers or on different platforms. I have been able to
crash ddd on this particul
don't have this problem if compile the same code on IRIX.
I suspect that since I make quite large allocations, it may be a bug
in memory handling in either g++ library or linux kernel itself.
Do I have grounds for that?
And another thing, can I link electric-fence library with C++ code?
Thank
6 matches
Mail list logo