Skip to content

test_capi crash and produce core dumps on FreeBSD 13 #106714

@vstinner

Description

@vstinner

Examples:

[vstinner@freebsd ~/python/main]$ ./python -m test test_capi -m test_no_FatalError_infinite_loop -v
...
Warning -- files was modified by test_capi
Warning --   Before: []
Warning --   After:  ['python.core'] 

and

[vstinner@freebsd ~/python/main]$ ./python -m test -v test_capi -m test_get_set_optimizer 
...
test_get_set_optimizer (test.test_capi.test_misc.TestOptimizerAPI.test_get_set_optimizer) ... Fatal Python error: Segmentation fault

Current thread 0x0000000827265000 (most recent call first):
  File "/usr/home/vstinner/python/main/Lib/unittest/case.py", line 589 in _callTestMethod
  File "/usr/home/vstinner/python/main/Lib/unittest/case.py", line 634 in run
  File "/usr/home/vstinner/python/main/Lib/unittest/case.py", line 690 in __call__
  File "/usr/home/vstinner/python/main/Lib/unittest/suite.py", line 122 in run
  • FreeBSD 13.2-RELEASE-p1
  • clang 14.0.5
  • Python configured with: ./configure --cache-file=../config.cache --with-pydebug CFLAGS="-O0"

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions