[ROOT] TH1F::Fit() crash - help with stack trace please....

From: Chris Jillings (jillings@caltech.edu)
Date: Thu Sep 04 2003 - 00:27:09 MEST


Hi all,
     This is weird. Fitting a TH1F causes my 3_05_07 version to crash. 
(Stack trace and three lines of code below.)
     o- I reverted to 3_04_02 and it worked.
     o- I ran 3_05_07 on another computer and it worked
     o- I downloaded the source and rebuilt. Still the same crash.
     o- I defined my own TF1 with a Gaussian typed in explicitly. Same 
             crash.

I am running Linux 2.4.18-27.7.xsmp #1 SMP

Any experience with this? I realize that this is a very specialized 
crash. Help reading the stack trace would be appreciated as would a 
how-to on building a root version with debugging information.

Thanks again,

Chris

[jillings@nod root]$ root -n
   *******************************************
   *                                         *
   *        W E L C O M E  to  R O O T       *
   *                                         *
   *   Version   3.05/07  3 September 2003   *
   *                                         *
   *  You are welcome to visit our Web site  *
   *          http://root.cern.ch            *
   *                                         *
   *******************************************

Compiled for linux with thread support.

CINT/ROOT C/C++ Interpreter version 5.15.94, June 30 2003
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0] TH1F h("h","test",100,-2,2);
root [1] h.FillRandom("gaus",1000);
root [2] h.Fit("gaus")
Error in <TRegexp::Index>: Bad Regular Expression

  *** Break *** segmentation violation
  Generating stack trace...
  0x401dbdab in TUnixSystem::StackTrace(void) + 0x25b from 
/home/jillings/root/root/lib/libCore.so
  0x401da902 in TUnixSystem::DispatchSignals(ESignals) + 0xb2 from 
/home/jillings/root/root/lib/libCore.so
  0x401d999f in <unknown> from /home/jillings/root/root/lib/libCore.so
  0x401dd679 in <unknown> from /home/jillings/root/root/lib/libCore.so
  0x40e1bf05 in <unknown> from /lib/i686/libpthread.so.0
  0x42029188 in <unknown> from /home/jillings/root/root/bin/root.exe
  0x407ec400 in TH1::Fit(char const *, char const *, char const *, 
double, double) + 0x80 from /home/jillings/root/root/lib/libHist.so
  0x408b1605 in <unknown> from /home/jillings/root/root/lib/libHist.so
  0x405f72ed in G__call_cppfunc + 0x281 from 
/home/jillings/root/root/lib/libCint.so
  0x405e685d in G__interpret_func + 0x895 from 
/home/jillings/root/root/lib/libCint.so
  0x405cc215 in G__getfunction + 0x16f5 from 
/home/jillings/root/root/lib/libCint.so
  0x4065c0eb in G__getstructmem + 0x7c3 from 
/home/jillings/root/root/lib/libCint.so
  0x40654ee2 in G__getvariable + 0x636 from 
/home/jillings/root/root/lib/libCint.so
  0x405c32e5 in G__getitem + 0x6e9 from 
/home/jillings/root/root/lib/libCint.so
  0x405c18a5 in G__getexpr + 0x8e05 from 
/home/jillings/root/root/lib/libCint.so
  0x4060e96d in G__exec_function + 0x169 from 
/home/jillings/root/root/lib/libCint.so
  0x406160bc in G__exec_statement + 0x2f3c from 
/home/jillings/root/root/lib/libCint.so
  0x405a8ec3 in G__exec_tempfile_core + 0x313 from 
/home/jillings/root/root/lib/libCint.so
  0x405a9072 in G__exec_tempfile_fp + 0x22 from 
/home/jillings/root/root/lib/libCint.so
  0x4061e95b in G__process_cmd + 0x4e9f from 
/home/jillings/root/root/lib/libCint.so
  0x401846ae in TCint::ProcessLine(char const *, 
TInterpreter::EErrorCode *) + 0x9a from 
/home/jillings/root/root/lib/libCore.so
  0x40105f97 in TApplication::ProcessLine(char const *, bool, int *) + 
0x56b from /home/jillings/root/root/lib/libCore.so
  0x40de3cc7 in TRint::HandleTermInput(void) + 0x127 from 
/home/jillings/root/root/lib/libRint.so
  0x40de2ff0 in TTermInputHandler::Notify(void) + 0x28 from 
/home/jillings/root/root/lib/libRint.so
  0x40de4327 in TTermInputHandler::ReadNotify(void) + 0x13 from 
/home/jillings/root/root/lib/libRint.so
  0x401dacf7 in TUnixSystem::CheckDescriptors(void) + 0x113 from 
/home/jillings/root/root/lib/libCore.so
  0x401da40a in TUnixSystem::DispatchOneEvent(bool) + 0x112 from 
/home/jillings/root/root/lib/libCore.so
  0x40154b29 in TSystem::InnerLoop(void) + 0x1d from 
/home/jillings/root/root/lib/libCore.so
  0x40154abe in TSystem::Run(void) + 0x7e from 
/home/jillings/root/root/lib/libCore.so
  0x40106b25 in TApplication::Run(bool) + 0x31 from 
/home/jillings/root/root/lib/libCore.so
  0x40de3806 in TRint::Run(bool) + 0x2ba from 
/home/jillings/root/root/lib/libRint.so
  0x08048792 in main + 0x52 from /home/jillings/root/root/bin/root.exe
  0x42017589 in __libc_start_main + 0x95 from 
/home/jillings/root/root/bin/root.exe
  0x08048661 in __register_frame_info + 0x35 from 
/home/jillings/root/root/bin/root.exe

-- 
Chris Jillings
jillings@caltech.edu
http://www.krl.caltech.edu/~jillings/
(626) 395-2922



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