From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Douglas Anderson Newsgroups: gmane.emacs.bugs Subject: bug#22657: 24.5; "Python Exception name 'long' is not defined" while using gdb registers buffer Date: Sun, 14 Feb 2016 10:22:40 -0700 Message-ID: References: <83fuwvz1wr.fsf@gnu.org> Reply-To: douglas.j.anderson@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c3c7c8ecf13f052bbe26d2 X-Trace: ger.gmane.org 1455470659 17169 80.91.229.3 (14 Feb 2016 17:24:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Feb 2016 17:24:19 +0000 (UTC) Cc: 22657@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 14 18:24:12 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aV0P5-0006N8-SH for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Feb 2016 18:24:12 +0100 Original-Received: from localhost ([::1]:52276 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aV0P5-0007hl-7u for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Feb 2016 12:24:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aV0P1-0007hd-6E for bug-gnu-emacs@gnu.org; Sun, 14 Feb 2016 12:24:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aV0Ow-0004mt-Aa for bug-gnu-emacs@gnu.org; Sun, 14 Feb 2016 12:24:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48234) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aV0Ow-0004mp-6h for bug-gnu-emacs@gnu.org; Sun, 14 Feb 2016 12:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aV0Ow-0001LV-21 for bug-gnu-emacs@gnu.org; Sun, 14 Feb 2016 12:24:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Douglas Anderson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Feb 2016 17:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22657 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22657-submit@debbugs.gnu.org id=B22657.14554705885108 (code B ref 22657); Sun, 14 Feb 2016 17:24:02 +0000 Original-Received: (at 22657) by debbugs.gnu.org; 14 Feb 2016 17:23:08 +0000 Original-Received: from localhost ([127.0.0.1]:39009 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aV0O3-0001KK-Vq for submit@debbugs.gnu.org; Sun, 14 Feb 2016 12:23:08 -0500 Original-Received: from mail-lb0-f181.google.com ([209.85.217.181]:35035) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aV0O2-0001Jc-92 for 22657@debbugs.gnu.org; Sun, 14 Feb 2016 12:23:06 -0500 Original-Received: by mail-lb0-f181.google.com with SMTP id bc4so67443524lbc.2 for <22657@debbugs.gnu.org>; Sun, 14 Feb 2016 09:23:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=CczH5bAycT/LHIfB+udiwPSFqUV1lPrazpbKc0tIzWA=; b=QY9nh+x/LOKUH0zRGMN6a6DKs4LblR6uVvpHCxw8mR/r/rjHDegh6VO0NnYak48lfh opuO09GAuaBMtVqG5VLc2U/3dZ9UZjxdSHWeu2Lt5XOKFyX4sWrBZGBTWtDOjKx4JKeG YHGrHqFrYzOE6vBQ4073AeDCLel5vmFX1I5YZCMhctIUOX5+p5IcMfch4S2ppb5fu4cc ngNJasdyhz/i23vdA2LlxAhr9TIZ7PBbkRdn0426npaJ5m3uBR2YkWbaJ9KU2NEWfVsA lvzjbOkJG0G41FGCAbR+wiU147/EZYCb7P1Y5Ysw6GNhCycUTod8V4uAjhl2etWHrzve xqXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=CczH5bAycT/LHIfB+udiwPSFqUV1lPrazpbKc0tIzWA=; b=DODMJGpNcll+vm+Y6O0vf4rQETBHerwCfxeD228JXgMsqdbfWqS1+o9g+EcJn1rUgq BmjNCwkyP48I/tgDEn71H8hf6/kiS/WdogJUP6Yn2Da+Fy+EuX1xJgheXS/7nydF3kmF /oPsOc9eTZLbPas3Crlc+gPiv5vL3JZHAz/sOytTWy8JQO55+hwjwX897vJxJbldpScK GNsyJtUqvwbSqkzQDg7l0EICdx74qbRcl9yic3FW26FBmE+V/g9xsOaynNt5wWJWOc60 llQFanOd0S+ONCL1/lLE+weAMOhV80rbdsLa5nhwk2uR9rwAmc5Q7dV2naOxqldNEIdj AVSw== X-Gm-Message-State: AG10YORodbBxTIACMPMHrtTfGAZfneD83aOG+etR4W2QUM8ssB/C/UBencNFypYisr1yn4KTVl63l+QWMXba7Q== X-Received: by 10.112.161.198 with SMTP id xu6mr1812192lbb.131.1455470580394; Sun, 14 Feb 2016 09:23:00 -0800 (PST) Original-Received: by 10.25.215.215 with HTTP; Sun, 14 Feb 2016 09:22:40 -0800 (PST) In-Reply-To: <83fuwvz1wr.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:113026 Archived-At: --001a11c3c7c8ecf13f052bbe26d2 Content-Type: text/plain; charset=UTF-8 Thanks Eli, I did `$ sudo apt-get purge emacs && sudo apt-get update && sudo apt-get install emacs` to make sure my installation wasn't corrupted. I don't have any gdb-specific lines in my init.el $ gdb --version GNU gdb (Ubuntu 7.10-1ubuntu2) 7.10 [...] $ cat test.c #include int main() {printf("Testing...\n");} $ gcc --version gcc (Ubuntu 5.2.1-22ubuntu2) 5.2.1 20151010 $ gcc test.c M-x gdb Run gdb (like this): gdb -i=mi a.out (If it opens in many-windows mode, continue on, if not, do M-x gdb-display-registers-buffer) (gdb) b main Breakpoint 1 at 0x40053a (gdb) r Starting program:[...]/a.out Breakpoint 1, 0x000000000040053a in main () (gdb) Python Exception name 'long' is not defined: Python Exception name 'long' is not defined: Python Exception name 'long' is not defined: Python Exception name 'long' is not defined: (I hit Enter a few times) Starting program: [...]/a.out Breakpoint 1, 0x000000000040053a in main () (gdb) Python Exception name 'long' is not defined: Python Exception name 'long' is not defined: Python Exception name 'long' is not defined: Python Exception name 'long' is not defined: Breakpoint 1, 0x000000000040053a in main () Python Exception name 'long' is not defined: Python Exception name 'long' is not defined: Python Exception name 'long' is not defined: Python Exception name 'long' is not defined: In the status line, it says, "error in process filter: Bad string format: "doesn't start with '\"\!" If you still can't reproduce, maybe it's a bug for the ubuntu package maintainer. Thanks, -Doug On Sun, Feb 14, 2016 at 9:34 AM, Eli Zaretskii wrote: > > From: Douglas Anderson > > Date: Sat, 13 Feb 2016 22:00:49 -0700 > > > > I'm using current stable on Ubuntu 15.10. > > > > Steps to reproduce: > > - open emacs gdb-many-windows mode (I only hit this bug if the registers > > buffer is open) > > - set a breakpoint > > - run > > > > The following text appears in the gud window: > > (gdb) Python Exception name 'long' is not defined: > > Python Exception name 'long' is not defined: > > Python Exception name 'long' is not defined: > > Python Exception name 'long' is not defined: > > > > Hitting enter reruns the program from the beginning. > > I cannot reproduce this. Please show the exact sequence of commands > you used, including the program which you ran under the debugger, for > me to be sure I did the same. > > Also, what is your GDB version? > > IME, Python exceptions in GDB usually mean your Python support files > are from a different GDB version, so perhaps double-check your GDB > installation. > > Thanks. > --001a11c3c7c8ecf13f052bbe26d2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks Eli,

I did `$ sudo apt-get purge emacs && sudo apt-get update &am= p;& sudo apt-get install emacs` to make sure my installation wasn't= corrupted.

I don't have any gdb-specific lines in my= init.el

$ gdb --version
GNU gdb (Ubuntu 7.10-1ubuntu2= ) 7.10
[...]

$ cat test.c
#include <stdio.h>
int mai= n() {printf("Testing...\n");}

$ gcc --version
gcc (Ubun= tu 5.2.1-22ubuntu2) 5.2.1 20151010

$ gcc test.c

M-x gdb=
Run gdb (like this): gdb -i=3Dmi a.out
(If it opens= in many-windows mode, continue on, if not, do M-x gdb-display-registers-bu= ffer)

(gdb) b main
Breakpoint 1 at 0x40053a
(gdb) r
S= tarting program:[...]/a.out

Breakpoint 1, 0x000000000040053a in mai= n ()
(gdb) Python Exception <class 'NameError'> name '= long' is not defined:
Python Exception <class 'NameError'= ;> name 'long' is not defined:
Python Exception <class &#= 39;NameError'> name 'long' is not defined:
Python Except= ion <class 'NameError'> name 'long' is not defined: <= br>
(I hit Enter a few times)

Starting program: [...]/a.out=

Breakpoint 1, 0x000000000040053a in main ()
(gdb) Python Except= ion <class 'NameError'> name 'long' is not defined: <= br>Python Exception <class 'NameError'> name 'long' i= s not defined:
Python Exception <class 'NameError'> name = 'long' is not defined:
Python Exception <class 'NameErro= r'> name 'long' is not defined:


Breakpoint 1, 0x= 000000000040053a in main ()
Python Exception <class 'NameError= 9;> name 'long' is not defined:
Python Exception <class &= #39;NameError'> name 'long' is not defined:
Python Excep= tion <class 'NameError'> name 'long' is not defined: =
Python Exception <class 'NameError'> name 'long' = is not defined:

In the status line, it says, "error in p= rocess filter: Bad string format: "doesn't start with '\"= \!"

If you still can't reproduce, maybe it's= a bug for the ubuntu package maintainer.
Thanks,
-Doug<= br>

On Sun, = Feb 14, 2016 at 9:34 AM, Eli Zaretskii <eliz@gnu.org> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">> From: Douglas Anderson <douglasjanderson@gmail.com>
> Date: Sat, 13 Feb 2016 22:00:49 -0700
>
> I'm using current stable on Ubuntu 15.10.
>
> Steps to reproduce:
> - open emacs gdb-many-windows mode (I only hit this bug if the registe= rs
> buffer is open)
> - set a breakpoint
> - run
>
> The following text appears in the gud window:
> (gdb) Python Exception <class 'NameError'> name 'lon= g' is not defined:
> Python Exception <class 'NameError'> name 'long'= is not defined:
> Python Exception <class 'NameError'> name 'long'= is not defined:
> Python Exception <class 'NameError'> name 'long'= is not defined:
>
> Hitting enter reruns the program from the beginning.

I cannot reproduce this.=C2=A0 Please show the exact sequence of commands you used, including the program which you ran under the debugger, for
me to be sure I did the same.

Also, what is your GDB version?

IME, Python exceptions in GDB usually mean your Python support files
are from a different GDB version, so perhaps double-check your GDB
installation.

Thanks.

--001a11c3c7c8ecf13f052bbe26d2--