Subject: Re: Progress on this bug ?
To: None <port-i386@NetBSD.ORG>
From: Christos Zoulas <christos@deshaw.com>
List: port-i386
Date: 04/02/1996 14:53:01
In article <199604020249.MAA12820@foot.cst.com.au> tim@cst.com.au (Tim Liddelow) writes:
>Has any progress been made on this stack bug in -current ?  From
>a recently built kernel it doesn't seem so.  I still get
>a core dump when trying to run it.  It works fine under FreeBSD.
>
>The program:
>
>--- CUT HERE ---
>#include <stdio.h>
>
>#define BAD_NODE_ID (-1)
>#define MAX_NODE 256
>
>typedef struct Graph {
>	int nodes;
>	int edges;
>	int node[MAX_NODE];
>	int edge[MAX_NODE][MAX_NODE];
>	void *node_label[MAX_NODE];
>	void *edge_label[MAX_NODE][MAX_NODE];
>} Graph;
>
>
>int main() {
>	int i, j;
> 	Graph g;
>
>	puts("Starting..."); fflush(stdout);
>
>	for (i = 0; i < MAX_NODE; i++) {
>		g.node[i] = BAD_NODE_ID;
>		g.node_label[i] = NULL;
>		for (j = 0; j < MAX_NODE; j++) {
>			g.edge[i][j] = 0;
>			g.edge_label[i][j] = NULL;
> 		}
>	}
>	g.nodes = 0;
>	g.edges = 0;
>	return 0;
>}
>--- CUT HERE ---

I don't see a bug. Try 'unlimit stacksize' in csh before you run the program.

christos