RE: [ROOT] crash in TFormLeafInfoClones::GetValue(TLeaf *, int)

From: Philippe Canal (pcanal@fnal.gov)
Date: Fri May 02 2003 - 16:34:20 MEST


Hi Walter,

Can you give me access to your ROOT file so that I can reproduce the
problem?

>   tree->Draw("pct.t.amp[0]:pct.t.xo");
> works, but of course displays a different correlation (usually
> not the intended one).

This should be the same as tree->Draw("pct.t.amp[0][]:pct.t.xo"); (which is
different for the other call you mentioned).  How is it different from what
you expect?

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Walter F.J. Mueller
Sent: Friday, May 02, 2003 8:55 AM
To: roottalk
Subject: [ROOT] crash in TFormLeafInfoClones::GetValue(TLeaf *, int)


Dear ROOTers,			using 3.05/04/Linux/gcc 2.95.4

I'm using the TTree::Draw() command with a split tree with about
200 branches, mostly derived from TClonesArray's. There is for
example in main branch "pct." a TClonesArray called "t", which
in turn has members "xo" and "amp[4]". The commands

   tree->Draw("pct.t.amp[][0]:pct.t.xo");
   tree->Draw("pct.amp[][0]:pct.xo");

work as expected and iterates for all events over all elements of
"t" and plots "amp[0]" vs "xo". The Branch "pct." has only a few
direct members, so "t" can be omitted without causing ambiguities.

The command

   tree->Draw("pct.amp[0]:pct.xo");

on the other hand just crashes root with a 'segmentation violation'
in TFormLeafInfoClones::GetValue(TLeaf *, int). A detailed traceback
is also appended.

Finally the command

   tree->Draw("pct.t.amp[0]:pct.t.xo");

works, but of course displays a different correlation (usually
not the intended one).

			Cheers,	Walter


---------------------

*Branch  :pct.
*
*Entries :    20224 : BranchElement (see below)
*
*...........................................................................
.*
*Br   90 :pct.TAGdata.fUniqueID :
*
*Entries :    20224 : Total  Size=      93570 bytes  File Size  =        274
*
*Baskets :        2 : Basket Size=      32000 bytes  Compression= 233.55
*
.
.
.
*Br   93 :pct.t     : pct.t_
*
*Entries :    20224 : Total  Size=     725275 bytes  File Size  =       9469
*
*Baskets :        2 : Basket Size=      32000 bytes  Compression=   6.76
*
.
.
.
*Br  100 :pct.t.amp[4] : amp[pct.t_]
*
*Entries :    20224 : Total  Size=     783945 bytes  File Size  =     607993
*
*Baskets :       26 : Basket Size=      32000 bytes  Compression=   1.24
*
.
.
.
*Br  105 :pct.t.xo  : xo[pct.t_]
*
*Entries :    20224 : Total  Size=     266286 bytes  File Size  =     190227
*
*Baskets :       10 : Basket Size=      32000 bytes  Compression=   1.28
*
.
.
.

---------------------

root [1] tree->Draw("pct.amp[][0]:pct.xo")
<TCanvas::MakeDefCanvas>: created default TCanvas with name c1
root [2] tree->Draw("pct.amp[0]:pct.xo")

*** Break *** segmentation violation
  Generating stack trace...
  0x401e0425 in TUnixSystem::StackTrace(void) + 0x2a1 from
..../libCore.so.3.05
  0x401dedff in TUnixSystem::DispatchSignals(ESignals) + 0xbf from
..../libCore.so.3.05
  0x401ddf8b in <unknown> from ..../libCore.so.3.05
  0x401e1ca7 in <unknown> from ..../libCore.so.3.05
  0x40e76f54 in <unknown> from /lib/libpthread.so.0
  0x40f156b8 in <unknown> from /lib/libc.so.6
  0x41686592 in TFormLeafInfoClones::GetValue(TLeaf *, int) + 0xb2 from
..../libTreePlayer.so
  0x41691819 in TTreeFormula::EvalInstance(int) + 0x3c9 from
..../libTreePlayer.so
  0x41683b6c in TSelectorDraw::ProcessFillMultiple(int) + 0x240 from
..../libTreePlayer.so
  0x416837ee in TSelectorDraw::ProcessFill(int) + 0x4e from
..../libTreePlayer.so
  0x416a07b9 in TTreePlayer::Process(TSelector *, char const *, int, int) +
0x25d from ..../libTreePlayer.so
  0x4169a80f in TTreePlayer::DrawSelect(char const *, char const *, char
const *, int, int) + 0x12f from ..../libTreePlayer.so
  0x40cf65b4 in TTree::Draw(char const *, char const *, char const *, int,
int) + 0x5c from ..../libTree.so.3.05


--
Walter F.J. Mueller   Mail:  W.F.J.Mueller@gsi.de
GSI,  Abteilung KP3   Phone: +49-6159-71-2766
D-64291 Darmstadt     FAX:   +49-6159-71-2989
WWW:   http://www-kp3.gsi.de/www/kp3/people/mueller.html


#################################################################
#################################################################
#################################################################
#####
#####
#####
#################################################################
#################################################################
#################################################################



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:11 MET