Article View: gnu.emacs.bug
Article #98858do_autoload should check its arg
From: Bruno Verlyck
Date: Thu, 21 Feb 1991 15:07
Date: Thu, 21 Feb 1991 15:07
30 lines
1519 bytes
1519 bytes
The evaluation of
(print 'shell '(autoload "shell" 185069 t nil))
ends in Fatal error(11).
(emacs-version)
"GNU Emacs 18.57.1 of Tue Feb 19 1991 on future (usg-unix-v)"
gdb says:
Program received signal 11, SIGSEGV
0x8f3ee in strlen ()
gdb: bt 9
#0 0x8f3ee in strlen ()
#1 0x90024 in _doprnt ()
#2 0x8f37a in sprintf ()
#3 0x6b184 in error (...) (...)
#4 0x6b58a in do_autoload (...) (...)
#5 0x6c1ce in Ffuncall (...) (...)
#6 0x6be00 in call1 (...) (...)
#7 0x6eeb4 in printchar (...) (...)
#9 0x6fb18 in Fprint (...) (...)
At least, do_autoload should check the type of funname before calling
error ("Autoloading failed to define function %s",
XSYMBOL (funname)->name->data);
and signal another error if it isn't a symbol. There could be a better fix.
Bruno.
Technical Details
Message-ID:
<9102211507.AA01542@future.gipsi.fr>Path:
arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!samsung!rex!wuarchive!emory!gatech!usenet.ins.cwru.edu!tut.cis.ohio-state.edu!unreplyable!garbageShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,c52c2ebddd6a2ae9,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1991-02-21 07:07:40 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!samsung!rex!wuarchive!emory!gatech!usenet.ins.cwru.edu!tut.cis.ohio-state.edu!unreplyable!garbage From: bruno@FUTURE.GIPSI.FR (Bruno Verlyck) Newsgroups: gnu.emacs.bug Subject: do_autoload should check its arg Message-ID: <9102211507.AA01542@future.gipsi.fr> Date: 21 Feb 91 15:07:40 GMT Sender: daemon@tut.cis.ohio-state.edu Reply-To: bruno@gipsi.gipsi.fr Distribution: gnu Organization: GNUs Not Usenet Lines: 30 Approved: bug-gnu-emacs@prep.ai.mit.edu