Re: Stat boxes for a THStack

From: Suvayu Ali <fatkasuvayu_at_gmail.com>
Date: Sat, 12 Jun 2010 15:26:41 -0700


Hi all,

On Thursday 10 June 2010 02:07 AM, Rene Brun wrote:
> METStack->Draw();
> gPad->Update();
> TPaveStats *statbox_stack = (TPaveStats*)
> METStack->GetHistogram()->FindObject("stats");

I tried the above and many variations thereof but I still get the same problem. This is the stack trace I get after the crash. This is on a 64 bit Fedora 13 machine. The simplified macro is attached. Thanks for any help on this.

> SVN: trunk_at_33229
>
> root [0] .L histStack.C++g
> Info in <TUnixSystem::ACLiC>: creating shared library /home/jallad/codebaby/nutz/./histStack_C.so
> root [1] histStack()
>
> *** Break *** segmentation violation
>
>
>
> ===========================================================
> There was a crash (kSigSegmentationViolation).
> This is the entire stack trace of all threads:
> ===========================================================
> #0 0x0000003a968a66be in waitpid () from /lib64/libc.so.6
> #1 0x0000003a9683e6c9 in do_system () from /lib64/libc.so.6
> #2 0x00007f07b751e636 in TUnixSystem::Exec (this=0x1d397e0,
> shellcmd=0x2ade218 "/opt/root-5.27-debug/etc/gdb-backtrace.sh 19788 1>&2")
> at core/unix/src/TUnixSystem.cxx:1978
> #3 0x00007f07b751ef35 in TUnixSystem::StackTrace (this=0x1d397e0)
> at core/unix/src/TUnixSystem.cxx:2188
> #4 0x00007f07b751c7ca in TUnixSystem::DispatchSignals (this=0x1d397e0,
> sig=kSigSegmentationViolation) at core/unix/src/TUnixSystem.cxx:1106
> #5 0x00007f07b751a705 in SigHandler (sig=kSigSegmentationViolation)
> at core/unix/src/TUnixSystem.cxx:350
> #6 0x00007f07b7522700 in sighandler (sig=11)
> at core/unix/src/TUnixSystem.cxx:3459
> #7 <signal handler called>
> #8 0x00007f07b3528d1f in histStack ()
> at /home/jallad/codebaby/nutz/./histStack.C:29
> #9 0x00007f07b3528df8 in G__histStack_C_ACLiC_dict__0_1189 (
> result7=0x7fff819dfa90, funcname=0x24ae0d0 "", libp=0x7fff819d5080, hash=0)
> at /home/jallad/codebaby/nutz/histStack_C_ACLiC_dict.cxx:69
> #10 0x00007f07b683c7f2 in Cint::G__ExceptionWrapper (
> funcp=0x7f07b3528ddc <G__histStack_C_ACLiC_dict__0_1189(G__value*, char const*, G__param*, int)>, result7=0x7fff819dfa90, funcname=0x24ae0d0 "",
> libp=0x7fff819d5080, hash=0) at cint/cint/src/Api.cxx:393
> #11 0x00007f07b691cf1e in G__execute_call (result7=0x7fff819dfa90,
> libp=0x7fff819d5080, ifunc=0x24ae0d0, ifn=0)
> at cint/cint/src/newlink.cxx:2332
> #12 0x00007f07b691d8df in G__call_cppfunc (result7=0x7fff819dfa90,
> libp=0x7fff819d5080, ifunc=0x24ae0d0, ifn=0)
> at cint/cint/src/newlink.cxx:2536
> #13 0x00007f07b68f56ba in G__interpret_func (result7=0x7fff819dfa90,
> funcname=0x1d4bde0 "histStack", libp=0x7fff819d5080, hash=942,
> p_ifunc=0x24ae0d0, funcmatch=1, memfunc_flag=0)
> at cint/cint/src/ifunc.cxx:5249
> #14 0x00007f07b68cea22 in G__getfunction (item=0x1d4a190 "histStack()",
> known3=0x7fff819dfd28, memfunc_flag=0) at cint/cint/src/func.cxx:2641
> #15 0x00007f07b68bc0cf in G__getitem (item=0x1d4a190 "histStack()")
> at cint/cint/src/expr.cxx:1894
> #16 0x00007f07b68b9510 in G__getexpr (expression=0x1d72850 "histStack()")
> at cint/cint/src/expr.cxx:1464
> #17 0x00007f07b6951aad in G__exec_function (statement=..., pc=0x7fff819e267c,
> piout=0x7fff819e2678, plargestep=0x7fff819e2670, presult=0x7fff819e25b0)
> at cint/cint/src/parse.cxx:644
> #18 0x00007f07b6963203 in G__exec_statement (mparen=0x7fff819e298c)
> at cint/cint/src/parse.cxx:7115
> #19 0x00007f07b688a06f in G__exec_tempfile_core (file=0x0, fp=0x2574110)
> at cint/cint/src/debug.cxx:263
> #20 0x00007f07b688bb0d in G__exec_tempfile_fp (fp=0x2574110)
> at cint/cint/src/debug.cxx:805
> #21 0x00007f07b6972854 in G__process_cmd (line=0x232aad8 "histStack()",
> prompt=0x1d3e2a8 "", more=0x1d3e2a0, err=0x7fff819e40ec,
> rslt=0x7fff819e4080) at cint/cint/src/pause.cxx:3312
> #22 0x00007f07b74d481a in TCint::ProcessLine (this=0x1d3e270,
> line=0x232aad8 "histStack()", error=0x0) at core/meta/src/TCint.cxx:455
> #23 0x00007f07b7422129 in TApplication::ProcessLine (this=0x1e8be20,
> line=0x232aad8 "histStack()", sync=false, err=0x0)
> at core/base/src/TApplication.cxx:845
> #24 0x00007f07b6116523 in TRint::HandleTermInput (this=0x1e8be20)
> at core/rint/src/TRint.cxx:560
> #25 0x00007f07b611448f in TTermInputHandler::Notify (this=0x227b590)
> at core/rint/src/TRint.cxx:128
> #26 0x00007f07b611795d in TTermInputHandler::ReadNotify (this=0x227b590)
> at core/rint/src/TRint.cxx:120
> #27 0x00007f07b751cb3e in TUnixSystem::CheckDescriptors (this=0x1d397e0)
> at core/unix/src/TUnixSystem.cxx:1208
> #28 0x00007f07b751bdc0 in TUnixSystem::DispatchOneEvent (this=0x1d397e0,
> pendingOnly=false) at core/unix/src/TUnixSystem.cxx:915
> #29 0x00007f07b7488b05 in TSystem::InnerLoop (this=0x1d397e0)
> at core/base/src/TSystem.cxx:393
> #30 0x00007f07b7488888 in TSystem::Run (this=0x1d397e0)
> at core/base/src/TSystem.cxx:343
> #31 0x00007f07b7422c5a in TApplication::Run (this=0x1e8be20, retrn=false)
> at core/base/src/TApplication.cxx:993
> #32 0x00007f07b6115d15 in TRint::Run (this=0x1e8be20, retrn=false)
> at core/rint/src/TRint.cxx:432
> #33 0x00000000004010d4 in main (argc=1, argv=0x7fff819e66e8)
> at main/src/rmain.cxx:29
> ===========================================================
>
>
> 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.
> ===========================================================
> #8 0x00007f07b3528d1f in histStack ()
> at /home/jallad/codebaby/nutz/./histStack.C:29
> ===========================================================

-- 
Suvayu

Open source is the future. It sets us free.

Received on Sun Jun 13 2010 - 00:26:51 CEST

This archive was generated by hypermail 2.2.0 : Mon Jun 14 2010 - 17:50:01 CEST