Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* Re: Seg fault with g77 and format statement
  1997-11-05  5:00 Seg fault with g77 and format statement Andy Almond
@ 1997-11-05  5:00 ` Reinhard Lechtape-Grueter
  1997-11-05  5:00 ` Michael A. Mackey
  1 sibling, 0 replies; 3+ messages in thread
From: Reinhard Lechtape-Grueter @ 1997-11-05  5:00 UTC (permalink / raw)



Andy Almond (aalmond@fs1.scg.man.ac.uk) wrote:
: I am using g77 on PC164LX running redhat 4.2. The compiler seems quite
: good except for an unusual segmentation fault when executing a format
: statement. For example
: ....
:     write (*,10)
: 10 format (/,'hello',/)
: ....
: either (a) doesn't print anything or (b) causes a crash.
: Has anyone else noticed this? I would be grateful for any advice.
: Regards,
: Andy Almond
: University of Manchester. UK.
you have to install the latest f2c version. The objects generated by
g77/gcc are linked together with libf2c.o and its seemes that the
version bundeled with g77 is not the latest.
Reinhard.
--
........................................................................
Dr.-Ing. Reinhard Lechtape-Grueter                Phone +49/561/804-2774
Department of Machine Components and Tribology    Fax   +49/561/804-3727
Kassel University
Moenchebergstr. 3
D-34125 Kassel           e-mail: reinhard@lmt.maschinenbau.uni-kassel.de
........................................................................



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Seg fault with g77 and format statement
  1997-11-05  5:00 Seg fault with g77 and format statement Andy Almond
  1997-11-05  5:00 ` Reinhard Lechtape-Grueter
@ 1997-11-05  5:00 ` Michael A. Mackey
  1 sibling, 0 replies; 3+ messages in thread
From: Michael A. Mackey @ 1997-11-05  5:00 UTC (permalink / raw)



I have just built g77-0.5.21 and tested it using the code you produced: no
crash.

You might want to either upgrade g77 (if you have an earlier version), or
get
the new patches (g77-970914.diff and g77-970923.diff) which are supposed
to fix crashes like you are getting.

If you upgrade, you'll probably want to patch the source code before
compiling
it (as I did) using these patches, along with whatever you get with the
source tree.


Andy Almond wrote:

> I am using g77 on PC164LX running redhat 4.2. The compiler seems quite
> good except for an unusual segmentation fault when executing a format
> statement. For example
>
> ....
>     write (*,10)
> 10 format (/,'hello',/)
> ....
>
> either (a) doesn't print anything or (b) causes a crash.
>
> Has anyone else noticed this? I would be grateful for any advice.
>
> Regards,
>
> Andy Almond
>
> University of Manchester. UK.






^ permalink raw reply	[flat|nested] 3+ messages in thread

* Seg fault with g77 and format statement
@ 1997-11-05  5:00 Andy Almond
  1997-11-05  5:00 ` Reinhard Lechtape-Grueter
  1997-11-05  5:00 ` Michael A. Mackey
  0 siblings, 2 replies; 3+ messages in thread
From: Andy Almond @ 1997-11-05  5:00 UTC (permalink / raw)



I am using g77 on PC164LX running redhat 4.2. The compiler seems quite
good except for an unusual segmentation fault when executing a format
statement. For example

....
    write (*,10)
10 format (/,'hello',/)
....

either (a) doesn't print anything or (b) causes a crash.

Has anyone else noticed this? I would be grateful for any advice.

Regards,

Andy Almond

University of Manchester. UK.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1997-11-05  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-11-05  5:00 Seg fault with g77 and format statement Andy Almond
1997-11-05  5:00 ` Reinhard Lechtape-Grueter
1997-11-05  5:00 ` Michael A. Mackey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox