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

Router crash in python at startup #1306

Closed
kgiusti opened this issue Dec 1, 2023 · 1 comment · Fixed by #1307
Closed

Router crash in python at startup #1306

kgiusti opened this issue Dec 1, 2023 · 1 comment · Fixed by #1307
Assignees
Milestone

Comments

@kgiusti
Copy link
Contributor

kgiusti commented Dec 1, 2023

Program received signal SIGSEGV, Segmentation fault.
0x00007f9a8b9da771 in _PyInterpreterState_GET () at /usr/src/debug/python3.12-3.12.0-1.fc39.x86_64/Include/internal/pycore_pystate.h:118
118         return tstate->interp;
(gdb) bt
#0  0x00007f9a8b9da771 in _PyInterpreterState_GET () at /usr/src/debug/python3.12-3.12.0-1.fc39.x86_64/Include/internal/pycore_pystate.h:118
#1  get_state () at /usr/src/debug/python3.12-3.12.0-1.fc39.x86_64/Objects/obmalloc.c:866
#2  _PyObject_Malloc (ctx=<optimized out>, nbytes=77) at /usr/src/debug/python3.12-3.12.0-1.fc39.x86_64/Objects/obmalloc.c:1563
#3  0x00007f9a8b9e206b in PyObject_Malloc (size=<optimized out>) at /usr/src/debug/python3.12-3.12.0-1.fc39.x86_64/Objects/obmalloc.c:801
#4  PyUnicode_New (size=36, maxchar=<optimized out>) at /usr/src/debug/python3.12-3.12.0-1.fc39.x86_64/Objects/unicodeobject.c:1208
#5  0x00007f9a8b9e145c in unicode_decode_utf8 (s=<optimized out>, size=36, error_handler=error_handler@entry=_Py_ERROR_UNKNOWN, errors=errors@entry=0x0, consumed=consumed@entry=0x0)
    at /usr/src/debug/python3.12-3.12.0-1.fc39.x86_64/Objects/unicodeobject.c:4647
#6  0x00007f9a8b9e13e9 in PyUnicode_DecodeUTF8Stateful (consumed=0x0, errors=0x0, size=<optimized out>, s=<optimized out>) at /usr/src/debug/python3.12-3.12.0-1.fc39.x86_64/Objects/unicodeobject.c:4780
#7  0x0000000000467b50 in qd_python_initialize (python_pkgdir=0x4c2848 "/usr/local/lib/skupper-router/python", qd=<optimized out>) at /root/work/skupper-router/src/python_embedded.c:52
#8  qd_dispatch (python_pkgdir=0x4c2848 "/usr/local/lib/skupper-router/python", test_hooks=<optimized out>) at /root/work/skupper-router/src/dispatch.c:137
#9  0x000000000042cea7 in main_process (config_path=config_path@entry=0x4c27d0 "/usr/local/etc/skupper-router/skrouterd.conf", python_pkgdir=python_pkgdir@entry=0x4c2848 "/usr/local/lib/skupper-router/python", test_hooks=false,
    fd=fd@entry=2) at /root/work/skupper-router/router/src/main.c:97
#10 0x0000000000428e50 in main (argc=1, argv=0x7ffef77c64e8) at /root/work/skupper-router/router/src/main.c:365
(gdb) p tstate
$1 = (PyThreadState *) 0x0
@kgiusti kgiusti self-assigned this Dec 1, 2023
kgiusti added a commit to kgiusti/skupper-router that referenced this issue Dec 1, 2023
@jiridanek
Copy link
Contributor

Isn't this something that @ganeshmurthy saw during his arm64 work? The stacktrace looks familiar.

@kgiusti kgiusti added this to the 2.5.1 milestone Dec 6, 2023
kgiusti added a commit to kgiusti/skupper-router that referenced this issue Dec 18, 2023
kgiusti added a commit that referenced this issue Dec 18, 2023
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

Successfully merging a pull request may close this issue.

2 participants