[gnu.gdb.bug] segmentation fault when compiled under gcc

sacco@mga.com (Joseph E. Sacco) (07/18/89)

Hi Randy,

	I brought up GDB-3.2 on a SUN4/110 running 4.0.3. I first built GDB
	using GCC-1.35.0 and bison remembering to set the link flag -Bstatic
	for the sun. The debugger seemed to work OK on small programs
	so I thought I would test it with a larger piece of code. I have
	been playing with ET++ so I applied GDB to the application named
	micky. Micky with all of its source compiled -g is about 17 Meg.
	GDB chokes on it so I recompiled most of it without -g reducing
	the image to about 6 Meg. At this size GDB 3.2 [and 3.1.2] will
	initially accept it. A break point is set via "break main". The
	system chugs for a long while, says its reading the symbols in
	micky.c and then aborts over a segmentataion fault without ever
	setting the break point.

	I recompiled GDB using the SUN C compiler and yacc. I then fed
	the 6 Meg version of micky to GDB. Unlike the previous experiment
	I was able to set a break point at main as well as other break
	points. So ........

	I don't know what this means. I would be willing to run further
	tests at your suggestion. Also, if there is anyone around who
	actually has ET++ running on a SUN4 under g++ I would like
	to here from them.


						Joseph