home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!agate!doc.ic.ac.uk!uknet!mcsun!news.funet.fi!ousrvr.oulu.fi!funic!nntp.hut.fi!nntp!jem
- From: jem@snakemail.hut.fi (Johan Myreen)
- Newsgroups: comp.os.linux
- Subject: Re: ANNOUNCE: Linux 0.98 pl5
- Message-ID: <JEM.92Nov16213559@lk-hp-6.hut.fi>
- Date: 16 Nov 92 19:35:59 GMT
- References: <1992Nov15.220138.5434@klaava.Helsinki.FI>
- Sender: usenet@nntp.hut.fi (Usenet pseudouser id)
- Organization: Helsinki University of Technology, Finland
- Lines: 24
- In-Reply-To: torvalds@klaava.Helsinki.FI's message of 15 Nov 92 22:01:38 GMT
- Nntp-Posting-Host: lk-hp-6.hut.fi
-
- In article <1992Nov15.220138.5434@klaava.Helsinki.FI> torvalds@klaava.Helsinki.FI (Linus Torvalds) writes:
-
- >NOTE! READ THIS AND PONDER:
-
- >pl5 now checks against writing to the text segment. Older binaries
- >which used the original estdio library (used with the earliest gcc
- >versions) are liable to break: not that there should be many of these
- >binaries around. So if you get "Segmentation fault (core dumped)" on
- >binaries you know used to work, this is the likely cause.
-
- Before the "bug reports" start coming in, I'd like to point out one
- consequence of write-protected text segments. Gcc puts strings in the
- text segment, and is entitled to do so, since the C standard says
- string literals are const.
-
- This breaks code modifying string literals, like for instance the
- mktemp library function when called like this: mktemp("/tmp/fooXXXXXX").
-
- This is not a bug in Linux or Gcc, but in *your* application, if you
- use mktemp like this, or do tricks like "bar"[2]++...
-
- --
- Johan Myreen
- jem@cs.hut.fi
-