* f77 bug? SEGV at for_write_seq_lis_xmit.
@ 1995-10-05 4:00 Jonas Hvarfner
1995-10-07 4:00 ` Steve Lionel
1995-10-10 4:00 ` Mark Charette
0 siblings, 2 replies; 4+ messages in thread
From: Jonas Hvarfner @ 1995-10-05 4:00 UTC (permalink / raw)
We have a FORTRAN-77 program that sometimes crashes with a SEGV but
sometimes don't. Further, it crashes before (or while?) executing its
first user defined instruction (a write(*,*)).
This is what happens: we compile it, run it and get the SEGV. We wait
a while, compile again a few times and suddenly it works. But NO
changes what so ever are made to the source between compilations.
Compiling with different optimization levels doesn't help.
When we run it in the debugger (decladebug) we get
Setting initial break point on routine "complex_p.f"`complex_p
[#1: when in complex_p { stop } ]
Thread received signal SEGV
stopped at [for_write_seq_lis_xmit:726 0x3ff81a75a00]
(Cannot find source file for_wseq_lis.c)
(complex_p is the main program).
Here is our hard- and software:
Digital Unix 3.2A Rev. 17.
DEC 250 4/266 workstations
f77 is DEC Fortran V3.8-711-293V (got that from compiling with f77 -V)
fortrtl is version 3.6
ld is version 3.11.
We would very much appreciate any input on this strange behavior. I
might add that we have tested the program on another computer (a HP
735) and it worked there.
Best regards,
Jonas Hvarfner
--
Jonas Hvarfner Dept. of Atomic Physics
jonas@atom.msi.se University of Stockholm, Sweden
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: f77 bug? SEGV at for_write_seq_lis_xmit.
1995-10-05 4:00 f77 bug? SEGV at for_write_seq_lis_xmit Jonas Hvarfner
@ 1995-10-07 4:00 ` Steve Lionel
1995-10-10 4:00 ` Mark Charette
1 sibling, 0 replies; 4+ messages in thread
From: Steve Lionel @ 1995-10-07 4:00 UTC (permalink / raw)
In article <450rfb$3vc@news.datakom.su.se>, jonas@msiw44.msi.se
(Jonas Hvarfner) writes:
>We have a FORTRAN-77 program that sometimes crashes with a SEGV but
>sometimes don't. Further, it crashes before (or while?) executing its
>first user defined instruction (a write(*,*)).
>
>This is what happens: we compile it, run it and get the SEGV. We wait
>a while, compile again a few times and suddenly it works. But NO
>changes what so ever are made to the source between compilations.
>Compiling with different optimization levels doesn't help.
This sounds like a hardware problem of some kind - I can't see how it
could be the compiler or libraries - if it were, it should consistently
fail (or succeed).
Try one thing:
% limit stacksize unlimited
then run the programs and see what happens. If it still fails, please
call for hardware service.
Steve Lionel Mail: lionel@quark.enet.dec.com
DEC Fortran Development WWW: http://www.digital.com/info/slionel.html
Digital Equipment Corporation CompuServe: 75263,3001
110 Spit Brook Road, ZKO2-3/N30
Nashua, NH 03062-2698 "Free advice is worth every cent"
For information on DEC Fortran 90, see http://www.digital.com/info/hpc/f90/
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: f77 bug? SEGV at for_write_seq_lis_xmit.
1995-10-05 4:00 f77 bug? SEGV at for_write_seq_lis_xmit Jonas Hvarfner
1995-10-07 4:00 ` Steve Lionel
@ 1995-10-10 4:00 ` Mark Charette
1995-10-12 4:00 ` Tim Lucia
1 sibling, 1 reply; 4+ messages in thread
From: Mark Charette @ 1995-10-10 4:00 UTC (permalink / raw)
Jonas Hvarfner (jonas@msiw44.msi.se) wrote:
: We have a FORTRAN-77 program that sometimes crashes with a SEGV but
: sometimes don't. Further, it crashes before (or while?) executing its
: first user defined instruction (a write(*,*)).
: This is what happens: we compile it, run it and get the SEGV. We wait
: a while, compile again a few times and suddenly it works. But NO
: changes what so ever are made to the source between compilations.
: Compiling with different optimization levels doesn't help.
I have experienced this behaviour on more than one machine and have traced
it to:
1) Compiling under NFS (objects going to an NFS mounted disk) and
2) Running programs which expected automatic variables to be 0s.
It doesn't look like #2 applies here since it's the first statement executed.
Does #1 apply ??
--
Mark Charette charette@mika.com
MIKA Systems, Inc
17197 N. Laurel Park Dr Suite 115
Livonia, MI 48152
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: f77 bug? SEGV at for_write_seq_lis_xmit.
1995-10-10 4:00 ` Mark Charette
@ 1995-10-12 4:00 ` Tim Lucia
0 siblings, 0 replies; 4+ messages in thread
From: Tim Lucia @ 1995-10-12 4:00 UTC (permalink / raw)
In article <45dn82$jul@pms507.pms.ford.com>, charette@ultoe.det.dec.com (Mark Charette) writes:
|>Jonas Hvarfner (jonas@msiw44.msi.se) wrote:
|>: We have a FORTRAN-77 program that sometimes crashes with a SEGV but
|>: sometimes don't. Further, it crashes before (or while?) executing its
|>: first user defined instruction (a write(*,*)).
|>
|>: This is what happens: we compile it, run it and get the SEGV. We wait
|>: a while, compile again a few times and suddenly it works. But NO
|>: changes what so ever are made to the source between compilations.
|>: Compiling with different optimization levels doesn't help.
|>
|>I have experienced this behaviour on more than one machine and have traced
|>it to:
|>1) Compiling under NFS (objects going to an NFS mounted disk) and
|>2) Running programs which expected automatic variables to be 0s.
|>
|>It doesn't look like #2 applies here since it's the first statement executed.
|>Does #1 apply ??
|>
I have seen this happen also with the C compiler. Try copying the binary
and running the copy. It is a known problem. I forget whether it is in
ld or NFS, but the right people are aware of the problem.
Tim
--
Timothy J. Lucia Email: mailto:lucia@zko.dec.com
Digital Equipment Corporation Phone: 603.881.2615
110 Spitbrook Road ZKO2-3/K06 Fax: 603.881.0120
Nashua, NH USA 03062-2698 I'd rather be cycling.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1995-10-12 4:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-10-05 4:00 f77 bug? SEGV at for_write_seq_lis_xmit Jonas Hvarfner
1995-10-07 4:00 ` Steve Lionel
1995-10-10 4:00 ` Mark Charette
1995-10-12 4:00 ` Tim Lucia
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox