Article View: gnu.emacs.bug
Article #99848Segmentation Fault on Apply of Autoload
From: Alex Zatsman
Date: Thu, 19 Apr 1990 19:05
Date: Thu, 19 Apr 1990 19:05
31 lines
1713 bytes
1713 bytes
Here's a simple way to crash Emacs using 'apply' and 'autoload'. In the
Emacs Lisp library, create a file, say "foo.el", with a single 'defun':
------------------------------------------------------------------
(defun fun1 ())
------------------------------------------------------------------
then evaluate three forms:
------------------------------------------------------------------
(autoload 'fun1 "foo")
(defun fun2 ()
(apply (symbol-function 'fun1) ()))
(fun2)
------------------------------------------------------------------
The third form kills Emacs with a segmentation fault.
We used version 18.55 on our Sun 3/280 with OS 4.0.3 and the bug
appeared even in an emacs session started with 'emacs -q' (without any
customized initialization). Yet another test, also ending with a
segmentation fault, had an 'autoload' with a full pathname for 'foo.el'.
The same test with 18.55 on a DecStation 3100 caused the error
message "End of file during parsing", but did not result in a crash.
Alex Zatsman
Software Options, Inc.
Cambridge, MA 02138
Technical Details
Message-ID:
<9004191905.AA27873@sun2.soi.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!HARVARD.HARVARD.EDU!soi!sun2!alexShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,7cedec49244540f,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-04-20 09:16:15 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!HARVARD.HARVARD.EDU!soi!sun2!alex From: soi!sun2!alex@HARVARD.HARVARD.EDU (Alex Zatsman) Newsgroups: gnu.emacs.bug Subject: Segmentation Fault on Apply of Autoload Message-ID: <9004191905.AA27873@sun2.soi.com> Date: 19 Apr 90 19:05:33 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 31 Posted: Thu Apr 19 20:05:33 1990