GNU bug report logs - #14129
24.3.50; gdb/gud: wrong-type-argument

Previous Next

Package: emacs;

Reported by: Miguel Guedes <miguel.a.guedes <at> gmail.com>

Date: Wed, 3 Apr 2013 13:52:02 UTC

Severity: normal

Found in version 24.3.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

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 14129 in the body.
You can then email your comments to 14129 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#14129; Package emacs. (Wed, 03 Apr 2013 13:52:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Miguel Guedes <miguel.a.guedes <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 03 Apr 2013 13:52:03 GMT) Full text and rfc822 format available.

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

From: Miguel Guedes <miguel.a.guedes <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; gdb/gud: wrong-type-argument
Date: Wed, 03 Apr 2013 14:48:25 +0100
 Description
-------------

An error is triggered when entering gdb and any subsequent action in
gdb/gud triggers the same error.

Error message:

error in process filter: Wrong type argument: number-or-marker-p, nil


 Backtrace
-----------

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p
nil)
  gdbmi-bnf-incomplete-record-result("5" (gdb-done . progressive))
  #[0 "\302\300\301@\"\207" ["5" ((gdb-done . progressive))
gdbmi-bnf-incomplete-record-result] 3 "\n\n(fn)"]()
  gdbmi-bnf-result-and-async-record-impl()
  gdbmi-bnf-async-record()
  gdbmi-bnf-out-of-band-record()
  gdbmi-bnf-output()
  gud-gdbmi-marker-filter(<SNIP <too long> >)
  


 Meta
------

In GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.6.0)
 of 2013-03-27 on papaya, modified by Debian
 (emacs-snapshot package, version 2:20130325-1~ppa1~quantal1)
Windowing system distributor `The X.Org Foundation', version
11.0.11300000
System Description:	Ubuntu 12.10

Configured using:
 `configure --build x86_64-linux-gnu --host x86_64-linux-gnu
 --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib
 --localstatedir=/var --infodir=/usr/share/info --mandir=/usr/share/man
 --with-pop=yes

--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.3.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3.50/site-lisp:/usr/share/emacs/site-lisp
 --without-compress-info --with-crt-dir=/usr/lib/x86_64-linux-gnu/
 --with-x=yes --with-x-toolkit=gtk3 --with-imagemagick=yes
 CFLAGS='-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2'
 CPPFLAGS='-D_FORTIFY_SOURCE=2' LDFLAGS='-g -Wl,--as-needed
 -znocombreloc''

Important settings:
  value of $LANG: en_GB.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Apropos

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
M-x d e b u g <M-backspace> t o g g l e - d e b u g 
<tab> e r r o r <return> M-x g d b <return> 
<M-backspace> <backspace> ~ / p r j / o m n i s / o 
u t / s r c / o m n i s <return> 

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
error in process filter: Wrong type argument: number-or-marker-p, nil
[96 times]
Debug on Error enabled globally
Entering debugger...
Mark set
Making completion list...

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 apropos help-mode easymenu debug cus-start
cus-load gdb-mi bindat json gud easy-mmode comint ansi-color ring
time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment
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 macroexp files text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind inotify
dynamic-setting system-font-setting font-render-setting move-toolbar gtk
x-toolkit x multi-tty emacs)

-- 
Miguel





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14129; Package emacs. (Wed, 03 Apr 2013 19:53:02 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Miguel Guedes <miguel.a.guedes <at> gmail.com>
Cc: 14129 <at> debbugs.gnu.org
Subject: Re: bug#14129: 24.3.50; gdb/gud: wrong-type-argument
Date: Wed, 03 Apr 2013 15:49:46 -0400
>  Description
> -------------
> An error is triggered when entering gdb and any subsequent action in
> gdb/gud triggers the same error.

When does it happen?  Just doing M-x gdb RET RET?


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14129; Package emacs. (Thu, 04 Apr 2013 03:16:02 GMT) Full text and rfc822 format available.

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

From: Miguel Guedes <miguel.a.guedes <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 14129 <at> debbugs.gnu.org
Subject: Re: bug#14129: 24.3.50; gdb/gud: wrong-type-argument
Date: Thu, 04 Apr 2013 04:12:23 +0100
On Wed, 2013-04-03 at 15:49 -0400, Stefan Monnier wrote:
> >  Description
> > -------------
> > An error is triggered when entering gdb and any subsequent action in
> > gdb/gud triggers the same error.
> 
> When does it happen?  Just doing M-x gdb RET RET?

After doing,

	M-x gdb RET

Then, when prompted with "Run gdb (like this): gdb -i=mi ",

	<enter /path/to/executable> RET

The error can then be seen.

Best Regards,

-- 
Miguel





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14129; Package emacs. (Fri, 05 Apr 2013 04:11:02 GMT) Full text and rfc822 format available.

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

From: Jean-Philippe Gravel <jpgravel <at> gmail.com>
To: 14129 <at> debbugs.gnu.org
Subject: bug#14129: 24.3.50; gdb/gud: wrong-type-argument
Date: Fri, 5 Apr 2013 00:07:36 -0400
Try the following patch.

The current buffer offset (gdbmi-bnf-offset) was incorrectly adjusted
when receiving incomplete responses from GDB.


=== modified file 'lisp/progmodes/gdb-mi.el'
*** lisp/progmodes/gdb-mi.el    2013-03-11 17:13:39 +0000
--- lisp/progmodes/gdb-mi.el    2013-04-05 03:47:08 +0000
***************
*** 2152,2167 ****
         (is-complete (not (null newline-pos)))
         result-str)

        ;; Update the gdbmi-bnf-offset only if the current chunk of data can
        ;; be processed by the class-command handler:
        (when (or is-complete is-progressive)
      (setq result-str
                (substring gud-marker-acc gdbmi-bnf-offset newline-pos))
-     (setq gdbmi-bnf-offset (+ 1 newline-pos)))

!       (if gdbmi-debug-mode
!           (message "gdbmi-bnf-incomplete-record-result: %s"
!                    (substring gud-marker-acc gdbmi-bnf-offset newline-pos)))

        ;; Update the parsing state before invoking the handler in class-command
        ;; to make sure it's not left in an invalid state if the handler was
--- 2152,2171 ----
         (is-complete (not (null newline-pos)))
         result-str)

+       (when gdbmi-debug-mode
+     (message "gdbmi-bnf-incomplete-record-result: %s"
+          (substring gud-marker-acc gdbmi-bnf-offset newline-pos)))
+
        ;; Update the gdbmi-bnf-offset only if the current chunk of data can
        ;; be processed by the class-command handler:
        (when (or is-complete is-progressive)
      (setq result-str
                (substring gud-marker-acc gdbmi-bnf-offset newline-pos))

!     ;; Move gdbmi-bnf-offset past the end of the chunk
!     (setq gdbmi-bnf-offset (+ gdbmi-bnf-offset (length result-str)))
!     (when newline-pos
!       (setq gdbmi-bnf-offset (1+ gdbmi-bnf-offset))))

        ;; Update the parsing state before invoking the handler in class-command
        ;; to make sure it's not left in an invalid state if the handler was




Reply sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
You have taken responsibility. (Wed, 17 Apr 2013 01:05:02 GMT) Full text and rfc822 format available.

Notification sent to Miguel Guedes <miguel.a.guedes <at> gmail.com>:
bug acknowledged by developer. (Wed, 17 Apr 2013 01:05:02 GMT) Full text and rfc822 format available.

Message #19 received at 14129-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Jean-Philippe Gravel <jpgravel <at> gmail.com>
Cc: 14129-done <at> debbugs.gnu.org
Subject: Re: bug#14129: 24.3.50; gdb/gud: wrong-type-argument
Date: Tue, 16 Apr 2013 20:52:04 -0400
> Try the following patch.
> The current buffer offset (gdbmi-bnf-offset) was incorrectly adjusted
> when receiving incomplete responses from GDB.

Installed, thank you,


        Stefan




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

This bug report was last modified 12 years and 39 days ago.

Previous Next


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