🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #701

xgdb dumps core

#701
From: Hal Peterson
Date: Wed, 08 Feb 1989 19:53
12 lines
991 bytes
I am compiling xgdb version 3.1 with X11R3 on a Sun-3 running
SunOS 3.5, and it crashes when I hit the Quit button.  The reason is
that lookup_cmd is writing into the command string which is a constant
in xgdb.c; therefore GCC (I'm using version 1.33 of that, BTW) makes
the constant read-only.  I fixed the problem by compiling xgdb.c by
hand with the "-fwritable-strings" option on the GCC command line.
The real fix is to change addbutton to make a copy of its input
string.

--
Hal Peterson / Cray Research / 1440 Northland Dr. / Mendota Hts, MN  55120
hrp@cray.com			uunet!cray!hrp		   +1 612 681 3145
Technical Details
Message-ID: <8902081953.AA11132@rothko.cray.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cwjcc!tut.cis.ohio-state.edu!snoid.cray.com!hrp

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cwjcc!tut.cis.ohio-state.edu!snoid.cray.com!hrp
From: hrp@snoid.cray.com (Hal Peterson)
Newsgroups: gnu.gdb.bug
Subject: xgdb dumps core
Message-ID: <8902081953.AA11132@rothko.cray.com>
Date: 8 Feb 89 19:53:14 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 12