Re: [ROOT] Crash on Drawing

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Aug 14 2002 - 18:10:18 MEST


Hi Federico,

I cannot reproduce your problem on my system (RH6.1,gcc295.2).
I have no access to a RH7.2/gcc2.96 before tomorrow.
Here is what I get when running your script
911 lines counted
Device Name: bwsh51995.rot
Scan Direction: OUT
905 data points found
Peak= 1886
XLOW 10426.3 XHIGH 12159.7
par0=11137.4 par1=781.138
 **********
 **    1 **SET ERR           1
 **********
drawing
drawn

 RESULTS:
 RMS Data        = 781.137545
 FWHM            = 866.724589
 Sigma Fit1      = 781.131624
 Sigma Fit2      = 781.137545
file written
done

and the corresponding c.gif file in attachement.
Let me know if both output look reasonable.
Note that in your code, you define twice ifstream finput!

Could somebody running RH7.2 with either gcc2.95, 2.96 or 3.0,1
run this test to see if you also get a crash.
Could you run under gdb and tell me the traceback when the program
crashes?

Rene Brun

On Wed, 14 Aug 2002, Federico Roncarolo wrote:

> Hello,
> 
> I'm using version 3.03/07 on linux/redhat 7.2.
> 
> I'm loading my code with .L and then calling main(argument).
> 
> I'm getting data from an ascii file, filling graphs and fitting the
> graphs.
> Later when I just draw the graph I expect to see the graph with the
> fitting function, but root crashes, it displays an empty canvas and gives
> a
> 
>  *** Break *** segmentation violation.
> 
> 
> I fit with a user-defined function with the options "QRME+".
> If I add the options "NO", when drawing the graph everything works, but of
> course I get only the graph and not the function.
> 
> The segmentation violation comes at the end of code and not just after
> drawing.
> 
> Please find attached the file.C and the data file I give as argument of
> the main function.
> The line where I fit is number 252.
> 
> I changed from RH7.1 to RH7.2 ten days ago and re-installed ROOT from the
> file 
> 
> root_v3.03.07.Linux.RH7.2.gcc296.tar.gz
> 
> I test few small codes and they look to work... any idea about what is
> wrong?
> 
> Thanks a lot,
> Federico
> 



c.gif



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:04 MET