Skip to content

Segmentation fault on Python 3.14 rc1 on macOS #137617

Description

@MatthieuDartiailh

Bug report

Bug description:

Running the pyclibrary testsuite on Python 3.14-rc1 segfaults on macOS (while it succeeds on Linux and Windows).

The CI job that displayed the issue is https://github.com/MatthieuDartiailh/pyclibrary/actions/runs/16865688466/job/47772236565?pr=83

CPython versions tested on:

3.14

Operating systems tested on:

macOS

Activity

  1. added
    type-crashA hard crash of the interpreter, possibly with a core dump
    3.14bugs and security fixes
    and removed
    type-bugAn unexpected behavior, bug, or error
    on Aug 10, 2025
  2. hugovk commented on Aug 10, 2025

    @hugovk
    Member

    Are you able to create a minimal code example to reproduce this?

    Tips here:

    https://stackoverflow.com/help/minimal-reproducible-example

  3. inventshah commented on Aug 10, 2025

    @inventshah
    Contributor

    Looks related to #137573 since it has the same Abort trap: 6 error. I bisected to a5274cd in the linked issue.

  4. inventshah commented on Aug 10, 2025

    @inventshah
    Contributor

    Confirmed it has the same bad commit.

    Built with -enable-experimental-jit=yes-off --with-lto=full --enable-optimizations from a5274cd and:

    git clone https://github.com/MatthieuDartiailh/pyclibrary.git
    cd pyclibrary
    
    python3.14 -m venv venv
    source venv/bin/activate
    python -m pip install . pytest-cov pytest 
    python -m pytest tests --cov pyclibrary --cov-report xml -v tests/backends/test_ctypes.py::TestCTypesCLibrary::test_call

    Causes Abort trap: 6

  5. AA-Turner commented on Aug 11, 2025

    @AA-Turner
    Member

    @inventshah are you able to minimise the crash-causing-code? Ideally without using pytest, and even better if only using stdlib modules.

    A

  6. MatthieuDartiailh commented on Aug 11, 2025

    @MatthieuDartiailh
    ContributorAuthor

    @inventshah provided a minimal reproducer in #137573 (comment)

  7. AA-Turner commented on Aug 11, 2025

    @AA-Turner
    Member

    Missed that, sorry. I'll close this as a duplicate of #137573.

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 fixesOS-mactype-crashA hard crash of the interpreter, possibly with a core dump

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions