Re: [ROOT] strange TH1 behaviour

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Nov 19 2003 - 18:47:49 MET


Hi Sebastien,

I have no problems in browsing your file and viewing your histograms.
I tried with versions 3.05/07 and 3.10/01 (both gcc296 and gcc3.2)
I suspect a mismatch with your PATH/LD_LIBRARY_PATH.
To look at the problem, run under gdb as explained at:

http://root.cern.ch/root/roottalk/RoottalkRules.html

Rene Brun

Sebastien Greder wrote:
> 
>  Hello,
> 
>  I produced some basic histos and wrote them in a root file.
>  every thing runs well but when I open the root file I get a strange
>  (i.e difficult to translate !) message :
> 
>  sbgpcs36:~/analyse/my_analyze/current/d0/current_analyze $ root -l
> LightDataTaggingEfficiency.root
> root [0]
> Attaching file LightDataTaggingEfficiency.root...
> root [1] new TBrowser
> (class TBrowser*)0x85b1968
> root [2]
>  *** Break *** segmentation violation
>  Generating stack trace...
>  0x401ede47 in TUnixSystem::StackTrace(void) + 0x29b from
> /cern/2003/root.3.05.07//lib/libCore.so
>  0x401ec74f in TUnixSystem::DispatchSignals(ESignals) + 0xc3 from
> /cern/2003/root.3.05.07//lib/libCore.so
>  0x401eb780 in <unknown> from /cern/2003/root.3.05.07//lib/libCore.so
>  0x401ef747 in <unknown> from /cern/2003/root.3.05.07//lib/libCore.so
>  0x40f02ac5 in <unknown> from /lib/i686/libpthread.so.0
>  0x40fa2948 in <unknown> from /lib/i686/libc.so.6
>  0x00000000 in <unknown function>
> Root > <TCanvas::MakeDefCanvas>: created default TCanvas with name c1
> 
>  I put the root file on :
> 
>  /afs/in2p3.fr/home/g/greder/public
> 
>  By the way is there a way to decode the above message (tools, things
>  one could directly look at if there is a specific message ?)
>  I don't understand were the null pointer comes from
>  (0x00000000 in <unknown function>)
> 
>  i'm running with :
> 
>  Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
>  gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)
> 
>  and root version 3.05.07
> 
>  thanks,
> 
>  seb.
> 
>  the piece of code to save the histos (they were built correctly)
> 
>    TFile outputfile(fOutputFileName.Data(),"recreate");
> 
>    TObjString ainputfile(inputfilename); ainputfile.Write();
> 
>    hNegDataTaggingEfficiencyVsPt  -> Write();
>    hPosDataTaggingEfficiencyVsPt  -> Write();
>    hNegDataTaggingEfficiencyVsEta -> Write();
>    hPosDataTaggingEfficiencyVsEta -> Write();
> 
>  outputfile.Close();
> 
>   ---------------------------------------------------------------------
>  | Sebastien GREDER                        tel :  +33 (0)3 88 10 63 54 |
>  | D0 Strasbourg,                                                      |
>  | Institut de Recherches Subatomiques     fax :  +33 (0)3 88 10 62 34 |
>  | 23, rue du loess - BP 28                secr : +33 (0)3 88 10 66 40 |
>  | F-67037- STRASBOURG cedex 2             e-mail : greder@in2p3.fr,   |
>  |                                                  greder@fnal.gov    |
>   ---------------------------------------------------------------------



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