Re: [ROOT] rootcint segfault.

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Jan 31 2002 - 08:04:52 MET


Hi Brett,

I can reproduce the problem. We will investigate.
Meanwhile, I suggest the use of Bool_t instead of bool.

Rene Brun

Brett Viren wrote:
> 
> Hi ROOT team,
> 
> I am experiencing segfaults with rootcint after 3.02/06, (3.02/07 and
> CVS as of today).  It seems to be due to how rootcint handles
> templates specialized for type "bool" (the real bool, not Bool_t).  I
> am sorry that I can't trace this to the heart of the problem but even
> looking at rootcint stack traces in GDB makes my head hurt.
> 
> However using the attached file and doing:
> 
> tar -xzf Registry.tgz
> cd Registry/
> rootcint -f RegistryCint.cc -c -I. -I.. Registry.h  LinkDef.h
> 
> should reproduce the segfault.  I hope the experts can understand
> things better.
> 
> Note, commenting out the LinkDef.h entry for RegistryItemXxx<bool>
> allows the rootcint command to succeed.  Of course, then there is no
> dictionary....
> 
> Platform: Debian x86, gcc 2.95, root 3.02/07 and CVS.
> 
> Thanks,
> -Brett.
> 
>   --------------------------------------------------------------------------------
> 
>                       Name: Registry.tgz
>    Registry.tgz       Type: Unix Tape Archive (application/x-tar)
>                   Encoding: base64



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:40 MET