Problem 81 - $G4BINDIR/clGeometry mcmurdo.dat ---> Segmentation fault... Limit on the line length in the data card?
Summary: $G4BINDIR/clGeometry mcmurdo.dat ---> Segmentation fault... Limit on the line...
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: g3tog4 (show other problems)
Version: 1.1
Hardware: PC Linux
: P2 normal
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 2000-04-07 11:54 CEST by ykwon
Modified: 2000-07-27 05:31 CEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
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.