Re: BB Multiplicity

From: Christian Holm Christensen (cholm@hehi03.nbi.dk)
Date: Mon Jan 08 2001 - 06:51:36 EST

  • Next message: Flemming Videbaek: "Re: ZDC data reduction"

    Hi Yury, 
    
    On Fri, 05 Jan 2001 16:40:33 -0500
    Yury Blyakhman <Yury_B@physics.nyu.edu> wrote
    concerning ": Re: BB Multiplicity":
    >   I have some major difficulties making root2.25 to work with current
    > version of brat 
    
    You mean BRAT to work with ROOT right?
    
    > (it compiles OK, but my executables are crashing after
    > processing about 10 seqs of the run and some other minor and strange
    > problems. 
    
    How 'crashes'? SIGSEGV, SIGABR, what? 
    
    My suggestion, is to run it through GDB (assuming you are using a
    reasonable OS), and 'up' until you find the place in the code that
    makes it crash. You may wan't to turn of optimisation in the
    compilation of BRAT (remove flag '-O<x>' from CXXFLAGS, again assuming
    you are using a reasonable OS), so that some symbols doesn't
    'disappear' in the compiled code. 
    
    Also, try to execute your program, and watch it's memory consumption
    using "top" or similar. If your application seems to grow without
    apperant limits, you have a memory leak! That is, you do not free
     - "delete" or "free" -  unused memory allocated via "new" or
    "malloc". If your application at any one point consumes more then 75%
    of the total physical memory - that is the bare RAM, not the total
    virtual memory - then your application is likely to crash, and your
    system be left unstable as a sideeffect. Again, this is a memoory
    leak, and you should run GDB to get a clear understanding as to where
    in the code it pops up. 
    
    > Same codes behave OK under root2.24 or if I use smbd. 
    
    First of, you should investigate the Changelog for ROOT, so that you
    can get a clear idea as to what relevant changes where made between
    the two releases. This may seem very tidous, but you will profit from
    this exercise. 
    
    Second, and this doesn't mean you shoulnd't look at the Changelog, you
    should realise that 'ownership' of objects in TCollection - and it's
    children - are handled slightly different in 2.25 and 2.24. You can
    not assume, as you delete a TCollection, that the contained objects
    are alos deleted. 
    
    Third, and this is a general plea, when shifting to a new ROOT
    version, I strongly suggest you browse through the Changelog to
    figure out what's the differences are. 
    
    Fourth, what the hell is "smbd"? Do you mean SMP? 
    
    > else's brat as $BRATSYS), 
    
    What do you mean? BRAT is always in BRATSYS. 
    
    Yours, 
    
    Christian  -----------------------------------------------------------
    Holm Christensen                             Phone:  (+45) 35 35 96 91 
      Sankt Hansgade 23, 1. th.                  Office: (+45) 353  25 305 
      DK-2200 Copenhagen N                       Web:    www.nbi.dk/~cholm    
      Denmark                                    Email:       cholm@nbi.dk
    



    This archive was generated by hypermail 2b29 : Mon Jan 08 2001 - 06:53:11 EST