GNU bug report logs - #15078
24.2; Long, Short, Signed, or Unsigned in c++-mode hangs emacs

Previous Next

Packages: emacs, cc-mode;

Reported by: Matt Bisson <mbisson <at> ccs.neu.edu>

Date: Mon, 12 Aug 2013 18:09:01 UTC

Severity: normal

Found in versions 24.2, 24.3

Fixed in version 24.4

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 15078 in the body.
You can then email your comments to 15078 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#15078; Package emacs. (Mon, 12 Aug 2013 18:09:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Matt Bisson <mbisson <at> ccs.neu.edu>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 12 Aug 2013 18:09:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Matt Bisson <mbisson <at> ccs.neu.edu>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2; Long, Short, Signed, or Unsigned in c++-mode hangs emacs
Date: Mon, 12 Aug 2013 14:02:52 -0400 (EDT)
This bug report will be sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker at debbugs.gnu.org.  Please check that
the From: line contains a valid email address.  After a delay of up
to one day, you should receive an acknowledgement at that address.

Please write in English if possible, as the Emacs maintainers
usually do not have translators for other languages.

Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug.  If you can, give a recipe
starting from `emacs -Q':

1. (on Windows or Cygwin Emacs): run "emacs -Q something.cpp"
2. Type "Long" in the buffer.

This causes emacs to display "Lon" then enter into what seems like an
infinite loop.  You cannot interact with emacs, except for the notable
exception that C-g works(!).  If I had to guess, I would say the
"c-primitive-type-prefix-kwds" has something to do with it, but it may
be a red herring...

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
c:/emacs-24.2/etc/DEBUG.


In GNU Emacs 24.2.1 (i386-mingw-nt6.1.7601)
 of 2012-08-28 on MARVIN
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --with-gcc (4.6) --cflags
 -ID:/devel/emacs/libs/libXpm-3.5.8/include
 -ID:/devel/emacs/libs/libXpm-3.5.8/src
 -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include
 -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
 -ID:/devel/emacs/libs/giflib-4.1.4-1/include
 -ID:/devel/emacs/libs/jpeg-6b-4/include
 -ID:/devel/emacs/libs/tiff-3.8.2-1/include
 -ID:/devel/emacs/libs/gnutls-3.0.9/include'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENU
  value of $XMODIFIERS: nil
  locale-coding-system: cp1252
  default enable-multibyte-characters: t

Major mode: C++/l

Minor modes in effect:
  display-battery-mode: t
  show-paren-mode: t
  display-time-mode: t
  xgtags-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  abbrev-mode: t

Recent input:
<down-mouse-1> <mouse-1> T y p e n a m e <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
C l a s s <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> S t r u c t <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <down-mouse-1> <mouse-1> C o n s t SPC 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> M-x 
r e p o r t - e m <tab> <return>

Recent messages:
Loading mwheel...done
Loading c:/Users/mbisson/elisp/dos.elc...done
Loading c:/Users/mbisson/elisp/gtags.elc...done
Loading c:/Users/mbisson/elisp/xgtags.elc...done
Loading font-lock...done
For information about GNU Emacs and the GNU system, type C-h C-a.
x.cpp has auto save data; consider M-x recover-this-file
delete-backward-char: Beginning of buffer [29 times]
Auto-saving...

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils cc-mode cc-fonts cc-guess cc-menus cc-cmds
cc-styles cc-align cc-engine cc-vars cc-defs regexp-opt battery paren
time xgtags gtags dos easymenu noutline outline easy-mmode advice
help-fns advice-preload time-date tooltip ediff-hook vc-hooks
lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars
tool-bar dnd fontset image fringe lisp-mode register page menu-bar
rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax
facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
czech european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces
cus-face files text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget hashtable-print-readable backquote
make-network-process multi-tty emacs)




Information forwarded to bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org:
bug#15078; Package emacs,cc-mode. (Mon, 12 Aug 2013 18:13:02 GMT) Full text and rfc822 format available.

Message #8 received at 15078 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Matt Bisson <mbisson <at> ccs.neu.edu>
Cc: 15078 <at> debbugs.gnu.org
Subject: Re: bug#15078: 24.2;
 Long, Short, Signed, or Unsigned in c++-mode hangs emacs
Date: Mon, 12 Aug 2013 14:12:53 -0400
Matt Bisson wrote:

> 1. (on Windows or Cygwin Emacs): run "emacs -Q something.cpp"
> 2. Type "Long" in the buffer.
>
> This causes emacs to display "Lon" then enter into what seems like an
> infinite loop.

Thanks for the report. I see this in Emacs 24.3, but not the current
trunk, so it seems to already be fixed.




bug Marked as found in versions 24.3. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 12 Aug 2013 18:14:01 GMT) Full text and rfc822 format available.

bug marked as fixed in version 24.4, send any further explanations to 15078 <at> debbugs.gnu.org and Matt Bisson <mbisson <at> ccs.neu.edu> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 12 Aug 2013 18:14:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org:
bug#15078; Package emacs,cc-mode. (Fri, 16 Aug 2013 10:51:01 GMT) Full text and rfc822 format available.

Message #15 received at 15078 <at> debbugs.gnu.org (full text, mbox):

From: Alan Mackenzie <acm <at> muc.de>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 15078 <at> debbugs.gnu.org, Matt Bisson <mbisson <at> ccs.neu.edu>
Subject: Re: bug#15078: 24.2; Long, Short, Signed, or Unsigned in c++-mode
 hangs emacs
Date: Fri, 16 Aug 2013 10:49:18 +0000
On Mon, Aug 12, 2013 at 02:12:53PM -0400, Glenn Morris wrote:
> Matt Bisson wrote:

> > 1. (on Windows or Cygwin Emacs): run "emacs -Q something.cpp"
> > 2. Type "Long" in the buffer.

> > This causes emacs to display "Lon" then enter into what seems like an
> > infinite loop.

> Thanks for the report. I see this in Emacs 24.3, but not the current
> trunk, so it seems to already be fixed.

More precisely, in revision #112760 on 2013-05-28.

-- 
Alan Mackenzie (Nuremberg, Germany).




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 13 Sep 2013 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 284 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.