RE: [ROOT] shared libs

From: Philippe Canal (pcanal@fnal.gov)
Date: Wed Oct 06 2004 - 19:41:35 MEST


Hi,

This problem was fixed in ROOT 4.01/02.

Cheers,
Philippe. 

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch]
On Behalf Of Margar SIMONYAN
Sent: Wednesday, October 06, 2004 4:22 PM
To: Rene Brun
Cc: Rene Brun; roottalk@pcroot.cern.ch
Subject: Re: [ROOT] shared libs

Dear Rene

I found the shortes way to reproduc the problem which has nothink to do with
my classes.

This is test1.cpp macro
{
TFile * file = new
TFile("/home/margar/TileData/2004/ntuple_870_2100033.root" , "READ"); TTree
* tree = (TTree *) file->Get("TileRec/h1000");
tree->AddFriend("TB/tree");
tree->Draw("SC1");
tree->Draw("Eh_EMB[0]");   //Eh_EMB[0] belongs to TB/tree
gROOT->ProcessLine(".q");
}

if I comment tree->AddFriend("TB/tree") and tree->Draw("Eh_EMB[0]") then
everythink is fine the same root file could be found on castor
/castor/cern.ch/user/v/vgiangio/RecExTB-00-00-41/ntup/ntuple_870_2100033.roo
t

this is output of gdb and root

simonyan -> gdb root.exe
GNU gdb Red Hat Linux (5.2-2)
Copyright 2002 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"...
(gdb) run
Starting program: 
/afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/bin/root.exe
[New Thread 1024 (LWP 11622)]
  *******************************************
  *                                         *
  *        W E L C O M E  to  R O O T       *
  *                                         *
  *   Version   4.00/08       9 July 2004   *
  *                                         *
  *  You are welcome to visit our Web site  *
  *          http://root.cern.ch            *
  *                                         *
  *******************************************

FreeType Engine v2.1.3 used to render TrueType fonts.
Compiled for linux with thread support.

CINT/ROOT C/C++ Interpreter version 5.15.138, May 23 2004 Type ? for help.
Commands must be C++ statements.
Enclose multiple statements between { }.
root [0]
root [0] .x test1.`
tab completion not implemented for this context root [0] .x test1.cpp
<TCanvas::MakeDefCanvas>: created default TCanvas with name c1

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 11622)]
0x4207ad9e in chunk_free () from /lib/i686/libc.so.6
(gdb) bt
#0  0x4207ad9e in chunk_free () from /lib/i686/libc.so.6
#1  0x4207ad24 in free () from /lib/i686/libc.so.6
#2  0x4127f4b6 in __builtin_delete (ptr=0x9570e9c) at
../../gcc/cp/new2.cc:-1
#3  0x4015eb1b in TAttLine::~TAttLine ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCore.so
#4  0x40f84a33 in TFriendElement::DisConnect ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libTree.so
#5  0x40f84981 in TFriendElement::~TFriendElement ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libTree.so
#6  0x401e05cc in TCollection::GarbageCollect ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCore.so
#7  0x401e63dc in TList::Delete ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCore.so
#8  0x40f8d3ca in TTree::~TTree ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libTree.so
#9  0x401e05cc in TCollection::GarbageCollect ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCore.so
#10 0x401e63dc in TList::Delete ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCore.so
#11 0x401e440c in THashList::Delete ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCore.so
#12 0x4016c6f0 in TDirectory::~TDirectory ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCore.so
---Type <return> to continue, or q <return> to quit---
#13 0x401eaab7 in TObjectTable::Delete ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCore.so
#14 0x401e04b1 in TCollection::EmptyGarbageCollection ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCore.so
#15 0x401771c2 in TFile::Close ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCore.so
#16 0x40175bce in TFile::~TFile ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCore.so
#17 0x401e05cc in TCollection::GarbageCollect ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCore.so
#18 0x401e635c in TList::Delete ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCore.so
#19 0x401a5740 in TROOT::~TROOT ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCore.so
#20 0x401aacc0 in __tcf_0 ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCore.so
#21 0x4202bf1c in __cxa_finalize () from /lib/i686/libc.so.6
#22 0x40155d19 in __do_global_dtors_aux ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCore.so
#23 0x40535609 in _fini ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCore.so
#24 0x4000bb52 in _dl_fini () from /lib/ld-linux.so.2
#25 0x4202bc5b in exit () from /lib/i686/libc.so.6 ---Type <return> to
continue, or q <return> to quit---
#26 0x40264ebd in TUnixSystem::Exit ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCore.so
#27 0x4121228d in TRint::Terminate ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libRint.so
#28 0x4015ad76 in TApplication::ProcessLine ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCore.so
#29 0x401a9f8f in TROOT::ProcessLine ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCore.so
#30 0x4035e708 in G__G__Base2_174_8_8 ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCore.so
#31 0x407f01c4 in G__call_cppfunc ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCint.so
#32 0x407de7a4 in G__interpret_func ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCint.so
#33 0x407c34f9 in G__getfunction ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCint.so
#34 0x408591ef in G__getstructmem ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCint.so
#35 0x40851f2a in G__getvariable ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCint.so
#36 0x407b84e1 in G__getitem ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCint.so
#37 0x407b6a69 in G__getexpr ()
---Type <return> to continue, or q <return> to quit---
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCint.so
#38 0x40808542 in G__exec_function ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCint.so
#39 0x40810288 in G__exec_statement ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCint.so
#40 0x4079cedd in G__exec_tempfile_core ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCint.so
#41 0x4079d0ee in G__exec_tempfile ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCint.so
#42 0x40818f44 in G__process_cmd ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCint.so
#43 0x401efea4 in TCint::ProcessLine ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCore.so
#44 0x401effb4 in TCint::ProcessLineSynch ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCore.so
#45 0x4015baba in TApplication::ProcessFile ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCore.so
#46 0x4015b200 in TApplication::ProcessLine ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCore.so
#47 0x41212047 in TRint::HandleTermInput ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libRint.so
#48 0x412112ac in TTermInputHandler::Notify ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libRint.so
---Type <return> to continue, or q <return> to quit---
#49 0x4121281f in TTermInputHandler::ReadNotify ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libRint.so
#50 0x4026385b in TUnixSystem::CheckDescriptors ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCore.so
#51 0x40262d55 in TUnixSystem::DispatchOneEvent ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCore.so
#52 0x401b9e8a in TSystem::InnerLoop ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCore.so
#53 0x401b9e2e in TSystem::Run ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCore.so
#54 0x4015becb in TApplication::Run ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libCore.so
#55 0x41211aa8 in TRint::Run ()
   from /afs/cern.ch/sw/root/v4.00.08/rh73_gcc296/root/lib/libRint.so
#56 0x08048835 in main ()
#57 0x42017589 in __libc_start_main () from /lib/i686/libc.so.6
(gdb)
(gdb)



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET