public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/19823] New: java fails with non-executable memory
@ 2005-02-08 19:25 matz at suse dot de
  2005-02-09  3:20 ` [Bug libgcj/19823] " pinskia at gcc dot gnu dot org
                   ` (19 more replies)
  0 siblings, 20 replies; 21+ messages in thread
From: matz at suse dot de @ 2005-02-08 19:25 UTC (permalink / raw)
  To: java-prs

Newer linux kernels (2.6.11 in this case) check the executable for a 
PT_GNU_STACK program header, and if it exists default to provide 
non-executable memory (for stack _and_ malloced memory) on CPUs which 
support this (all x86-64 CPUs and newer x86 ones). 
 
It seems that gij is not prepared to handle this.  This can be seen 
in some testresults, e.g. here: 
http://gcc.gnu.org/ml/gcc-testresults/2005-02/msg00223.html 
 
This is the autovect branch, but it's the same on all GCC versions (3.3 
through 4.0).  This is with such a new kernel, with an older kernel which 
didn't do this yet all those testcases work. 
 
Currently Andi Kleen proposed again to switch this off on the kernel side 
as a hot fix, because too much software currently breaks.  But somewhen it 
will be activated for sure, and then GCC should be able to cope with this. 
 
My guess is, that there only are missing some mprotect calls at the right 
places.

-- 
           Summary: java fails with non-executable memory
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: matz at suse dot de
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org
  GCC host triplet: i686-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19823


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2005-02-22 19:02 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-08 19:25 [Bug java/19823] New: java fails with non-executable memory matz at suse dot de
2005-02-09  3:20 ` [Bug libgcj/19823] " pinskia at gcc dot gnu dot org
2005-02-09  5:38 ` aph at gcc dot gnu dot org
2005-02-09  9:19 ` mckinlay at redhat dot com
2005-02-09  9:20 ` Hans dot Boehm at hp dot com
2005-02-09 13:51 ` aph at gcc dot gnu dot org
2005-02-09 17:40 ` aj at gcc dot gnu dot org
2005-02-10  0:20 ` aj at gcc dot gnu dot org
2005-02-10  0:20 ` tromey at gcc dot gnu dot org
2005-02-10 10:58 ` Hans dot Boehm at hp dot com
2005-02-10 18:50 ` aj at gcc dot gnu dot org
2005-02-10 19:05 ` aj at gcc dot gnu dot org
2005-02-10 20:48 ` aph at gcc dot gnu dot org
2005-02-14 15:03 ` aph at gcc dot gnu dot org
2005-02-14 15:18 ` jakub at gcc dot gnu dot org
2005-02-14 20:05 ` aph at gcc dot gnu dot org
2005-02-15  0:45 ` Hans dot Boehm at hp dot com
2005-02-16  7:31 ` cvs-commit at gcc dot gnu dot org
2005-02-16 18:23 ` mckinlay at redhat dot com
2005-02-22 21:57 ` cvs-commit at gcc dot gnu dot org
2005-02-22 22:04 ` pinskia at gcc dot gnu dot org

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).