🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #6080

gcc on Linux/Alpha

#6080
From: Erik Troan
Date: Tue, 17 Dec 1996 00:00
36 lines
1226 bytes

The following code causes signal 6 in gcc on Linux/Alpha. This is
gcc 2.7.2.1 with patches from Richard Henderson fwiw. 

Erik Troan
ewt@redhat.com

#include <sys/types.h>
#include <sys/time.h>

typedef struct {
	int *obj;
	int fd;
} pylist;

void foo() 
{
    pylist rfd2obj[FD_SETSIZE + 3], wfd2obj[FD_SETSIZE + 3], efd2obj[FD_SETSIZE + 3];
    int *ifdlist, *ofdlist, *efdlist;
    int *ret, *tout;
    fd_set ifdset, ofdset, efdset;
    double timeout;
    struct timeval tv, *tvp;
    int seconds;
    int imax, omax, emax, max;
    int n;

    if (tout == NULL)
	tvp = (struct timeval *)0;
    else {
	seconds = (int)timeout;
	tv.tv_sec = seconds;
	tvp = &tv;
    }
}
Technical Details
Message-ID: <Pine.LNX.3.93.961217174318.30349A-100000@redhat.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113d02,1d1ea75fa65c9226,start
X-Google-Attributes: gid113d02,public
From: ewt@redhat.com (Erik Troan)
Subject: gcc on Linux/Alpha
Date: 1996/12/17
Message-ID: <Pine.LNX.3.93.961217174318.30349A-100000@redhat.com>
X-Deja-AN: 204626478
sender: bug-gcc-request@prep.ai.mit.edu
x-gateway: relay5.UU.NET from bug-gcc to gnu.gcc.bug; Tue, 17 Dec 1996 19:25:34 EST
content-type: TEXT/PLAIN; charset=US-ASCII
mime-version: 1.0
newsgroups: gnu.gcc.bug