kernel debugging - "internal-error: inferior_thread"

Ran Shalit
Sun Aug 23 08:20:00 GMT 2015


I hope someone here is familiar with kernel debugging using kgdb.
I am doing the following steps in target and host, but get error
messages in gdb:

# echo ttyS0,9600 > /sys/module/kgdboc/parameters/kgdboc
kgdb: Registered I/O driver kgdboc.
echo g # echo g > /proc/sysrq-trigger
Entering KGDB

~/dtu/jjj/gdb-7.9.1/gdb/gdb -b 9600
Python Exception <type 'exceptions.ImportError'> No module named gdb:
/home/ubuntu/dtu/jjj/gdb-7.9.1/gdb/gdb: warning:
Could not load the Python gdb module from `/home/tigran/gdb/share/gdb/python'.
Limited Python support is available from the _gdb module.
Suggest passing --data-directory=/path/to/gdb/data-directory.

GNU gdb (GDB) 7.9.1
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
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 "--host=i686-pc-linux-gnu
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from
(gdb) target remote /dev/ttyUSB0
Remote debugging using /dev/ttyUSB0
thread.c:89: internal-error: inferior_thread: Assertion `tp' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) y
Command aborted.

Thanks for any suggestions,


More information about the Gdb mailing list