[TriLUG] electric Fence help

Ralph Blach rcblach at blach.dnsalias.org
Sat May 28 12:02:40 EDT 2005


I am asking for help using electric fence.

I have compile a simple test program, which has an obvious error, on 
purpose,

main ()
{
         char * p;
         unsigned long i;
         p=(char *) malloc (1000);
         for(i=0;i<100000;i++)
         {
                 p[i]=i;
         }
}



I then use the line in my shell
  export  LD_PRELOAD=libefence.so.0.0

When I try to use gdb

I get this error
  gdb testp

   Electric Fence 2.2.0 Copyright (C) 1987-1999 Bruce Perens 
<bruce at perens.com>

ElectricFence Aborting: Allocating 0 bytes, probably a bug.
Illegal instruction

If I do not put in the preload of the electric fence
gdb starts normally.

Any ideas?

Chip






More information about the TriLUG mailing list