Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

sysconfig --generate-posix-vars can hang on cyclic variable definitions #136097

Open
Assignees
serhiy-storchaka
Labels
buildThe build process and cross-buildstdlibStandard Library Python modules in the Lib/ directorytopic-sysconfigtype-bugAn unexpected behavior, bug, or error
@brianschubert

Description

@brianschubert

Bug report

Bug description:

This loop can run forever if there's a cycle in the Makefile variable definitions:

whilelen(variables)>0:

To reproduce:

make cleanecho'foo=$(foo)'> ./Modules/Setup.local./configuremake# hangs forever

Or more minimally:

make cleanecho'foo=$(foo)'> ./Modules/Setup.localmake Makefile./python -m sysconfig --generate-posix-vars# hangs forever

Longer cycles are also possible, e.g.v1=$(v2),v2=$(v3), ....,v999=$(v1).

Note that this is less of an issue if the recursive variable definition gets expanded in the Makefile beforepython -m sysconfig --generate-posix-vars gets invoked. In that case, Make will detect the cycle and exit before the infinite loop occurs.

@serhiy-storchaka you may be interested, this is very similar to#136073

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Labels

buildThe build process and cross-buildstdlibStandard Library Python modules in the Lib/ directorytopic-sysconfigtype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp