Discussion:
Python 3.13 segfaulting on m68k
(too old to reply)
John Paul Adrian Glaubitz
2024-11-13 14:20:01 UTC
Permalink
Hello,

does anyone have a solution on how to fix Python 3.13 with 2-byte alignment?

./_bootstrap_python ../Programs/_freeze_module.py abc ../Lib/abc.py Python/frozen_modules/abc.h
./_bootstrap_python ../Programs/_freeze_module.py codecs ../Lib/codecs.py Python/frozen_modules/codecs.h
./_bootstrap_python ../Programs/_freeze_module.py io ../Lib/io.py Python/frozen_modules/io.h
./_bootstrap_python ../Programs/_freeze_module.py _collections_abc ../Lib/_collections_abc.py Python/frozen_modules/_collections_abc.h
./_bootstrap_python ../Programs/_freeze_module.py _sitebuiltins ../Lib/_sitebuiltins.py Python/frozen_modules/_sitebuiltins.h
./_bootstrap_python ../Programs/_freeze_module.py genericpath ../Lib/genericpath.py Python/frozen_modules/genericpath.h
./_bootstrap_python ../Programs/_freeze_module.py ntpath ../Lib/ntpath.py Python/frozen_modules/ntpath.h
./_bootstrap_python ../Programs/_freeze_module.py posixpath ../Lib/posixpath.py Python/frozen_modules/posixpath.h
./_bootstrap_python ../Programs/_freeze_module.py os ../Lib/os.py Python/frozen_modules/os.h
./_bootstrap_python ../Programs/_freeze_module.py site ../Lib/site.py Python/frozen_modules/site.h
./_bootstrap_python ../Programs/_freeze_module.py stat ../Lib/stat.py Python/frozen_modules/stat.h
./_bootstrap_python ../Programs/_freeze_module.py importlib.util ../Lib/importlib/util.py Python/frozen_modules/importlib.util.h
./_bootstrap_python ../Programs/_freeze_module.py importlib.machinery ../Lib/importlib/machinery.py Python/frozen_modules/importlib.machinery.h
./_bootstrap_python ../Programs/_freeze_module.py runpy ../Lib/runpy.py Python/frozen_modules/runpy.h
./_bootstrap_python ../Programs/_freeze_module.py __hello__ ../Lib/__hello__.py Python/frozen_modules/__hello__.h
./_bootstrap_python ../Programs/_freeze_module.py __phello__ ../Lib/__phello__/__init__.py Python/frozen_modules/__phello__.h
./_bootstrap_python ../Programs/_freeze_module.py __phello__.ham ../Lib/__phello__/ham/__init__.py Python/frozen_modules/__phello__.ham.h
./_bootstrap_python ../Programs/_freeze_module.py __phello__.ham.eggs ../Lib/__phello__/ham/eggs.py Python/frozen_modules/__phello__.ham.eggs.h
./_bootstrap_python ../Programs/_freeze_module.py __phello__.spam ../Lib/__phello__/spam.py Python/frozen_modules/__phello__.spam.h
./_bootstrap_python ../Programs/_freeze_module.py frozen_only ../Tools/freeze/flag.py Python/frozen_modules/frozen_only.h
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault
Segmentation fault

Thanks,
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
John Paul Adrian Glaubitz
2024-11-14 08:40:01 UTC
Permalink
Post by John Paul Adrian Glaubitz
does anyone have a solution on how to fix Python 3.13 with 2-byte alignment?
This is the backtrace:

(gdb) r
Starting program: /home/glaubitz/python3.13-3.13.0/build-static/_bootstrap_python ../Programs/_freeze_module.py abc ../Lib/abc.py Python/frozen_modules/abc.h

Program received signal SIGSEGV, Segmentation fault.
0x801c56d0 in _PyGCHead_NEXT (gc=0x85f0b6c0) at ../Include/internal/pycore_gc.h:175
175 uintptr_t next = gc->_gc_next;
(gdb) bt
#0 0x801c56d0 in _PyGCHead_NEXT (gc=0x85f0b6c0) at ../Include/internal/pycore_gc.h:175
#1 update_refs (containers=0x804eb4f2 <_PyRuntime+50314>) at ../Python/gc.c:396
#2 deduce_unreachable (unreachable=0xefffecc8, base=0x804eb4f2 <_PyRuntime+50314>) at ../Python/gc.c:1086
#3 gc_collect_main (tstate=0x80502b22 <_PyRuntime+146106>, generation=0, reason=_Py_GC_REASON_HEAP) at ../Python/gc.c:1360
#4 0x801c6e06 in _Py_RunGC (tstate=0x80502b22 <_PyRuntime+146106>) at ../Python/gc.c:1837
#5 0x801ce9ac in _Py_HandlePending (tstate=0x80502b22 <_PyRuntime+146106>) at ../Python/ceval_gil.c:1296
#6 0x80012936 in _PyEval_EvalFrameDefault (tstate=0x80502b22 <_PyRuntime+146106>, frame=0xc0025238, throwflag=0) at ../Python/generated_cases.c.h:1364
#7 0x8019689e in _PyEval_EvalFrame (throwflag=0, frame=<optimized out>, tstate=<optimized out>) at ../Include/internal/pycore_ceval.h:119
#8 0x800694b8 in _PyFunction_Vectorcall (func=0xc02c2208, stack=0xefffeed4, nargsf=2, kwnames=0x0) at ../Objects/call.c:413
#9 0x80068e54 in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=2, args=0xefffeed4, callable=0xc02c2208, tstate=0x804ba000) at ../Include/internal/pycore_call.h:168
#10 object_vacall (tstate=0x80502b22 <_PyRuntime+146106>, base=0x0, callable=0xc02c2208, vargs=<optimized out>) at ../Objects/call.c:819
#11 0x80069d8e in PyObject_CallMethodObjArgs (obj=0x0, name=0x804e4ed4 <_PyRuntime+24172>) at ../Objects/call.c:880
#12 0x801d6a06 in import_find_and_load (abs_name=0xc02e83e0, tstate=0x80502b22 <_PyRuntime+146106>) at ../Python/import.c:3683
#13 PyImport_ImportModuleLevelObject (name=0xc02e83e0, globals=0xc02f5960, locals=0xc02f5960, fromlist=0xc02e81e8, level=0) at ../Python/import.c:3765
#14 0x8018f218 in builtin___import___impl (level=0, fromlist=0xc02e81e8, locals=0xc02f5960, globals=0xc02f5960, name=0xc02e83e0, module=<optimized out>)
at ../Python/bltinmodule.c:277
#15 builtin___import__ (module=0xc02a25f0, args=<optimized out>, nargs=5, kwnames=0x0) at ../Python/clinic/bltinmodule.c.h:107
#16 0x800c436c in cfunction_vectorcall_FASTCALL_KEYWORDS (func=0xc02a2668, args=0xeffff01c, nargsf=5, kwnames=0x0) at ../Objects/methodobject.c:441
#17 0x800690ec in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=<optimized out>, args=0xeffff01c, callable=0xc02a2668, tstate=0x80502b22 <_PyRuntime+146106>)
at ../Include/internal/pycore_call.h:168
#18 _PyObject_CallFunctionVa (tstate=0x80502b22 <_PyRuntime+146106>, callable=0xc02a2668, format=0x8033e43e "OOOOi", va=0xeffff05c) at ../Objects/call.c:552
#19 0x80069662 in PyObject_CallFunction (callable=0xc02a2668, format=0x8033e43e "OOOOi") at ../Objects/call.c:574
#20 0x801d72ee in PyImport_Import (module_name=0xc02e83e0) at ../Python/import.c:3950
#21 0x801d7586 in PyImport_ImportModule (name=0x8033a447 "encodings") at ../Python/import.c:3390
#22 0x8019a866 in _PyCodec_InitRegistry (interp=0x804ea654 <_PyRuntime+46572>) at ../Python/codecs.c:1505
#23 0x80143b3a in _PyUnicode_InitEncodings (tstate=0x80502b22 <_PyRuntime+146106>) at ../Objects/unicodeobject.c:15755
#24 0x801f3246 in init_interp_main (tstate=0x80502b22 <_PyRuntime+146106>) at ../Python/pylifecycle.c:1200
#25 0x801f3624 in pyinit_main (tstate=0x0) at ../Python/pylifecycle.c:1374
#26 pyinit_main (tstate=0x80502b22 <_PyRuntime+146106>) at ../Python/pylifecycle.c:1363
#27 0x801f489e in Py_InitializeFromConfig (config=<optimized out>) at ../Python/pylifecycle.c:1405
#28 0x80009d10 in main (argc=5, argv=0xeffff4a4) at ../Programs/_bootstrap_python.c:94
(gdb)

Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Loading...