I have a program can run normally previous, but can not run now.
I did not change the code, so the code is correct.
here is the out put information when i run the code.
$ gdb scooppic
GNU gdb (GDB) Fedora (7.3.50.20110722-13.fc16)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type “show copying”
and “show warranty” for details.
This GDB was configured as “i686-redhat-linux-gnu”.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>…
Reading symbols from /home/ssun/Documents/Mark/sphere/init/scooppic/scooppic…done.
(gdb) r exp001a sexp001a
Starting program: /home/ssun/Documents/Mark/sphere/init/scooppic/scooppic exp001a sexp001a
[Thread debugging using libthread_db enabled]
Using host libthread_db library “/lib/libthread_db.so.1”.
Open Scoop File: sexp001a
Open soil File: exp001a
Read Scoop: 0
Zmax: 0.038360
Read soil: 0 6
SCF: 1.000000
CEN: 0.049123 0.054283 0.016597
POS: 0.049123 0.054283 0.016597
Read Ini Done
Program received signal SIGSEGV, Segmentation fault.
0x00bc4010 in time@plt () from /lib/libexpat.so.1
$ ./scooppic exp001a sexp001a
Open Scoop File: sexp001a
Open soil File: exp001a
Read Scoop: 0
Zmax: 0.038360
Read soil: 0 6
SCF: 1.000000
CEN: 0.049123 0.054283 0.016597
POS: 0.049123 0.054283 0.016597
Read Ini Done
Segmentation fault (core dumped)
Do you have any idea?