bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#22657: 24.5; "Python Exception <class 'NameError'> name 'long' is no


From: Douglas Anderson
Subject: bug#22657: 24.5; "Python Exception <class 'NameError'> name 'long' is not defined" while using gdb registers buffer
Date: Sun, 14 Feb 2016 10:22:40 -0700

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 <stdio.h>
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 <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:
Python Exception <class 'NameError'> name 'long' is not defined:

(I hit Enter a few times)

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

Breakpoint 1, 0x000000000040053a in main ()
(gdb) 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:
Python Exception <class 'NameError'> name 'long' is not defined:


Breakpoint 1, 0x000000000040053a in main ()
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:
Python Exception <class 'NameError'> 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 <address@hidden> wrote:
> From: Douglas Anderson <address@hidden>
> 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 <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:
> Python Exception <class 'NameError'> 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]