Skip to content

test_call's test_margin_is_sufficient (stack protection size check) fails on GCC with -O0 #140222

@encukou

Description

@encukou

Bug report

On my x86_64 machine after:

./configure -C --prefix '$(PWD)/target'
make 'CFLAGS_NODIST=-O0'

I get:

0:00:00 load avg: 6.18 [1/1] test_call
test test_call failed -- Traceback (most recent call last):
  File "/home/encukou/dev/cpython/Lib/test/test_call.py", line 1054, in test_margin_is_sufficient
    self.assertLess(safe_margin, _testinternalcapi.get_stack_margin())
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 21960.0 not less than 16384

Fedora builds have been getting similar issues on other architectures as well.

Related to #130396

cc @markshannon, @vstinner

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions