Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fresh compile from git, Python spams error messages when running gdb #7

Open
katastic opened this issue Nov 23, 2017 · 0 comments
Open

Comments

@katastic
Copy link

Installed Python versions:

Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2

Python 3.5.2 (default, Sep 14 2017, 22:51:06)
[GCC 5.4.0 20160609] on linux

So I run a program with the new compiled gdb, and here's what happens, notice the Python errors. (Not sure if there's supposed to be colorized output or something and that's failing). I run a program, then I hit Control-C to pause, and type bt for stack trace:

gdb ./main
Traceback (most recent call last):
File "/usr/local/share/gdb/python/gdb/init.py", line 144, in auto_load_packages
import(modname)
File "/usr/local/share/gdb/python/gdb/command/explore.py", line 756, in
Explorer.init_env()
File "/usr/local/share/gdb/python/gdb/command/explore.py", line 135, in init_env
gdb.TYPE_CODE_RVALUE_REF : ReferenceExplorer,
AttributeError: module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF'

GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./main...done.
(gdb) run
Starting program: /home/novous/Desktop/dev6/d_plane/main
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

[New Thread 0x7ffff258b700 (LWP 13267)]
[New Thread 0x7fffeab71700 (LWP 13285)]

^C
Thread 1 "main" received signal SIGINT, Interrupt.
0x00007ffff649170d in poll () at ../sysdeps/unix/syscall-template.S:84
84 ../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) st
Ambiguous command "st": stack, start, status, step, stepi, stepping, stop, strace.
(gdb) bt
#0 0x00007ffff649170d in poll () at ../sysdeps/unix/syscall-template.S:84
#1 0x00007ffff4c81c62 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2 0x00007ffff4c83617 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3 0x00007ffff4c83721 in xcb_wait_for_reply () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#4 0x00007ffff6099a47 in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#5 0x00007ffff560782a in ?? () from /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
#6 0x00007ffff5607b67 in ?? () from /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
#7 0x00007ffff183383b in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#8 0x00007ffff1833d51 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#9 0x00007ffff186e1aa in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#10 0x00007ffff15b763f in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#11 0x00007ffff15b77c2 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
#12 0x00007ffff7b99f12 in ogl_lock_region_nonbb_readwrite_fbo (ogl_bitmap=0xb21710, ogl_bitmap=0xb21710, format=9, h=1, w=1, gl_y=, x=327,
bitmap=0xb49d00) at /home/novous/Downloads/allegro5/src/opengl/ogl_lock.c:326
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
#13 ogl_lock_region_nonbb_readwrite (format=9, h=1, w=1, gl_y=, x=327, ogl_bitmap=0xb21710, bitmap=0xb49d00)
at /home/novous/Downloads/allegro5/src/opengl/ogl_lock.c:260
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
#14 _al_ogl_lock_region_new (bitmap=0xb49d00, x=327, y=, w=1, h=1, format=9, flags=1) at /home/novous/Downloads/allegro5/src/opengl/ogl_lock.c:162
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
#15 0x00007ffff7b1ac5f in al_lock_bitmap_region (bitmap=bitmap@entry=0xb49d00, x=x@entry=327, y=y@entry=502, width=width@entry=1, height=height@entry=1,
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
format=format@entry=0, flags=1) at /home/novous/Downloads/allegro5/src/bitmap_lock.c:108
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
#16 0x00007ffff7b1b298 in al_get_pixel (bitmap=0xb49d00, x=327, y=502) at /home/novous/Downloads/allegro5/src/bitmap_pixel.c:63
#17 0x00000000004368aa in allegro5.bitmap.al_get_pixel(allegro5.bitmap.ALLEGRO_BITMAP*, int, int) ()
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
#18 0x0000000000404f11 in _D4main8object_t7collideMFZb (this=0x7ffff7eb0000) at main.d:429
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
#19 0x0000000000405895 in _D4main7plane_t5logicMFZv (this=0x7ffff7eb0000) at main.d:556
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
#20 0x0000000000403e1b in _D4main7world_t5logicMFZv (this=0x7ffff7eae100) at main.d:240
#21 0x0000000000407b42 in _D4main5logicFZv () at main.d:1288
#22 0x0000000000408c2b in _D4main9main_loopFZv () at main.d:1548
#23 0x00000000004092dd in _D4main4mainFAAaZ9__lambda2MFZi () at main.d:1593
#24 0x0000000000436dee in allegro5.system.al_run_allegro(scope int() delegate).main_runner(int, char**) ()
#25 0x0000000000436dc4 in allegro5.system.al_run_allegro(scope int() delegate) ()
Python Exception <class 'AttributeError'> module 'gdb' has no attribute 'TYPE_CODE_RVALUE_REF':
#26 0x00000000004092ae in _Dmain (args=...) at main.d:1590

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant