From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 13428 invoked from network); 8 Apr 1998 18:15:13 -0000 Received: from yalta.nl.net (193.78.240.21) by mail2.redhat.com with SMTP; 8 Apr 1998 18:15:13 -0000 Received: from alushta.NL.net ([193.78.240.22]:58894 "EHLO alushta.NL.net" ident: "IDENT-NOT-QUERIED") by yalta.NL.net with ESMTP id <21425-25053>; Wed, 8 Apr 1998 20:15:06 +0200 Received: from moene by alushta.NL.net with UUCP id <25300-8191>; Wed, 8 Apr 1998 20:14:10 +0200 Received: by moene.indiv.nluug.nl (NX5.67e/NeXT-2.0) id AA19527; Wed, 8 Apr 98 20:06:36 +0200 Message-Id: <9804081806.AA19527@moene.indiv.nluug.nl> Content-Type: text/plain Mime-Version: 1.0 (NeXT Mail 3.3 v118.2) Received: by NeXT.Mailer (1.118.2) From: Toon Moene Date: Wed, 8 Apr 98 20:06:35 +0200 To: egcs-bugs@cygnus.com, axp-list@redhat.com Subject: Re: egcs-980406 g77 bug References: <352B9836.39BC6A8C@bob.usuf2.usuhs.mil> Organization: Moene Computational Physics, Maartensdijk, The Netherlands Bob, > Program received signal SIGSEGV, Segmentation fault. > 0x120002794 in f_s (s=0x0, curloc=0) at fmt.c:95 > 95 skip(s); > (gdb) bt > #0 0x120002794 in f_s (s=0x0, curloc=0) at fmt.c:95 > #1 0x1200030c0 in pars_f (s=0x0) at fmt.c:370 > #2 0x120004650 in s_wsfe (a=0x120107030) at wsfe.c:72 > #3 0x12000119c in MAIN__ () at junk2.f:4 > #4 0x12000146c in main (argc=0, argv=0x0) at main.c:128 Unfortunately, I cannot build a egcs snapshot anymore on Alpha's (essentially you have to have Red Hat 5.0 to get f771 to link), so I tried to debug this "by hand". However, looking through wsfe.c and fmt.c I cannot see any way to get the argument `s' to both pars_f and f_s to be 0x0 (which leads to the Segmentation fault at hand). The thing passed to pars_f is an extern char * that's defined in routine err.c. It looks like either the egcs snapshot is building these routines wrongly, or your program is wrongly linked ... I hope someone with an up to date Alpha can try your example. Regards, Toon.