Bug 5617

Summary: macro causing emacs to segfault / spew rubbish
Product: [Retired] Red Hat Linux Reporter: tkhl1
Component: emacsAssignee: Cristian Gafton <gafton>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-02-17 00:07:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description tkhl1 1999-10-06 04:01:56 UTC
I have declaration in .emacs that allows me to logout of
emacs by hitting F12:

(global-set-key [f12] "\C-x\C-c")

Hitting the hot key with a file that has been changed forces
emacs to quit with a segmentation fault or spew rubbish. In
previous versions (?), emacs would not exit but complain
that the macro was terminated by a command ringing the
bell.

This has been reported to gnu.org and a simple fix has been
found:

diff -c /home/rms/e21/src/keymap.c.\~1\~
/home/rms/e21/src/keymap.c
*** /home/rms/e21/src/keymap.c.~1~ Sun Sep 12 20:41:30 1999
--- /home/rms/e21/src/keymap.c  Tue Sep 28 15:09:35 1999
****************** 1954,1960 ****
        }
        else
        {
!         char tem[20];
          *push_key_description (XUINT (key), tem) = 0;
          return build_string (tem);
--- 1954,1960 ----
        }
        else
        {
!         char tem[30];
          *push_key_description (XUINT (key), tem) = 0;
          return build_string (tem);
****************** 2425,2431 ****
        for (c = 0; c < translate_len; c++)
        if (translate[c] != c)
          {
!           char buf[20];
            char *bufend;
            if (alternate_heading)
--- 2425,2431 ----
        for (c = 0; c < translate_len; c++)
        if (translate[c] != c)
          {
!           char buf[30];
            char *bufend;
            if (alternate_heading)

Comment 1 Cristian Gafton 2000-02-17 00:07:59 UTC
Already fixed in current rawhide