Electric Fence

2000-02-24 Thread Robert Kerr
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

Re: Segfault in free(), electric-fence for C++ ?

1997-09-04 Thread Alex Yukhimets
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

Re: Segfault in free(), electric-fence for C++ ?

1997-09-04 Thread Hamish Moffatt
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

Re: Segfault in free(), electric-fence for C++ ?

1997-09-04 Thread Carey Evans
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

Re: Segfault in free(), electric-fence for C++ ?

1997-09-03 Thread E.L. Meijer \(Eric\)
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

Segfault in free(), electric-fence for C++ ?

1997-09-03 Thread Alex Yukhimets
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