gcl-devel
[Top][All Lists]
Advanced

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

Re: [Gcl-devel] segfault at startup


From: Camm Maguire
Subject: Re: [Gcl-devel] segfault at startup
Date: 23 Mar 2004 12:58:06 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Greetings!  This is not a bug in gcl, but a design decision in the
memory management system, i.e. to rely on the long established
(decades old) specification of the brk system call to return memory
contiguously allocated from the end of the program's .data section.
Fedora has broken this spec in the name of security.  Not that there
aren't arguable reasons for abandoning brk in the hostile computing
environment of today, but in email correspondence on the issue, one of
the very helpful Fedora developers had admitted thinking it was wrong
to break brk.

I've just downloaded the source to setarch, and if I can get access
again to a FC1 box, I'll put the necessary syscall into gcl proper for
greater user transparency.  One can only hope that this method of
disabling exec-shield for a given executable won't be going away
someday too.

It should be noted that gcl itself can likely survive brk
randomization, though at significant loss in memory available to the
user.  Its emacs' unexec, used by GCL, which is truly broken and would
need 'fixing' for this issue to completely go away.  I've been told
that people are working on this.

Take care,

"Jonathan Hudson" <address@hidden> writes:

> gcl 2.5.3 segfaults when it starts up unless
> I make and run it with
> 
> setarch i386 make 
> 
> and  
> 
> setarch i386 gcl
> 
> I'm running Fedora Core 1 on a Dell Inpiron 4000.
> It worked without the setarch command under red hat 9.
> I reported this to the fedora bugzilla first and i was told
> it was probably a bug in gcl because of the randomization of memory
> introduced used the fedora kernel.
> 
> Jonathan
> 
> -- 
> http://www.fastmail.fm - Email service worth paying for. Try it for free
> 
> 
> _______________________________________________
> Gcl-devel mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/gcl-devel
> 
> 
> 

-- 
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]