🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Randy Buckland Thu, 10 Aug 1989 15:10
g++ 1.35.0 signal 11
#340
Author: Randy Buckland
Date: Thu, 10 Aug 1989 15:10
39 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads