Re: There was a crash....

From: Asif Saddique <asaddiqu_at_ualberta.ca>
Date: Fri, 18 May 2012 08:51:32 -0600


Hi Axel,

Sorry for slow response.
Thanks for your reply. I think you are right. I rebuilt my header file carefully and problem is gone, i might have missed intialization somewhere.

Cheers, Asif
On Thu, May 17, 2012 at 4:08 AM, Axel Naumann <Axel.Naumann_at_cern.ch> wrote:

> Hi Asif,
>
> My assumption: you connect a data member of type std::vector<float>* to
> one of the chain's branches, and you don't initialize that pointer to
> NULL in the constructor of the data member's class. Doing so should fix
> this issue.
>
> Cheers, Axel.
>
>
> On 05/17/2012 05:16 AM, Asif Saddique wrote:
> > Hi,
> > I am trying run my code like normal:
> >
> > TChain* chain=new TChain("susy")
> > chain->Add("/raid/adisk02/users/asaddiq/202660/*root*")
> > gSystem->Load("/hepusers/asaddiq/Execute/Efficiency_C.so")
> > MyCode run(chain)
> > run.Loop()
> >
> > But i am getting following error using Root version 5.27/06, is there
> > any quick fix ??
> >
> > Cheers, Asif
> >
> > ===========================================================
> > There was a crash.
> > This is the entire stack trace of all threads:
> > ===========================================================
> > #0 0x0000003cd4c98c05 in waitpid () from /lib64/libc.so.6
> > #1 0x0000003cd4c3c481 in do_system () from /lib64/libc.so.6
> > #2 0x00002abdbb197c70 in TUnixSystem::StackTrace ()
> > from /hepusers/asaddiq/Root/root//lib/libCore.so
> > #3 0x00002abdbb19594a in TUnixSystem::DispatchSignals ()
> > from /hepusers/asaddiq/Root/root//lib/libCore.so
> > #4 <signal handler called>
> > #5 0x00002abdbd9e7cd4 in
> > ROOT::TCollectionProxyInfo::Type<std::vector<float,
> > std::allocator<float> > >::clear ()
> > from /hepusers/asaddiq/HotSpot/Execute/Efficiency_C.so
> > #6 0x00002abdbccfde1c in TGenCollectionStreamer::Streamer ()
> > from /hepusers/asaddiq/Root/root//lib/libRIO.so
> > #7 0x00002abdbccd8647 in TCollectionStreamer::Streamer ()
> > from /hepusers/asaddiq/Root/root//lib/libRIO.so
> > #8 0x00002abdbccd1568 in TBufferFile::ReadFastArray ()
> > from /hepusers/asaddiq/Root/root//lib/libRIO.so
> > #9 0x00002abdbcd8512f in TStreamerInfo::ReadBuffer<char**> ()
> > from /hepusers/asaddiq/Root/root//lib/libRIO.so
> > #10 0x00002abdbd65247a in TBranchElement::ReadLeavesMakeClass ()
> > from /hepusers/asaddiq/Root/root//lib/libTree.so
> > #11 0x00002abdbd6486bd in TBranch::GetEntry ()
> > from /hepusers/asaddiq/Root/root//lib/libTree.so
> > #12 0x00002abdbd64e425 in TBranchElement::GetEntry ()
> > from /hepusers/asaddiq/Root/root//lib/libTree.so
> > #13 0x00002abdbd69af0e in TTree::GetEntry ()
> > from /hepusers/asaddiq/Root/root//lib/libTree.so
> > #14 0x00002abdbd9e574e in Efficiency::Loop ()
> > from /hepusers/asaddiq/HotSpot/Execute/Efficiency_C.so
> > #15 0x00002abdbd9e0f42 in G__Efficiency_C_ACLiC_dict_2641_0_6 ()
> > from /hepusers/asaddiq/HotSpot/Execute/Efficiency_C.so
> > #16 0x00002abdbb912c1d in Cint::G__ExceptionWrapper ()
> > from /hepusers/asaddiq/Root/root//lib/libCint.so
> > #17 0x00002abdbb9c1910 in G__execute_call ()
> > from /hepusers/asaddiq/Root/root//lib/libCint.so
> > #18 0x00002abdbb9c35ca in G__call_cppfunc ()
> > from /hepusers/asaddiq/Root/root//lib/libCint.so
> > #19 0x00002abdbb99d947 in G__interpret_func ()
> > from /hepusers/asaddiq/Root/root//lib/libCint.so
> > #20 0x00002abdbb98d208 in G__getfunction ()
> > from /hepusers/asaddiq/Root/root//lib/libCint.so
> > #21 0x00002abdbba77537 in G__getstructmem ()
> > from /hepusers/asaddiq/Root/root//lib/libCint.so
> > #22 0x00002abdbba6cf19 in G__getvariable ()
> > from /hepusers/asaddiq/Root/root//lib/libCint.so
> > #23 0x00002abdbb95fa0c in G__getitem ()
> > from /hepusers/asaddiq/Root/root//lib/libCint.so
> > #24 0x00002abdbb96b168 in G__getexpr ()
> > from /hepusers/asaddiq/Root/root//lib/libCint.so
> > #25 0x00002abdbb9f17ec in G__exec_statement ()
> > from /hepusers/asaddiq/Root/root//lib/libCint.so
> > #26 0x00002abdbb94be04 in G__exec_tempfile_core ()
> > from /hepusers/asaddiq/Root/root//lib/libCint.so
> > #27 0x00002abdbb94c14e in G__exec_tempfile_fp ()
> > from /hepusers/asaddiq/Root/root//lib/libCint.so
> > #28 0x00002abdbb9fccf9 in G__process_cmd ()
> > from /hepusers/asaddiq/Root/root//lib/libCint.so
> > #29 0x00002abdbb15b54d in TCint::ProcessLine ()
> > from /hepusers/asaddiq/Root/root//lib/libCore.so
> > #30 0x00002abdbb0bd163 in TApplication::ProcessLine ()
> > from /hepusers/asaddiq/Root/root//lib/libCore.so
> > #31 0x00002abdbc640533 in TRint::HandleTermInput ()
> > from /hepusers/asaddiq/Root/root//lib/libRint.so
> > #32 0x00002abdbc63efe7 in TTermInputHandler::Notify ()
> > from /hepusers/asaddiq/Root/root//lib/libRint.so
> > #33 0x00002abdbc64155d in TTermInputHandler::ReadNotify ()
> > from /hepusers/asaddiq/Root/root//lib/libRint.so
> > #34 0x00002abdbb195123 in TUnixSystem::CheckDescriptors ()
> > from /hepusers/asaddiq/Root/root//lib/libCore.so
> > #35 0x00002abdbb19536c in TUnixSystem::DispatchOneEvent ()
> > from /hepusers/asaddiq/Root/root//lib/libCore.so
> > #36 0x00002abdbb114bb6 in TSystem::InnerLoop ()
> > from /hepusers/asaddiq/Root/root//lib/libCore.so
> > #37 0x00002abdbb117741 in TSystem::Run ()
> > from /hepusers/asaddiq/Root/root//lib/libCore.so
> > #38 0x00002abdbb0bb8af in TApplication::Run ()
> > from /hepusers/asaddiq/Root/root//lib/libCore.so
> > #39 0x00002abdbc641150 in TRint::Run ()
> > from /hepusers/asaddiq/Root/root//lib/libRint.so
> > #40 0x000000000040100d in main ()
> > ===========================================================
> >
> >
> > The lines below might hint at the cause of the crash.
> > If they do not help you then please submit a bug report at
> > http://root.cern.ch/bugs. Please post the ENTIRE stack trace
> > from above as an attachment in addition to anything else
> > that might help us fixing this issue.
> > ===========================================================
> > #5 0x00002abdbd9e7cd4 in
> > ROOT::TCollectionProxyInfo::Type<std::vector<float,
> > std::allocator<float> > >::clear ()
> > from /hepusers/asaddiq/HotSpot/Execute/Efficiency_C.so
> > #6 0x00002abdbccfde1c in TGenCollectionStreamer::Streamer ()
> > from /hepusers/asaddiq/Root/root//lib/libRIO.so
> > #7 0x00002abdbccd8647 in TCollectionStreamer::Streamer ()
> > from /hepusers/asaddiq/Root/root//lib/libRIO.so
> > #8 0x00002abdbccd1568 in TBufferFile::ReadFastArray ()
> > from /hepusers/asaddiq/Root/root//lib/libRIO.so
> > #9 0x00002abdbcd8512f in TStreamerInfo::ReadBuffer<char**> ()
> > from /hepusers/asaddiq/Root/root//lib/libRIO.so
> > #10 0x00002abdbd65247a in TBranchElement::ReadLeavesMakeClass ()
> > from /hepusers/asaddiq/Root/root//lib/libTree.so
> > #11 0x00002abdbd6486bd in TBranch::GetEntry ()
> > from /hepusers/asaddiq/Root/root//lib/libTree.so
> > #12 0x00002abdbd64e425 in TBranchElement::GetEntry ()
> > from /hepusers/asaddiq/Root/root//lib/libTree.so
> > #13 0x00002abdbd69af0e in TTree::GetEntry ()
> > from /hepusers/asaddiq/Root/root//lib/libTree.so
> > #14 0x00002abdbd9e574e in Efficiency::Loop ()
> > from /hepusers/asaddiq/HotSpot/Execute/Efficiency_C.so
> > ===========================================================
> >
>
>
Received on Fri May 18 2012 - 16:51:46 CEST

This archive was generated by hypermail 2.2.0 : Sun May 20 2012 - 05:50:01 CEST