Article View: gnu.g++.bug
Article #340g++ 1.35.0 signal 11
From: Randy Buckland
Date: Thu, 10 Aug 1989 15:10
Date: Thu, 10 Aug 1989 15:10
39 lines
1116 bytes
1116 bytes
I also had found the signal 11/core dump problem with g++ 1.35.0. I have
isolated a code fragment that demonstrates the problem. To get the error,
you must use the "-finline-functions" switch. This happens on a vax running
ultrix 3.0
---------------
#include <std.h>
#include <stdio.h>
#include <time.h>
void do_date()
{
char date_string[80];
long clock;
clock = time(NULL);
strcpy (date_string, ctime(&clock));
date_string[strlen(date_string)-1] = ' '; /* Remove newline */
puts (date_string);
}
int main (int argc, char *argv[])
{
int i;
for (i=0; i<10; i++) {
do_date();
puts(" 08-00-03-00-02-01 08-00-03-00-02-01 ");
puts("08-00 ..Hi there..\n");
}
return 0;
}
--------------------
Randy Buckland
rcb@ncsuvx.ncsu.edu
Technical Details
Message-ID:
<3626@ncsuvx.ncsu.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!bu-cs!ncsuvx!ccpv1.ncsu.edu!rcbShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!bu-cs!ncsuvx!ccpv1.ncsu.edu!rcb From: rcb@ccpv1.ncsu.edu (Randy Buckland) Newsgroups: gnu.g++.bug Subject: g++ 1.35.0 signal 11 Message-ID: <3626@ncsuvx.ncsu.edu> Date: 10 Aug 89 15:10:51 GMT Sender: news@ncsuvx.ncsu.edu Distribution: gnu Lines: 39