ElectricFence Aborting: Allocating 0 bytes, probably a bug

Fedora Core 4 with all updates as of today

root 5.04/00 compiled with Electric Fence in debug mode.

trying to compile my application:

Generating DICTIONARY for LegsEvent.h

Electric Fence 2.2.0 Copyright © 1987-1999 Bruce Perens bruce@perens.com

ElectricFence Aborting: Allocating 0 bytes, probably a bug.

ALSO, in other classes, which compile ok I see:

LegsMakerDeadOrAlifeDict.cxx: In function ‘void G__set_cpp_environmentLegsMakerDeadOrAlifeDict()’:
LegsMakerDeadOrAlifeDict.cxx:20: error: expected }' at end of input make[1]: *** [LegsMakerDeadOrAlifeDict.o] Error 1 LegsMakerCosmicsCGDict.cxx: In function 'void G__set_cpp_environmentLegsMakerCosmicsCGDict()': LegsMakerCosmicsCGDict.cxx:20: error: expected}’ at end of input
make[1]: *** [LegsMakerCosmicsCGDict.o] Error 1

The reason I started to do this checks is because I see a lot of memory reallocation errors of kind: old size X should have been Y during creation of subset root files.

Seems like a nasty memory allocation errors in rootcint and maybe somewhere in root as well.

Has rootcint and/or root been tried with Electric Fence before by somebody ?
How to proceed with locating errors ?
LegsEvent.h (16.8 KB)
LegsMakerDeadOrAlife.h (902 Bytes)

[ardashev@legsux5 src]$ gdb rootcint
GNU gdb Red Hat Linux (6.3.0.0-1.21rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type “show copying” to see the conditions.
There is absolutely no warranty for GDB. Type “show warranty” for details.
This GDB was configured as “i386-redhat-linux-gnu”…Using host libthread_db library "/lib/libt

(gdb) run -f LegsEventDict.cxx -c LegsEvent.h
Starting program: /home/ardashev/root/bin/rootcint -f LegsEventDict.cxx -c LegsEvent.h
Reading symbols from shared object read from target memory…done.
Loaded system supplied DSO at 0x77c000

Electric Fence 2.2.0 Copyright © 1987-1999 Bruce Perens bruce@perens.com

ElectricFence Aborting: Allocating 0 bytes, probably a bug.

Program received signal SIGILL, Illegal instruction.
0x0077c402 in __kernel_vsyscall ()
(gdb)

trying to generate a dictionary with rootcint linked to libefence.so
and no luck whatsoever on Fedora Core 3 also:

Electric Fence 2.2.0 Copyright © 1987-1999 Bruce Perens bruce@perens.com
/home/sasy/root/bin/rootcint: symbol lookup error: /home/sasy/root/bin/rootcint: undefined symbol: G__set_ioctortype_handler

Hi,

I do not have any experience with Electric Fence. I prefer to use valgrind which does not require a full recompile.

One of the possible cause I can think of is that the cintdlls where not build with electric fence (see $ROOTSYS/build/unix/makecintdlls.sh)

Cheers,
Philippe.