Problem 81

Summary: $G4BINDIR/clGeometry mcmurdo.dat ---> Segmentation fault... Limit on the line length in the data card?
Product: Geant4 Reporter: ykwon
Component: g3tog4Assignee: Gabriele Cosmo <Gabriele.Cosmo>
Status: RESOLVED FIXED    
Severity: normal CC: ykwon
Priority: P2    
Version: 1.1   
Hardware: PC   
OS: Linux   

Description ykwon 2000-04-07 11:54:44 CEST
"$G4BINDIR/clGeometry mcmurdo.dat" crashed with "Segmentation fault".
This problem was fixed by the following step.

Problem line in mcmurdo.dat ( generated by $G4BINDIR/rztog4 mcmurdo.rz )
---- GSMIXT   29 "FIB                 "   0.17000000E+01   9   0.15999000E+02
0.12011000E+02   0.10080000E+01   0.28086000E+02   0.40077999E+02   0.26982000E+
02   0.10811000E+02   0.22990000E+02   0.24305000E+02   0.80000000E+01   0.60000
000E+01   0.10000000E+01   0.14000000E+02   0.20000000E+02   0.13000000E+02   0.
50000000E+01   0.11000000E+02   0.12000000E+02   0.34099999E+00   0.33199999E+00
   0.34600001E-01   0.14399999E+00   0.78599997E-01   0.40800001E-01   0.1190000
0E-01   0.40799999E-02   0.13300000E-01

Changed the line to
---- GSMIXT   29 "FIB                 " 1.7 9 16.0 12.011 1.008 28.086 40.078 26
.982 10.811 22.99 24.305 8.0 6.0 1.0 14.0 20.0 13.0 5.0 11.0 12.0 0.341 0.332 0.
0346 0.144 0.0786 0.0408 0.0119 0.004078 0.0133

Of course, there must be better fix...
Yours,
Kwon,Youngil
Comment 1 Gabriele Cosmo 2000-07-27 05:30:59 CEST
A fix in G4String::readLine(istream&,bool) has been introduced:
  tag "global-V02-00-00" for geant4/source/global.
The buffer length has been extended from 256 to 1024 characters.
The fix will be available in the next public patch for release 2.0.