Article View: gnu.gcc.help
Article #52539Re: Memory error when compiled with gcc ????
From: Winfried Huber
Date: Wed, 01 Jul 1992 14:57
Date: Wed, 01 Jul 1992 14:57
25 lines
1656 bytes
1656 bytes
eks@daimi.aau.dk (Eigil Krogh S|rensen) writes:
>When compiling & assembling with the old build-in cc and as everything
>goes well (in this special case. Normally the build-in cc can't handle
>GNU source !!). After running make, vh (copied to jargon while making)
>runs ok.
>If I use gcc-1.37.1 + gas-1.38 or gcc-2.1 + as I get the following
>message, when vh (jargon) is started:
> Memory error - core dumped.
Try compiling vh with gcc's "-fwritable-strings" set.
This makes strings constants writable - they are not stored in the
protected code segment. Probably the most common offender is mktemp(3)
if called like tmpname = mktemp("/tmp/ScratchXXXXXX");
mktemp tries to write into the literal string; cc(1) works because
it genereates the string in the data segment, thus not protecting it.
Try and see whether it works...
Regards to DANISH DYNAMITE (sigh!) ...
Winfried Huber
Softwarehaus Huber und B"ohm, Illerweg 6, D-W 8037 Olching, Germany
voice +49-8142-13038 Fax +49-8142-18612 E-mail softhbo@guug.de
Technical Details
Message-ID:
<softhbo.710002664@guug.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!news.netmbx.de!zrz.tu-berlin.de!math.fu-berlin.de!NewsServ!LRZnews!reseq!guug.de!softhboReferences:
<1992Jun30.025649.13923@daimi.aau.dk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,e3d1d61407ce7f79 X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1992-07-01 02:02:06 PST Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!news.netmbx.de!zrz.tu-berlin.de!math.fu-berlin.de!NewsServ!LRZnews!reseq!guug.de!softhbo From: softhbo@guug.de (Winfried Huber) Newsgroups: gnu.gcc.help Subject: Re: Memory error when compiled with gcc ???? Message-ID: <softhbo.710002664@guug.de> Date: 1 Jul 92 14:57:44 GMT References: <1992Jun30.025649.13923@daimi.aau.dk> Sender: brsnews@reseq.regent.e-technik.tu-muenchen.de Lines: 25