You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am consistently facing this issue on my ubuntu machine despite following all installation guidelines.
Could you please help me identify what exactly I am missing.
uname -a
Linux ubuntu 5.10.209 #1 SMP Wed Jul 31 02:47:10 PDT 2024 x86_64 x86_64 x86_64 GNU/Linux
#./pycrash vmlinux vmcore
warning: help text documentation is out-of-date
To update it, run 'make doc-help'
GDB [gdb], GDB_CMDLINE [], GDBINIT [/tmp/crash.ssek6O/gdbinit], TEST_GDBINIT [./test-gdb-compatibility.gdbinit]
Traceback (most recent call last):
File "<string>", line 4, in <module>
File "./build/lib/crash/__init__.py", line 6
def archname() -> str:
^
SyntaxError: invalid syntax
./test-gdb-compatibility.gdbinit:16: Error in sourced command file:
Error while executing Python code.
fatal: crash-python cannot initialize
Commenting this line in "crash.sh" helped me to move forward.
if ! $GDB $GDB_CMDLINE -nx -batch -x $GDBINIT -x $TEST_GDBINIT; then
echo "fatal: crash-python cannot initialize" >&2
- exit 1
+ # exit 1
fi
What's your python3 --version?
(type hinting syntax is only supported from 3.6)
But this might be actually the python-in-gdb, do you have also this gdb installed?
Thank you for you comments. Please find python & gdb versions' information, below.
[crash-python]python --version
Python 3.8.19
[crash-python]
[crash-python]./pycrash vmlinux vmcore
warning: help text documentation is out-of-date
To update it, run 'make doc-help'
Traceback (most recent call last):
File "<string>", line 4, in <module>
File "./build/lib/crash/__init__.py", line 6
def archname() -> str:
^
SyntaxError: invalid syntax
./test-gdb-compatibility.gdbinit:16: Error in sourced command file:
Error while executing Python code.
fatal: crash-python cannot initialize
Yes I installed python-in-gdb (followed this page https://github.com/crash-python/crash-python).
Although the package shows gdb version 12.1 but, post installation I found a different version (8.3). Is there anything am I missing?
[gdb-python]./gdb/gdb --version
GNU gdb (GDB) 8.3.50.20190416-git
Activity
[-]python-crash initialization fails[/-][+]crash-python initialization fails[/+]Werkov commentedon Aug 13, 2024
What's your
python3 --version?(type hinting syntax is only supported from 3.6)
But this might be actually the python-in-gdb, do you have also this gdb installed?
dassanjib commentedon Aug 14, 2024
Thank you for you comments. Please find python & gdb versions' information, below.
Yes I installed python-in-gdb (followed this page https://github.com/crash-python/crash-python).
Although the package shows gdb version 12.1 but, post installation I found a different version (8.3). Is there anything am I missing?
Werkov commentedon Aug 14, 2024
Have you checked out the right branch when building from git? I.e.
gdb-12.1-target, notmaster.dassanjib commentedon Aug 19, 2024
I am trying with gdb-12.1-target now. I shall come back with updates.
dassanjib commentedon Aug 19, 2024
I have been facing multiple compilation errors for gdb-12.1-target.
dassanjib commentedon Aug 23, 2024
Meanwhile I fix this build issue, may I share some findings with gdb 15.1.
GDB backtrace fails to access kernel memory in vmalloc range. This is with a linux kernel crash coredump on x86_64 platform.
In my understanding 0xffffc90000000000 is the vmalloc start range with 48-bit virtual addressing system.
https://www.kernel.org/doc/Documentation/x86/x86_64/mm.txt
And I have CONFIG_VMAP_STACK config enabled in my kernel configuration. So kernel call stack addresses
are expected to be from that range.
https://lwn.net/Articles/692208/
https://lwn.net/Articles/691631/
https://www.kernel.org/doc/Documentation/mm/vmalloced-kernel-stacks.rst
But gdb backtrace fails, I probably dont have the answer why.
However we dont face this issue with linux "crash" utility tool.
My query is, does crash-pthon throw similar backtrace failure errors with linux kernel coredump from x86_64?
Thanks in advance.
Sanjib