Skip to content

TSan CI is flaky #242

Closed
Closed

Description

@ngoldbaum

I've noticed that the TSan CI is failing regularly. See for example, this CI run on a recent PR:

https://github.com/python-cffi/cffi/actions/runs/24686671067/job/72197736127?pr=241

Unfortunately there's an issue with the docker images we're using in our tests that is preventing the tracebacks in the race report from being useful:

nascheme/cpython_sanity#12

I'm going to try to reproduce this manually without the docker image to see if I can get more detail.

EDIT: full race report with tracebacks here: https://gist.github.com/ngoldbaum/566cc486a9e16ebb36a05c435f7944cd

Activity

  1. ngoldbaum commented on Apr 21, 2026

    @ngoldbaum
    ContributorAuthor

    I'm unable to reproduce this race on my Mac with a 3.14 interpreter, so I'm still not able to track down exactly what the issue is.

    That said, I tried updating the image used in CI to run on a 3.15 interpreter and that also seems to fix it. See #243.

  2. ngoldbaum commented on Apr 21, 2026

    @ngoldbaum
    ContributorAuthor

    I was able to reproduce this on a Linux x86_64 machine using the docker container just like the CI job. After installing llvm on the container, I get useful tracebacks in the TSan report: https://gist.github.com/ngoldbaum/566cc486a9e16ebb36a05c435f7944cd.

    I think this is hitting python/cpython#113956. I'll comment on the upstream issue and add a new TSan suppression for this.

  3. ngoldbaum commented on Apr 21, 2026

    @ngoldbaum
    ContributorAuthor

    I closed #243 in favor of #244 which just adds a suppression.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions