Re: "init.c: No such file or directory."



Jane Smith wrote:
Hi, I am using PGI fortran with MPI (mpif90), and when I compiled and
ran my program, I got the segementation fault error. (As a matter of
fact,
it did not execute the first executable statement in my program, which
was
printning 'hello world'.)

I ran the program with a debugging option (gdb) and I got the
following messages.
-------------------------------------------------------------------------------
GNU gdb Red Hat Linux (5.2.1-4)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "i386-redhat-linux"...
Breakpoint 1 at 0x81bbfe6

Program received signal SIGSEGV, Segmentation fault.
0x40000a50 in .BSS1 ()
(gdb) list
1 init.c: No such file or directory.
in init.c

---------------------------------------------------------------------------------

So I am not really understanding why my program
has anything to do with 'init.c' (I don't actually know what it is).
Does anybody know what these messages imply?


Another thought: Your debugger is a few years old (2002). How old is the rest of your environment -- Fortran compiler, library, etc? Could you update to something newer? There's nothing more frustrating than trying to work around a problem that's been fixed.

Louis
.



Relevant Pages

  • Re: "init.c: No such file or directory."
    ... I got the segementation fault error. ... I ran the program with a debugging option (gdb) and I got the ... You should continue to use it unless you are legally changing your name to "Jane Smith," which is also a perfectly nice name. ...
    (comp.lang.fortran)
  • "init.c: No such file or directory."
    ... I got the segementation fault error. ... I ran the program with a debugging option (gdb) and I got the ... Copyright 2002 Free Software Foundation, ... There is absolutely no warranty for GDB. ...
    (comp.lang.fortran)
  • [UNIX] Progress Database Local Buffer Overflow
    ... # gdb /usr/dlc/bin/_mpros core ... Segmentation fault. ... Reading symbols from /lib/libm.so.6...done. ... There is absolutely no warranty for GDB. ...
    (Securiteam)
  • Page faults every few days
    ... It is always a page fault. ... GNU gdb 4.18 ... There is absolutely no warranty for GDB. ...
    (freebsd-questions)
  • Page faults every few days
    ... It is always a page fault. ... GNU gdb 4.18 ... There is absolutely no warranty for GDB. ...
    (freebsd-stable)