Skip to content

Data races in typeobject.c for type structure updates #133467

Open
@nascheme

Description

@nascheme

Bug report

Bug description:

There are some additional data races (producing TSAN warnings) for typeobject.c in the free-threaded build.

The following stores are unsafe:

  • _Py_slot_tp_getattr_hook re-assigns tp_getattro
  • slot_tp_descr_get assigns to tp_descr_get
  • type_set_name assigns to tp_name
  • tp_base and tp_bases are assigned in likely unsafe ways

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions