Skip to content

crash-python initialization fails #50

@dassanjib

Description

@dassanjib

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions