🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #2826

Bug in gcc-1.36.92 on Sparc running SunOS 4.0.3

#2826
From: Stu Grossman
Date: Fri, 12 Jan 1990 02:06
48 lines
1824 bytes
Compiling the following program will make gcc-cc1 die with a signal ten (bus
error).

prescan()
{
	char delim;
	int c, anglecnt;

	do
	{
		for (;;)
		{
			if (c == delim)
				break;
		}
	} while (c != 0 && (c != 1 || anglecnt > 0));
}

----Cut Here----

Sunburn> gcc -O -c parseaddr.c
gcc: Program cc1 got fatal signal 10.
Sunburn> 
Sunburn> ls -l core
-rw-r--r--  1 grossman 402776496 Jan 11 18:01 core
Sunburn> 

Sunburn> gdb /usr/local/lib/gcc-cc1 core
GDB 3.4, Copyright (C) 1989 Free Software Foundation, Inc.
There is ABSOLUTELY NO WARRANTY for GDB; type "info warranty" for details.
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "info copying" to see the conditions.
Reading symbol data from /usr/local/lib/gcc-cc1...done.
Core file is from "gcc-cc1".
Program terminated with signal 10, Bus error.
Reading in symbols for jump.c...done.
Type "help" for a list of commands.
(gdb) bt
#0  sets_cc0_p (x=(rtx) 0x5) (jump.c line 940)
#1  0x5b2ec in loop_skip_over (...) (...)
#2  0x595ac in scan_loop (...) (...)
#3  0x592e8 in loop_optimize (...) (...)
#4  0x1c8d0 in rest_of_compilation (...) (...)
#5  0x12354 in finish_function (...) (...)
#6  0x5f7c in yyparse (...) (...)
#7  0x1bb60 in compile_file (...) (...)
#8  0x1db20 in main (...) (...)
(gdb) q
Technical Details
Message-ID: <9001120206.AA06996@Sunburn.Stanford.EDU>
Path: arc1-ca.pugleaf.net!utzoo!telly!philmtl!uunet!bu.edu!bu-cs!snorkelwacker!think!samsung!cs.utexas.edu!tut.cis.ohio-state.edu!SUNBURN.STANFORD.EDU!grossman

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!philmtl!uunet!bu.edu!bu-cs!snorkelwacker!think!samsung!cs.utexas.edu!tut.cis.ohio-state.edu!SUNBURN.STANFORD.EDU!grossman
From: grossman@SUNBURN.STANFORD.EDU (Stu Grossman)
Newsgroups: gnu.gcc.bug
Subject: Bug in gcc-1.36.92 on Sparc running SunOS 4.0.3
Message-ID: <9001120206.AA06996@Sunburn.Stanford.EDU>
Date: 12 Jan 90 02:06:01 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 48