Sun F90 segmentation fault 
Author Message
 Sun F90 segmentation fault

I just installed Sun fortran 90 (SC4.0, version 1.1) on Solaris 2.5.1
(Sparc).  I tried it out on a two-line "hello world" program, and it
gets a Segmentation Fault every time.  I bought an f90 book to make
sure the syntax hadn't changed completely from f77.  After a dozen
tweaks to the code, I'm beginning to think it's not my program's fault.

When I run truss, the thing that catches my eye is this line:
open("/usr/platform/SUNW,SPARCstation-5/lib/libc_psr.so.1", O_RDONLY)
  Err#2 ENOENT
Indeed, the file it names is missing.  Does anyone know where that file
should have come from, and how I can get it?

Or is this a false clue?  The truss output ends with this:
    Incurred fault #6, FLTBOUNDS  %pc = 0x000249AC
      siginfo: SIGSEGV SEGV_MAPERR addr=0x0004CE14
    Received signal #11, SIGSEGV [default]
      siginfo: SIGSEGV SEGV_MAPERR addr=0x0004CE14
        *** process killed ***
gdb is no help.  The program dies before the first line is executed.
--
*   Patrick L. Nolan            (415)723-0133                 *
*   W. W. Hansen Experimental Physics Laboratory (HEPL)       *
*   Stanford University                                       *



Fri, 10 Dec 1999 03:00:00 GMT  
 Sun F90 segmentation fault



Quote:
>I just installed Sun Fortran 90 (SC4.0, version 1.1) on Solaris 2.5.1
>(Sparc).  I tried it out on a two-line "hello world" program, and it
>gets a Segmentation Fault every time.  I bought an f90 book to make
>sure the syntax hadn't changed completely from f77.  After a dozen
>tweaks to the code, I'm beginning to think it's not my program's fault.

>When I run truss, the thing that catches my eye is this line:
>open("/usr/platform/SUNW,SPARCstation-5/lib/libc_psr.so.1", O_RDONLY)
>  Err#2 ENOENT
>Indeed, the file it names is missing.  Does anyone know where that file
>should have come from, and how I can get it?

>Or is this a false clue?  The truss output ends with this:
>    Incurred fault #6, FLTBOUNDS  %pc = 0x000249AC
>      siginfo: SIGSEGV SEGV_MAPERR addr=0x0004CE14
>    Received signal #11, SIGSEGV [default]
>      siginfo: SIGSEGV SEGV_MAPERR addr=0x0004CE14
>        *** process killed ***
>gdb is no help.  The program dies before the first line is executed.
>--
>*   Patrick L. Nolan            (415)723-0133                 *
>*   W. W. Hansen Experimental Physics Laboratory (HEPL)       *
>*   Stanford University                                       *

This is a well-known problem.  Fortran 90 1.1 works fine with the
original version of Solaris 2.5.1, but not with the version as
modified by the security patch for Solaris 2.5.1.  The security
patch includes changes to libc's standard I/O.  The f90 I/O library
depended on undocumented features of standard I/O that broke with
the change.  The problem is fixed in f90 1.2.  There is also a
patch available for f90 1.1.

Sun makes patches available on the WWW.  The URL for the patch
area is http://access1.sun.com.  Go to "Workshop," "Patches,"
and "README.103219-06" for the patch to f90 1.1.

                                        Yours truly,
                                        Robert Corbett



Sat, 11 Dec 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. how to find segmentation fault problem with Sun f90

2. bug Ada Verdix SUN : segmentation fault at compil time

3. bug Ada Verdix SUN : segmentation fault at compil time

4. Segmentation Fault: When attempting to run Sun Fortran code on Linux

5. Segmentation Fault on SUN Ultra1,OK on HP and DEC

6. F90: segmentation fault with array intrinsics?

7. Q:[F90][SUN] Compilation Problem with Sun Fortran 90 1.2

8. visual works 3.1 image has segmentation fault on 2.4 kernel (red hat 8.0)

9. segmentation fault on gabage collect

10. Segmentation faults

11. Segmentation Fault while compiling Eiffel classes.

12. Segmentation faults

 

 
Powered by phpBB® Forum Software