Article View: gnu.gcc.bug
Article #1830core dumper under GCC 1.30
From: Bennett Todd
Date: Wed, 19 Oct 1988 16:56
Date: Wed, 19 Oct 1988 16:56
28 lines
1391 bytes
1391 bytes
The following dumps core when compiled with gcc-1.30 on a Sun 3/60 running
SunOS 3.5, but not when compiled with the SunOS C compiler. It actually
dumps down in the bowels of stdio in the sscanf. It looks to me like
something or other in the run-time environment isn't beeing arranged to suit
sscanf. A friend (Ned Danieley, ndd@sunbar.mc.duke.edu) stumbled across it
recompiling an X application. We were running 1.29 at the time; I fetched
the diffs and brought us up to 1.30. Still dumps, appearantly the same way.
Here's the program:
#include <stdio.h>
char *Date = "$Date: 88/09/09 12:02:35 $";
main() {
int y, m, d;
fprintf(stderr, "date is %s\n", Date);
sscanf(&Date[7], "%d", &y);
fprintf(stderr, "y %d\n", y);
}
If my request to be added to bug-gcc gets honored I should be able to follow
this in the mailing list; I haven't received anything yet. Is there any
bug-gcc traffic these days?
-Bennett
bet@orion.mc.duke.edu (128.109.165.2)
Technical Details
Message-ID:
<8810191656.AA18104@bent.mc.duke.edu>Path:
arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!mit-eddie!bloom-beacon!tut.cis.ohio-state.edu!BENT.MC.DUKE.EDU!betShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!mit-eddie!bloom-beacon!tut.cis.ohio-state.edu!BENT.MC.DUKE.EDU!bet From: bet@BENT.MC.DUKE.EDU (Bennett Todd) Newsgroups: gnu.gcc.bug Subject: core dumper under GCC 1.30 Message-ID: <8810191656.AA18104@bent.mc.duke.edu> Date: 19 Oct 88 16:56:55 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 27