Hi Ahmet, Your code seems correct at a first look. The only thing that I can suggest is to try with the production version of Root 3.00/06. If you cannot install this version, let me have a copy of your Root data file and I will tell you if it runs OK on Solaris. Rene Brun Ahmet Sedat Ayan wrote: > > Hi All, > > I am having a segmantation violation error when I run my code on Solaris > as: > ----------------------------8<------------------------------ > root [0] .x tree_fit.C > Enter the file name:id827.root > > FCN=0 FROM MIGRAD STATUS=CONVERGED 299 CALLS 300 TOTAL > EDM=0 STRATEGY= 1 ERROR MATRIX UNCERTAINTY 100.0 > per cent > EXT PARAMETER APPROXIMATE STEP FIRST > NO. NAME VALUE ERROR SIZE DERIVATIVE > 1 Const 1.00000e+02 1.41421e+00 0.00000e+00 0.00000e+00 > 2 Slope 0.00000e+00 1.41421e+00 0.00000e+00 0.00000e+00 > 3 Curvature 0.00000e+00 1.41421e+00 0.00000e+00 0.00000e+00 > 4 Ampl 1.50000e+02 1.41421e+00 0.00000e+00 0.00000e+00 > 5 Mean_value 2.28000e+00 1.41421e+00 0.00000e+00 0.00000e+00 > 6 Sigma 5.00000e-02 1.41421e+00 0.00000e+00 0.00000e+00 > <TCanvas::MakeDefCanvas>: created default TCanvas with name c1 > Integral of function = 1761.54 > PostScript file: ID400.eps has been created > > *** Break *** bus error > > *** Break *** segmentation violation > -----------------------8<-------------------------------- > > whereas the SAME code runs on SGI runs without any problem and do what > it is supposed to do. the root version is 2.25 on Solaris and 2.23 on > SGI. Can anyone have any comment/idea/suggestion to this problem? > > ps: at the attachment you can find the code , which basically opens an > ntuple and is supposed to do some fits etc... > > regards > > sedat > > *************** > > Ahmet Sedat Ayan > > Physics & Astronomy Dept. > Van Allen Hall > University of Iowa > Iowa City, IA, 52242 > > Voice : (++ 1 319) 335-2832 (W) (GMT-6) > Occupation : Ph.D Candidate (But still dreamer!) > e-mail : ayan@cms.physics.uiowa.edu > web : http://home.cern.ch/ayan > > -------------------------------------------------------------------------------- > > Name: tree_fit.C > tree_fit.C Type: Plain Text (TEXT/PLAIN) > Encoding: BASE64
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:43 MET