GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Python 3.14 fails to build on hppa, error indicates stack overflow (false positive?) · Issue #139914 · python/cpython

Python 3.14 fails to build on hppa, error indicates stack overflow (false positive?) #139914

New issue
Copy link
New issue
Copy link
Closed
Closed
Python 3.14 fails to build on hppa, error indicates stack overflow (false positive?)#139914
Copy link
Labels
3.14bugs and security fixesbugs and security fixes3.15bugs and security fixesbugs and security fixesOS-unsupportedbuildThe build process and cross-buildThe build process and cross-buildinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@akhuettel
akhuettel
opened on Oct 10, 2025
Issue body actions

The original report is https://bugs.gentoo.org/959416 - however, we are hitting this in Gentoo release engineering and it is blocking the update of the HPPA stages.

During Python 3.14 build, an error message indicating a stack overflow occurs on Linux/HPPA. Note that HPPA is an outlier in the sense that its stack grows UPwards, which makes me suspect that it could be a false positive.

The log snippet below is Python 3.14.0 in a qemu-hppa chroot; the log in the above bug is a prerelease on real hardware.

hppa2.0-unknown-linux-gnu-gcc   -Wl,-O1 -Wl,--as-needed  -o Programs/_freeze_module Programs/_freeze_module.o Modules/getpath_noop.o Modules/getbuildinfo.o Parser/token.o  Parser/pegen.o Parser/pegen_errors.o Parser/action_helpers.o Parser/parser.o Parser/string_parser.o Parser/peg_api.o Parser/lexer/buffer.o Parser/lexer/lexer.o Parser/lexer/state.o Parser/tokenizer/file_tokenizer.o Parser/tokenizer/readline_tokenizer.o Parser/tokenizer/string_tokenizer.o Parser/tokenizer/utf8_tokenizer.o Parser/tokenizer/helpers.o Parser/myreadline.o Objects/abstract.o Objects/boolobject.o Objects/bytes_methods.o Objects/bytearrayobject.o Objects/bytesobject.o Objects/call.o Objects/capsule.o Objects/cellobject.o Objects/classobject.o Objects/codeobject.o Objects/complexobject.o Objects/descrobject.o Objects/enumobject.o Objects/exceptions.o Objects/genericaliasobject.o Objects/genobject.o Objects/fileobject.o Objects/floatobject.o Objects/frameobject.o Objects/funcobject.o Objects/interpolationobj
 ect.o Objects/iterobject.o Objects/listobject.o Objects/longobject.o Objects/dictobject.o Objects/odictobject.o Objects/memoryobject.o Objects/methodobject.o Objects/moduleobject.o Objects/namespaceobject.o Objects/object.o Objects/obmalloc.o Objects/picklebufobject.o Objects/rangeobject.o Objects/setobject.o Objects/sliceobject.o Objects/structseq.o Objects/templateobject.o Objects/tupleobject.o Objects/typeobject.o Objects/typevarobject.o Objects/unicodeobject.o Objects/unicodectype.o Objects/unionobject.o Objects/weakrefobject.o  Python/_contextvars.o Python/_warnings.o Python/Python-ast.o Python/Python-tokenize.o Python/asdl.o Python/assemble.o Python/ast.o Python/ast_preprocess.o Python/ast_unparse.o Python/bltinmodule.o Python/brc.o Python/ceval.o Python/codecs.o Python/codegen.o Python/compile.o Python/context.o Python/critical_section.o Python/crossinterp.o Python/dynamic_annotations.o Python/errors.o Python/flowgraph.o Python/frame.o Python/frozenmain.o Python/future.o Pyth
 on/gc.o Python/gc_free_threading.o Python/gc_gil.o Python/getargs.o Python/getcompiler.o Python/getcopyright.o Python/getplatform.o Python/getversion.o Python/ceval_gil.o Python/hamt.o Python/hashtable.o Python/import.o Python/importdl.o Python/index_pool.o Python/initconfig.o Python/interpconfig.o Python/instrumentation.o Python/instruction_sequence.o Python/intrinsics.o Python/jit.o Python/legacy_tracing.o Python/lock.o Python/marshal.o Python/modsupport.o Python/mysnprintf.o Python/mystrtoul.o Python/object_stack.o Python/optimizer.o Python/optimizer_analysis.o Python/optimizer_symbols.o Python/parking_lot.o Python/pathconfig.o Python/preconfig.o Python/pyarena.o Python/pyctype.o Python/pyfpe.o Python/pyhash.o Python/pylifecycle.o Python/pymath.o Python/pystate.o Python/pythonrun.o Python/pytime.o Python/qsbr.o Python/bootstrap_hash.o Python/specialize.o Python/stackrefs.o Python/structmember.o Python/symtable.o Python/sysmodule.o Python/thread.o Python/traceback.o Python/tracema
 lloc.o Python/uniqueid.o Python/getopt.o Python/pystrcmp.o Python/pystrtod.o Python/pystrhex.o Python/dtoa.o Python/formatter_unicode.o Python/fileutils.o Python/suggestions.o Python/perf_trampoline.o Python/perf_jit_trampoline.o Python/remote_debugging.o Python/dynload_shlib.o     Modules/config.o Modules/main.o Modules/gcmodule.o Modules/atexitmodule.o  Modules/faulthandler.o  Modules/posixmodule.o  Modules/signalmodule.o  Modules/_tracemalloc.o  Modules/_suggestions.o  Modules/_datetimemodule.o  Modules/_codecsmodule.o  Modules/_collectionsmodule.o  Modules/errnomodule.o  Modules/_io/_iomodule.o Modules/_io/iobase.o Modules/_io/fileio.o Modules/_io/bytesio.o Modules/_io/bufferedio.o Modules/_io/textio.o Modules/_io/stringio.o  Modules/itertoolsmodule.o  Modules/_sre/sre.o  Modules/_sysconfig.o  Modules/_threadmodule.o  Modules/timemodule.o  Modules/_typesmodule.o  Modules/_typingmodule.o  Modules/_weakref.o  Modules/_abc.o  Modules/_functoolsmodule.o  Modules/_localemodule.o  Mod
 ules/_opcode.o  Modules/_operator.o  Modules/_stat.o  Modules/symtablemodule.o  Modules/pwdmodule.o -ldl        -lm                      -lm 
./Programs/_freeze_module getpath ./Modules/getpath.py Python/frozen_modules/getpath.h
./Programs/_freeze_module importlib._bootstrap ./Lib/importlib/_bootstrap.py Python/frozen_modules/importlib._bootstrap.h
./Programs/_freeze_module importlib._bootstrap_external ./Lib/importlib/_bootstrap_external.py Python/frozen_modules/importlib._bootstrap_external.h
./Programs/_freeze_module zipimport ./Lib/zipimport.py Python/frozen_modules/zipimport.h
Fatal Python error: _Py_CheckRecursiveCall: Unrecoverable stack overflow (used -73723 kB) while calling a Python object
Python runtime state: preinitialized

Current thread 0x40290040 [_freeze_module] (most recent call first):
  <no Python frame>
Fatal Python error: _Py_CheckRecursiveCall: Unrecoverable stack overflow (used -73723 kB) while calling a Python object
Python runtime state: preinitialized

Current thread 0x40290040 [_freeze_module] (most recent call first):
  <no Python frame>
Fatal Python error: _Py_CheckRecursiveCall: Unrecoverable stack overflow (used -73723 kB) while calling a Python object
Python runtime state: preinitialized

Current thread 0x40290040 [_freeze_module] (most recent call first):
  <no Python frame>
Fatal Python error: _Py_CheckRecursiveCall: Unrecoverable stack overflow (used -73723 kB) while calling a Python object
Python runtime state: preinitialized

Current thread 0x40290040 [_freeze_module] (most recent call first):
  <no Python frame>
make: *** [Makefile:1925: Python/frozen_modules/getpath.h] Aborted (core dumped)
make: *** Waiting for unfinished jobs....
make: *** [Makefile:1930: Python/frozen_modules/importlib._bootstrap.h] Aborted (core dumped)
make: *** [Makefile:1933: Python/frozen_modules/importlib._bootstrap_external.h] Aborted (core dumped)
make: *** [Makefile:1936: Python/frozen_modules/zipimport.h] Aborted (core dumped)

Linked PRs

  • GH-139914: Handle stack growth direction on HPPA #140028
  • [3.14] GH-139914: Handle stack growth direction on HPPA (GH-140028) #141404
  • gh-139914: Fix another stack assert on HP-PA #142158
Reacted by msmojtabafar

Activity

  1. picnixz
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
    3.14bugs and security fixesbugs and security fixes
    3.15bugs and security fixesbugs and security fixes
    buildThe build process and cross-buildThe build process and cross-build
    on Oct 10, 2025
  2. picnixz commented on Oct 10, 2025

    @picnixz
    picnixz
    on Oct 10, 2025
    Member
    More actions

    cc @markshannon (I don't know if it's a known issue)

  3. picnixz
    added
    OS-unsupported
    on Oct 10, 2025
  4. github-project-automation
    added this to Unsupported platformson Oct 10, 2025
  5. stefanor commented on Oct 12, 2025

    @stefanor
    stefanor
    on Oct 12, 2025
    Contributor
    More actions

    This was also reported in Debian and we have a patch that seems to work: https://bugs.debian.org/1105111. I'll file a PR with it.

    Reacted by Sam James
  6. stefanor
    added 2 commits that reference this issue on Oct 13, 2025

    pythonGH-139914: On HPPA, the stack grows up

    b7962b3

    pythonGH-139914: On HPPA, the stack grows up

    5f1ed94
  7. stefanor
    added a commit that references this issue on Oct 20, 2025

    pythonGH-139914: On HPPA, the stack grows up

    a373f4e
  8. stefanor
    added 2 commits that reference this issue on Nov 11, 2025

    [3.14] pythonGH-139914: Handle stack growth direction on HPPA (python…

    7635f19

    [3.14] pythonGH-139914: Handle stack growth direction on HPPA (python…

    bdcc6e3
  9. encukou
    added a commit that references this issue on Nov 17, 2025

    GH-139914: Handle stack growth direction on HPPA (GH-140028)

    f6dd9c1
  10. gpshead
    added a commit that references this issue on Nov 23, 2025

    [3.14] GH-139914: Handle stack growth direction on HPPA (GH-140028) (#…

    394db66
  11. hugovk
    closed this as completedon Nov 24, 2025
  12. github-project-automation
    moved this to Done in Unsupported platformson Nov 24, 2025
  13. hroncok
    added 3 commits that reference this issue on Nov 25, 2025

    00666: pythonGH-139653: Only raise an exception (or fatal error) when…

    2700ee4

    00666: pythonGH-139653: Only raise an exception (or fatal error) when…

    8486bff

    00666: pythonGH-139653: Only raise an exception (or fatal error) when…

    98fdbc9
  14. stefanor
    added 4 commits that reference this issue on Dec 1, 2025

    Fix another stack assert on HP-PA (pythonGH-140028)

    02706e7

    Fix another stack assert on HP-PA (pythonGH-140028)

    ee3dac3

    Fix another stack assert on HP-PA (pythonGH-140028)

    e9b3f74

    Fix another stack assert on HP-PA (pythonGH-140028)

    dc3eb04
  15. StanFromIreland
    added a commit that references this issue on Dec 6, 2025

    pythonGH-139914: Handle stack growth direction on HPPA (pythonGH-140028)

    a32f8b7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.14bugs and security fixesbugs and security fixes3.15bugs and security fixesbugs and security fixesOS-unsupportedbuildThe build process and cross-buildThe build process and cross-buildinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    • Unsupported platforms
      Status
      Done
      Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402520 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.