Re: Illegal instruction (core dumped)

From: Rob (nospam_at_nonexistant.com)
Date: 05/11/04


Date: Tue, 11 May 2004 23:20:13 +0930


"Gerry Thomas" <gfthomas@sympatico.ca> wrote in message
news:RoZnc.9842$dr1.375825@news20.bellglobal.com...
>
> "Ali" <hgolshani@hotmail.com> wrote in message news:s31uzaap7yv1@legacy...
> > Hello, Anyone who know what is "Illegal instruction (core dumped)" ??
> > When I compiled and Run a fortran files in UNIX, this error comes out.
>
> It's a common problem in Unix, Windows, etc., and is most often caused by
> programmer error, usually by exceeding the bounds of an array via an
> invalid access. I've cross posted to comp.lang.fortran, a more appropriate
> ng for Fortran-specific problems.
>

Other causes of such a symptoms with Fortran code include;

         a) Calling a function or subroutine with less arguments than
                 the actual function or subroutine accepts --- particularly
                 if the argument in question gets modified.

         b) Passing an argument of wrong type, particularly a type of
                 different physical type. For example, passing an integer
                 when the called subprogram expects a double precision
                 or a string.

Such things are not specific to Fortran. Such programming errors cause
similar errors in several programming languages (C, Pascal, etc).



Relevant Pages

  • Re: How to create a new folder in FORTRAN 77?
    ... use either Unix or Windows nowadays, ... Folder is extremely commonly used terminology. ... And lots of those people use Fortran. ...
    (comp.lang.fortran)
  • Re: close(status=delete) on a missing file
    ... |>> Fortran 77 I/O model, but it does make sense under Unix. ... |> No, as Arjen wrote, it doesn't make sense under Unix, either. ... directory entry does not exist, it is commonly referred to as the ... It would just have to test the error code from ...
    (comp.lang.fortran)
  • Re: close(status=delete) on a missing file
    ... > Fortran 90, and the wording is essentially the same. ... If a Unix program actually executed a closeon the file descriptor ...
    (comp.lang.fortran)
  • Re: SMALL BUFFER IN FORTRAN (UNIX)
    ... I have this annoying experience with FORTRAN running in UNIX. ... Or is it just the way UNIX handles small buffer? ... Disk buffering is a very useful OS feature, ...
    (comp.lang.fortran)
  • Re: Reading an image array.
    ... FORTRAN, which involves the following code written for a UNIX based ... Its possible to compile codes written for Unix system for a windows ... common /cm1/nx, ny ...
    (comp.lang.fortran)