Library problem

Hi all
the following code i am using to see sthe spectrums it is worrking fine on FedoraCore5
but on Scientific Linux 5.2 it shows break segmentation which i am mentioning at the end
is there is any missing library in SL5.2

[code]#include<iostream.h>
#include “TTree.h”
#include “TFile.h”
#include “TH1F.h”
#include “TString.h”

#define MAXSAMPLES 200

void treetest2(const char* filename, int card, int channel)
{
TFile myfile = new TFile(filename);
TTree tree = (TTree)myfile->Get(“UnpackxTree”);
TXXXUnpackEvent
event= new TXXXUnpackEvent(“input”);
TObjArray* blist = tree->GetListOfBranches();
TBranch* topb= (TBranch*) blist->At(0);
TString topname;
if(topb)
{
topname=topb->GetName();
cout <<"Found top branch "<<topname << endl;
}
tree->SetBranchAddress(topname, &event);
TString hname;
hname.Form(“Card_%d_Channel_%d”,card,channel);
TString htitle;
htitle.Form(“Sum of card %d, channel %d”,card,channel);
TH1F *his = new TH1F(hname, htitle, MAXSAMPLES, 0, MAXSAMPLES);
tree->GetEntries();
for (Int_t i=0;i<1;i++) {
tree->GetEntry(i);
// now take a sample from event structure:
for(int samp=0;samp<MAXSAMPLES;++samp)
{
Short_t value=event->fCards[card]->GetData(channel,samp); // access data from event structure

    his->Fill(samp,value);
  
}

}
his->Draw();
}

[root@localhost Go4Example2Step]# root -l
root [0] .X treetest.C(“SCAN3DTRIPLE_0002_XXXEvent.root”,3,0)
Found top branch test.

*** Break *** segmentation violation
(no debugging symbols found)
Attaching to program: /proc/4591/exe, process 4591
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
[Thread debugging using libthread_db enabled]
[New Thread 0x2b8163a69210 (LWP 4591)]
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
0x0000003576099335 in waitpid ()
from /lib64/libc.so.6
#1 0x000000357603c2e1 in do_system () from /lib64/libc.so.6
#2 0x00002b8162156492 in TUnixSystem::StackTrace ()
from /home/davinder/go4/root/lib/libCore.so
#3 0x00002b8162154d5a in TUnixSystem::DispatchSignals ()
from /home/davinder/go4/root/lib/libCore.so
#4
#5 0x00002b8168632bd7 in ~TXXXUnpackEvent (this=0xfef7150)
at TXXXUnpackEvent.cxx:77
#6 0x00002b8162124144 in TClass::BuildRealData ()
from /home/davinder/go4/root/lib/libCore.so
#7 0x00002b8163ce8655 in TStreamerInfo::BuildOld ()
from /home/davinder/go4/root/lib/libRIO.so
#8 0x00002b816211e393 in TClass::GetStreamerInfo ()
from /home/davinder/go4/root/lib/libCore.so
#9 0x00002b81645c9fc2 in TBranchElement::InitInfo ()
from /home/davinder/go4/root/lib/libTree.so
#10 0x00002b81645c3a45 in TBranchElement::GetInfo ()
from /home/davinder/go4/root/lib/libTree.so
#11 0x00002b81645ff508 in TTree::CheckBranchAddressType ()
from /home/davinder/go4/root/lib/libTree.so
#12 0x00002b81645fd42b in TTree::SetBranchAddress ()
from /home/davinder/go4/root/lib/libTree.so
#13 0x00002b81645b61c3 in G__ManualTree2_126_0_190 ()
from /home/davinder/go4/root/lib/libTree.so
#14 0x00002b81628ec91d in Cint::G__ExceptionWrapper ()
from /home/davinder/go4/root/lib/libCint.so
#15 0x00002b816299766c in G__execute_call ()
from /home/davinder/go4/root/lib/libCint.so
#16 0x00002b8162998400 in G__call_cppfunc ()
from /home/davinder/go4/root/lib/libCint.so
#17 0x00002b8162971e18 in G__interpret_func ()
from /home/davinder/go4/root/lib/libCint.so
#18 0x00002b8162961b3f in G__getfunction ()
from /home/davinder/go4/root/lib/libCint.so
#19 0x00002b8162a44489 in G__getstructmem ()
from /home/davinder/go4/root/lib/libCint.so
#20 0x00002b8162a3a98d in G__getvariable ()
from /home/davinder/go4/root/lib/libCint.so
#21 0x00002b8162935a9c in G__getitem ()
from /home/davinder/go4/root/lib/libCint.so
#22 0x00002b816293cd5b in G__getexpr ()
from /home/davinder/go4/root/lib/libCint.so
#23 0x00002b81629c6321 in G__exec_statement ()
from /home/davinder/go4/root/lib/libCint.so
#24 0x00002b8162973cae in G__interpret_func ()
from /home/davinder/go4/root/lib/libCint.so
#25 0x00002b8162961b98 in G__getfunction ()
from /home/davinder/go4/root/lib/libCint.so
#26 0x00002b8162935c04 in G__getitem ()
from /home/davinder/go4/root/lib/libCint.so
#27 0x00002b816293cd5b in G__getexpr ()
from /home/davinder/go4/root/lib/libCint.so
#28 0x00002b8162949270 in G__calc_internal ()
from /home/davinder/go4/root/lib/libCint.so
#29 0x00002b81629cede9 in G__process_cmd ()
from /home/davinder/go4/root/lib/libCint.so
#30 0x00002b8162146647 in TCint::ProcessLine ()
from /home/davinder/go4/root/lib/libCore.so
#31 0x00002b8162146253 in TCint::ProcessLineSynch ()
from /home/davinder/go4/root/lib/libCore.so
#32 0x00002b816209146b in TApplication::ExecuteFile ()
from /home/davinder/go4/root/lib/libCore.so
#33 0x00002b816208ef58 in TApplication::ProcessLine ()
from /home/davinder/go4/root/lib/libCore.so
#34 0x00002b816381d7b1 in TRint::HandleTermInput ()
from /home/davinder/go4/root/lib/libRint.so
#35 0x00002b816381c177 in TTermInputHandler::Notify ()
from /home/davinder/go4/root/lib/libRint.so
#36 0x00002b816381e0bd in TTermInputHandler::ReadNotify ()
from /home/davinder/go4/root/lib/libRint.so
#37 0x00002b8162154993 in TUnixSystem::CheckDescriptors ()
from /home/davinder/go4/root/lib/libCore.so
#38 0x00002b8162155408 in TUnixSystem::DispatchOneEvent ()
from /home/davinder/go4/root/lib/libCore.so
#39 0x00002b81620e1626 in TSystem::InnerLoop ()
from /home/davinder/go4/root/lib/libCore.so
#40 0x00002b81620e4a01 in TSystem::Run ()
from /home/davinder/go4/root/lib/libCore.so
#41 0x00002b816208ddff in TApplication::Run ()
from /home/davinder/go4/root/lib/libCore.so
#42 0x00002b816381dcb0 in TRint::Run ()
from /home/davinder/go4/root/lib/libRint.so
#43 0x000000000040100d in main ()
The program is running. Quit anyway (and detach it)? (y or n) [answered Y; input not from terminal]
Detaching from program: /proc/4591/exe, process 4591
Root > Function treetest() busy flag cleared

root [1][/code]

#4 <signal handler called> #5 0x00002b8168632bd7 in ~TXXXUnpackEvent (this=0xfef7150) at TXXXUnpackEvent.cxx:77
Make sure that the default constructor for TXXXUnpackEvent properly initialize all its data members. You may also want to run your example with valgrind to get a better diagnosis.

Cheers,
Philippe