python / python/cpython

Add ./configure --enable-stackref-debug option.

Open
#148,721 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

build type-feature
Dominant language
Python
Stars
77.2k
Forks
35.9k
PR merge metrics
PR metrics pending

Description

While Windows already has a way to enable this, there is currently no clean or supported way to enable Py_STACKREF_DEBUG on Linux and macOS without modifying the codebase directly.

It would be helpful to add a dedicated configuration option for enabling Py_STACKREF_DEBUG on those platforms, and also to add CI coverage for that build configuration. That would make this mode easier to test and help catch related issues earlier.

If I missed an existing way to enable this without modifying the codebase, please let me know.

cc @colesbury @markshannon @Fidget-Spinner

Linked PRs
  • gh-149803

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the existing Windows approach referenced in issue 139727, then inspect CPython's ./configure and CI configuration. Done means Linux and macOS can enable Py_STACKREF_DEBUG through the supported option and CI exercises that build.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system, ci-cd
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.