🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #199

segmentation fault when compiled under gcc

#199
From: Joseph E. Sacco
Date: Mon, 17 Jul 1989 20:16
27 lines
1642 bytes
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
Technical Details
Message-ID: <8907172016.AA00251@eileen.mga.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!mga.com!sacco

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!mga.com!sacco
From: sacco@mga.com (Joseph E. Sacco)
Newsgroups: gnu.gdb.bug
Subject: segmentation fault when compiled under gcc
Message-ID: <8907172016.AA00251@eileen.mga.com>
Date: 17 Jul 89 20:16:07 GMT
Sender: daemon@tut.cis.ohio-state.edu
Reply-To: <sacco@mga.com>
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 27