Re: [ROOT] fClean not getting set in TThread - bug or mistake?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Sat Jun 02 2001 - 19:22:43 MEST


Hi Victor, Peter,

Thanks for reporting this. Now fixed in the CVS version.

Rene Brun

On Sat, 2 Jun 2001, Victor Perevoztchikov wrote:

> Hi Peter,
> as I see, TThread::fClean is not nullified in any TThread ctr.
> Probably you do not use ROOT NewDelete who is doing it
> Anyway, of course it must be preset to zero in ctr. It is my fault.
> 
> Fons, could you add it into TThread.cxx
> 
> Victor
> 
> 
> ====================================================================================
> Peter Gallanis wrote:
> 
> I've been trying to resolve a segmentation violation in a standalone thread 
> application (Intel/Linux 7.1/Root 3.00/06).  It blows up in TPosixThreadCleanUp:
> :TPosixThreadCleanUp apparently going through a chain of cleanup routines. 
>  Line 126 attempts to call 'main'  which is an argument passed in by
>   TPosixThread::CleanUpPush, which is apparently set from fClean.  
>   However, in searching the source, I can not see anywhere that fClean is getting set
>   , not in any of the constructors nor in Thread::Constructor. 
>    The value being passed by TPosixThread::CleanUpPush fro mainis 0x4
>     (which certainly can explain the segmentation violation). 
>     Was I supposed to explicitly set a clean up routine?
> 
> BTW - root running the CalcPi demo also gets a segmentation violation as well, but that's a little more difficult to track with gdb,
> so I assume it's the same problem.
> 
> Any help would be appreciated.
> 
> Thank you,
> Peter Gallanis
> 
> > 
> >    Part 1.1    Type: Plain Text (text/plain)
> >            Encoding: quoted-printable
> 
> -- 
> Victor M. Perevoztchikov   perev@bnl.gov  perev@vxcern.cern.ch       
> Brookhaven National Laboratory MS 510A PO Box 5000 Upton NY 11973-5000
> tel office : 631-344-7894; fax 631-344-4206; home 631-345-2690
> 



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:47 MET