Quellyn Snead <quel...@lanl.gov> added the comment:

> As to the actual problem, I think you're going to need to get out a debugger 
> and at least get a stack trace.

Here's my attempt:

$ gdb ./python
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-120.el7
Copyright (C) 2013 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 "ppc64le-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /vast/home/quellyn/GIT/cpython/python...done.
(gdb) set args -E -S -m sysconfig --generate-posix-vars
(gdb) run
Starting program: /vast/home/quellyn/GIT/cpython/./python -E -S -m sysconfig 
--generate-posix-vars
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: take_gil: NULL tstate
Python runtime state: preinitialized

Current thread 0x0000200000045fe0 (most recent call first):

Program received signal SIGSEGV, Segmentation fault.
0x00000000105a3870 in ?? ()
Missing separate debuginfos, use: debuginfo-install 
nss-softokn-freebl-3.53.1-6.el7_9.ppc64le
(gdb) bt
#0  0x00000000105a3870 in ?? ()
#1  0x000000001021c3a0 in dump_traceback (fd=2, tstate=0x105a3870, 
write_header=0)
    at Python/traceback.c:805
#2  0x000000001021c620 in _Py_DumpTracebackThreads (fd=2, interp=0x105a2b90, 
    current_tstate=0x105a3870) at Python/traceback.c:915
#3  0x00000000101ee2ac in _Py_FatalError_DumpTracebacks (fd=2, interp=0x0, 
tstate=0x105a3870)
    at Python/pylifecycle.c:1981
#4  0x00000000101ee800 in fatal_error (prefix=0x0, msg=0x1041c7b4 "take_gil: 
NULL tstate", 
    status=-1) at Python/pylifecycle.c:2159
#5  0x00000000101ee8b0 in Py_FatalError (msg=0x1041c7b4 "take_gil: NULL tstate")
    at Python/pylifecycle.c:2193
#6  0x000000001017ff04 in take_gil (ceval=0x1055c178 <_PyRuntime+584>, 
tstate=0x0)
    at Python/ceval_gil.h:187
#7  0x0000000010191db4 in PyEval_InitThreads () at Python/ceval.c:213
#8  0x00000000101f3490 in pycore_create_interpreter (runtime=0x1055bf30 
<_PyRuntime>, 
    config=0x105a2c40, interp_p=0x7fffffffd3c0) at Python/pylifecycle.c:550
#9  0x00000000101f35e0 in pyinit_config (runtime=0x1055bf30 <_PyRuntime>, 
interp_p=0x7fffffffd918, 
    config=0x7fffffffd5f0) at Python/pylifecycle.c:674
#10 0x00000000101f3b38 in pyinit_core (runtime=0x1055bf30 <_PyRuntime>, 
src_config=0x7fffffffdac0, 
    interp_p=0x7fffffffd918) at Python/pylifecycle.c:858
#11 0x00000000101f3dc4 in Py_InitializeFromConfig (config=0x7fffffffdac0)
    at Python/pylifecycle.c:1031
#12 0x000000001002409c in pymain_init (args=0x7fffffffde50) at Modules/main.c:78
---Type <return> to continue, or q <return> to quit---
#13 0x000000001002428c in pymain_main (args=0x7fffffffde50) at 
Modules/main.c:710
#14 0x0000000010024394 in Py_BytesMain (argc=6, argv=0x7fffffffe2d8) at 
Modules/main.c:743
#15 0x0000000010021e18 in main (argc=6, argv=0x7fffffffe2d8) at 
./Programs/python.c:16
(gdb)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue44877>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to