[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Axiom-developer] Re: [Gcl-devel] Re: Executable memory: some apps that

From: Camm Maguire
Subject: [Axiom-developer] Re: [Gcl-devel] Re: Executable memory: some apps that work on RH9 don't on FC1
Date: 17 Nov 2003 15:29:54 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2


Tim Daly  <address@hidden> writes:

> Roland,
> I just built a machine with the latest Fedora and tried to build Axiom.
> Axiom depends on GCL, Gnu Common Lisp. It appears that all of the 
> lisps are broken under the new memory model.
> Can you give me some pointers to any documentation or source code in
> Fedora that might give me a clue about how to fix this? I understand
> there might be a compiler switch but haven't found any documentation.
> Tim Daly
> address@hidden
> address@hidden
> ====================================================================
> > The official binary of mit-scheme 7.7.1 
> > (
> > segfaults if called with 'scheme -compiler'. In this case the scheme main
> > program load a 'band' called, which contains executable code.
> > Could somebody investigate this issue? I am not that familiar with problems
> > like this.
> If this binary was created with old tools and has no PT_GNU_STACK marker,
> then it should get executable stack by default.  More likely the issue is
> that it calls malloc and expects the memory returned to be executable.
> The Scheme runtime needs to be changed to use mmap when executability matters.

We don't execute code off the stack.  Rather we allocate room on the
heap for it with sbrk, and then do an explicit mprotect to make it
executable.  However, the build is failing way before this stage.
Simple compiled and linked C code into raw_pre_gcl won't run.

Take care,

> _______________________________________________
> Gcl-devel mailing list
> address@hidden

Camm Maguire                                            address@hidden
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]