public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug web/14206] New: Mention that exec-shield (linux) conflicts with PCH
@ 2004-02-19 5:05 giovannibajo at libero dot it
2004-02-19 5:08 ` [Bug target/14206] " pinskia at gcc dot gnu dot org
` (13 more replies)
0 siblings, 14 replies; 15+ messages in thread
From: giovannibajo at libero dot it @ 2004-02-19 5:05 UTC (permalink / raw)
To: gcc-bugs
Within http://gcc.gnu.org/install/specific.html, we should really mention that
exec-shield conflicts with PCH causing random failures.
http://gcc.gnu.org/ml/gcc-patches/2004-02/msg01711.html
http://gcc.gnu.org/ml/gcc-patches/2004-02/msg01715.html
I can provide a patch in a few days, this is just so that we don't forget about
it.
--
Summary: Mention that exec-shield (linux) conflicts with PCH
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: web
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: giovannibajo at libero dot it
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14206
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/14206] Mention that exec-shield (linux) conflicts with PCH
2004-02-19 5:05 [Bug web/14206] New: Mention that exec-shield (linux) conflicts with PCH giovannibajo at libero dot it
@ 2004-02-19 5:08 ` pinskia at gcc dot gnu dot org
2004-02-19 5:46 ` aoliva at gcc dot gnu dot org
` (12 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-19 5:08 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-19 05:08 -------
Confirmed, this is really needed for 3.4.0.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Component|web |target
Ever Confirmed| |1
Keywords| |documentation
Last reconfirmed|0000-00-00 00:00:00 |2004-02-19 05:08:16
date| |
Target Milestone|--- |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14206
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/14206] Mention that exec-shield (linux) conflicts with PCH
2004-02-19 5:05 [Bug web/14206] New: Mention that exec-shield (linux) conflicts with PCH giovannibajo at libero dot it
2004-02-19 5:08 ` [Bug target/14206] " pinskia at gcc dot gnu dot org
@ 2004-02-19 5:46 ` aoliva at gcc dot gnu dot org
2004-02-19 12:00 ` giovannibajo at libero dot it
` (11 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2004-02-19 5:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From aoliva at gcc dot gnu dot org 2004-02-19 05:46 -------
FWIW, the conflict is not with exec-shield per se, but rather with
exec-shield-randomize, the feature that gets the kernel to randomize memory
mappings. It turns out that the PCH mechanism was built upon the mis-assumption
that memory maps are invariant. I'd rather qualify this as a bug in the PCH
implementation.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14206
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/14206] Mention that exec-shield (linux) conflicts with PCH
2004-02-19 5:05 [Bug web/14206] New: Mention that exec-shield (linux) conflicts with PCH giovannibajo at libero dot it
2004-02-19 5:08 ` [Bug target/14206] " pinskia at gcc dot gnu dot org
2004-02-19 5:46 ` aoliva at gcc dot gnu dot org
@ 2004-02-19 12:00 ` giovannibajo at libero dot it
2004-02-19 21:46 ` geoffk at geoffk dot org
` (10 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: giovannibajo at libero dot it @ 2004-02-19 12:00 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-02-19 12:00 -------
Speaking with Geoff in IRC, it turns out that the implementation can be fixed
so that it works even with the randomizer, but it needs someone to work on it.
Meanwhile, we really need to document the issue.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14206
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/14206] Mention that exec-shield (linux) conflicts with PCH
2004-02-19 5:05 [Bug web/14206] New: Mention that exec-shield (linux) conflicts with PCH giovannibajo at libero dot it
` (2 preceding siblings ...)
2004-02-19 12:00 ` giovannibajo at libero dot it
@ 2004-02-19 21:46 ` geoffk at geoffk dot org
2004-03-02 19:24 ` giovannibajo at libero dot it
` (9 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: geoffk at geoffk dot org @ 2004-02-19 21:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From geoffk at geoffk dot org 2004-02-19 21:45 -------
Subject: Re: Mention that exec-shield (linux) conflicts with PCH
"aoliva at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
> ------- Additional Comments From aoliva at gcc dot gnu dot org 2004-02-19 05:46 -------
> FWIW, the conflict is not with exec-shield per se, but rather with
> exec-shield-randomize, the feature that gets the kernel to randomize memory
> mappings. It turns out that the PCH mechanism was built upon the mis-assumption
> that memory maps are invariant. I'd rather qualify this as a bug in the PCH
> implementation.
The host is supposed to ensure that the memory region it chooses will
be available in future invocations of the compiler; there's a host
hook so it can communicate the region it chose to the PCH machinery.
However, the hook is not implemented for linux, because no-one has
stepped forward to do it, so the PCH machinery falls back to a
heuristic that works on many systems (but apparantly not on linux if
exec-shield-randomize is switched on).
Alternatively, the PCH implementation was designed to allow PCH files
to be relocated. However, this support was never implemented, because
(a) no interesting host seemed to need it, (b) relocation would be
very expensive, so it's usually worthwhile to put a bit of effort into
ensuring that relocation is not needed, and (c) in practise it turns
out that avoiding the need for relocation is easier than implementing
relocation.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14206
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/14206] Mention that exec-shield (linux) conflicts with PCH
2004-02-19 5:05 [Bug web/14206] New: Mention that exec-shield (linux) conflicts with PCH giovannibajo at libero dot it
` (3 preceding siblings ...)
2004-02-19 21:46 ` geoffk at geoffk dot org
@ 2004-03-02 19:24 ` giovannibajo at libero dot it
2004-03-03 12:42 ` giovannibajo at libero dot it
` (8 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: giovannibajo at libero dot it @ 2004-03-02 19:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-03-02 19:24 -------
It wouldn't be bad to document this within changes.html too, since exec-shield
appears to be turned on by default on FC1. At least, a link to specific.html.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14206
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/14206] Mention that exec-shield (linux) conflicts with PCH
2004-02-19 5:05 [Bug web/14206] New: Mention that exec-shield (linux) conflicts with PCH giovannibajo at libero dot it
` (4 preceding siblings ...)
2004-03-02 19:24 ` giovannibajo at libero dot it
@ 2004-03-03 12:42 ` giovannibajo at libero dot it
2004-03-25 5:57 ` [Bug target/14206] Mention that exec-shield-randomize " ian at wasabisystems dot com
` (7 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: giovannibajo at libero dot it @ 2004-03-03 12:42 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-03-03 12:42 -------
Ian just verified that the problem is exec-shield-randomize and not exec-shield
itself, so turing the former off is enough to fix the problem:
http://gcc.gnu.org/ml/gcc/2004-03/msg00201.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14206
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/14206] Mention that exec-shield-randomize (linux) conflicts with PCH
2004-02-19 5:05 [Bug web/14206] New: Mention that exec-shield (linux) conflicts with PCH giovannibajo at libero dot it
` (5 preceding siblings ...)
2004-03-03 12:42 ` giovannibajo at libero dot it
@ 2004-03-25 5:57 ` ian at wasabisystems dot com
2004-03-27 3:37 ` cvs-commit at gcc dot gnu dot org
` (6 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: ian at wasabisystems dot com @ 2004-03-25 5:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ian at wasabisystems dot com 2004-03-25 05:57 -------
Here is a documentation patch for 3.4.0:
http://gcc.gnu.org/ml/gcc-patches/2004-03/msg02068.html
This is already fixed in 3.5.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14206
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/14206] Mention that exec-shield-randomize (linux) conflicts with PCH
2004-02-19 5:05 [Bug web/14206] New: Mention that exec-shield (linux) conflicts with PCH giovannibajo at libero dot it
` (6 preceding siblings ...)
2004-03-25 5:57 ` [Bug target/14206] Mention that exec-shield-randomize " ian at wasabisystems dot com
@ 2004-03-27 3:37 ` cvs-commit at gcc dot gnu dot org
2004-03-27 3:39 ` ian at wasabisystems dot com
` (5 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-03-27 3:37 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-03-27 03:37 -------
Subject: Bug 14206
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: ian@gcc.gnu.org 2004-03-27 03:37:37
Modified files:
gcc : ChangeLog
gcc/doc : install.texi
Log message:
PR target/14206
* doc/install.texi (Specific): Document that exec-shield-randomize
interferes with precompiled headers.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.372&r2=2.2326.2.373
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/doc/install.texi.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.248.4.13&r2=1.248.4.14
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14206
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/14206] Mention that exec-shield-randomize (linux) conflicts with PCH
2004-02-19 5:05 [Bug web/14206] New: Mention that exec-shield (linux) conflicts with PCH giovannibajo at libero dot it
` (7 preceding siblings ...)
2004-03-27 3:37 ` cvs-commit at gcc dot gnu dot org
@ 2004-03-27 3:39 ` ian at wasabisystems dot com
2004-03-27 13:39 ` giovannibajo at libero dot it
` (4 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: ian at wasabisystems dot com @ 2004-03-27 3:39 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ian at wasabisystems dot com 2004-03-27 03:39 -------
The docs have been fixed for 3.4.0.
The code has been fixed on mainline for 3.5 and later.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14206
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/14206] Mention that exec-shield-randomize (linux) conflicts with PCH
2004-02-19 5:05 [Bug web/14206] New: Mention that exec-shield (linux) conflicts with PCH giovannibajo at libero dot it
` (8 preceding siblings ...)
2004-03-27 3:39 ` ian at wasabisystems dot com
@ 2004-03-27 13:39 ` giovannibajo at libero dot it
2004-03-29 16:39 ` ian at wasabisystems dot com
` (3 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: giovannibajo at libero dot it @ 2004-03-27 13:39 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-03-27 13:39 -------
Subject: Re: Mention that exec-shield-randomize (linux) conflicts with PCH
ian at wasabisystems dot com wrote:
> The docs have been fixed for 3.4.0.
Ian, would you add also something to http://gcc.gnu.org/install/specific.html?
Giovanni Bajo
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14206
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/14206] Mention that exec-shield-randomize (linux) conflicts with PCH
2004-02-19 5:05 [Bug web/14206] New: Mention that exec-shield (linux) conflicts with PCH giovannibajo at libero dot it
` (9 preceding siblings ...)
2004-03-27 13:39 ` giovannibajo at libero dot it
@ 2004-03-29 16:39 ` ian at wasabisystems dot com
2004-03-29 16:42 ` pinskia at physics dot uc dot edu
` (2 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: ian at wasabisystems dot com @ 2004-03-29 16:39 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ian at wasabisystems dot com 2004-03-29 16:39 -------
Subject: Re: Mention that exec-shield-randomize (linux) conflicts with PCH
"giovannibajo at libero dot it" <gcc-bugzilla@gcc.gnu.org> writes:
> Ian, would you add also something to http://gcc.gnu.org/install/specific.html?
Isn't that file automatically generated somehow?
I don't know how, but it sure looks like the Texinfo docs, and it
doesn't seem to be in the wwwdocs repository.
Ian
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14206
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/14206] Mention that exec-shield-randomize (linux) conflicts with PCH
2004-02-19 5:05 [Bug web/14206] New: Mention that exec-shield (linux) conflicts with PCH giovannibajo at libero dot it
` (10 preceding siblings ...)
2004-03-29 16:39 ` ian at wasabisystems dot com
@ 2004-03-29 16:42 ` pinskia at physics dot uc dot edu
2004-03-29 16:48 ` ian at wasabisystems dot com
2005-07-20 3:40 ` gschafer at zip dot com dot au
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at physics dot uc dot edu @ 2004-03-29 16:42 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at physics dot uc dot edu 2004-03-29 16:42 -------
Subject: Re: Mention that exec-shield-randomize (linux) conflicts with PCH
On Mar 29, 2004, at 11:39, ian at wasabisystems dot com wrote:
>
> ------- Additional Comments From ian at wasabisystems dot com
> 2004-03-29 16:39 -------
> Subject: Re: Mention that exec-shield-randomize (linux) conflicts
> with PCH
>
> "giovannibajo at libero dot it" <gcc-bugzilla@gcc.gnu.org> writes:
>
>> Ian, would you add also something to
>> http://gcc.gnu.org/install/specific.html?
>
> Isn't that file automatically generated somehow?
>
> I don't know how, but it sure looks like the Texinfo docs, and it
> doesn't seem to be in the wwwdocs repository.
>
> Ian
It is part of doc/install.texi.
Thanks,
Andrew Pinski
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14206
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/14206] Mention that exec-shield-randomize (linux) conflicts with PCH
2004-02-19 5:05 [Bug web/14206] New: Mention that exec-shield (linux) conflicts with PCH giovannibajo at libero dot it
` (11 preceding siblings ...)
2004-03-29 16:42 ` pinskia at physics dot uc dot edu
@ 2004-03-29 16:48 ` ian at wasabisystems dot com
2005-07-20 3:40 ` gschafer at zip dot com dot au
13 siblings, 0 replies; 15+ messages in thread
From: ian at wasabisystems dot com @ 2004-03-29 16:48 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ian at wasabisystems dot com 2004-03-29 16:48 -------
Subject: Re: Mention that exec-shield-randomize (linux) conflicts with PCH
"pinskia at physics dot uc dot edu" <gcc-bugzilla@gcc.gnu.org> writes:
> > "giovannibajo at libero dot it" <gcc-bugzilla@gcc.gnu.org> writes:
> >
> >> Ian, would you add also something to
> >> http://gcc.gnu.org/install/specific.html?
> >
> > Isn't that file automatically generated somehow?
> >
> > I don't know how, but it sure looks like the Texinfo docs, and it
> > doesn't seem to be in the wwwdocs repository.
>
> It is part of doc/install.texi.
Good, because that is the patch which I already made.
Ian
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14206
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/14206] Mention that exec-shield-randomize (linux) conflicts with PCH
2004-02-19 5:05 [Bug web/14206] New: Mention that exec-shield (linux) conflicts with PCH giovannibajo at libero dot it
` (12 preceding siblings ...)
2004-03-29 16:48 ` ian at wasabisystems dot com
@ 2005-07-20 3:40 ` gschafer at zip dot com dot au
13 siblings, 0 replies; 15+ messages in thread
From: gschafer at zip dot com dot au @ 2005-07-20 3:40 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gschafer at zip dot com dot au 2005-07-20 02:31 -------
Stock Linux kernel 2.6.12 introduced "address space randimization" which appears
to be essentially the same thing as RH's exec-shield-randomize. More info about
this issue here:
http://gcc.gnu.org/ml/gcc/2005-07/msg00851.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14206
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2005-07-20 2:31 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-19 5:05 [Bug web/14206] New: Mention that exec-shield (linux) conflicts with PCH giovannibajo at libero dot it
2004-02-19 5:08 ` [Bug target/14206] " pinskia at gcc dot gnu dot org
2004-02-19 5:46 ` aoliva at gcc dot gnu dot org
2004-02-19 12:00 ` giovannibajo at libero dot it
2004-02-19 21:46 ` geoffk at geoffk dot org
2004-03-02 19:24 ` giovannibajo at libero dot it
2004-03-03 12:42 ` giovannibajo at libero dot it
2004-03-25 5:57 ` [Bug target/14206] Mention that exec-shield-randomize " ian at wasabisystems dot com
2004-03-27 3:37 ` cvs-commit at gcc dot gnu dot org
2004-03-27 3:39 ` ian at wasabisystems dot com
2004-03-27 13:39 ` giovannibajo at libero dot it
2004-03-29 16:39 ` ian at wasabisystems dot com
2004-03-29 16:42 ` pinskia at physics dot uc dot edu
2004-03-29 16:48 ` ian at wasabisystems dot com
2005-07-20 3:40 ` gschafer at zip dot com dot au
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).