Skip to content

Make CHECK_STATUS_PTHREAD signal-safe #74951

Closed as not planned
Closed as not planned

Description

@pitrou
BPO 30766
Nosy @pitrou, @methane
PRs
  • bpo-30766: Make CHECK_STATUS_PTHREAD signal-safe. #2404
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2017-06-26.12:40:49.115>
    labels = ['interpreter-core', 'type-bug', '3.7']
    title = 'Make CHECK_STATUS_PTHREAD signal-safe'
    updated_at = <Date 2019-03-06.10:15:32.016>
    user = 'https://github.com/pitrou'

    bugs.python.org fields:

    activity = <Date 2019-03-06.10:15:32.016>
    actor = 'methane'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Interpreter Core']
    creation = <Date 2017-06-26.12:40:49.115>
    creator = 'pitrou'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 30766
    keywords = []
    message_count = 2.0
    messages = ['296887', '337288']
    nosy_count = 2.0
    nosy_names = ['pitrou', 'methane']
    pr_nums = ['2404']
    priority = 'low'
    resolution = None
    stage = 'needs patch'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue30766'
    versions = ['Python 3.5', 'Python 3.6', 'Python 3.7']

    Activity

    1. pitrou commented on Jun 26, 2017

      @pitrou
      MemberAuthor

      Lock functions may be called from the C signal handler, so strive to make them more signal-safe (they are not unfortunately, but minimizing the number of non-signal-safe functions called there is a good thing).

      Discovered in bpo-30703.

    2. added
      interpreter-core(Objects, Python, Grammar, and Parser dirs)
      type-bugAn unexpected behavior, bug, or error
      on Jun 26, 2017
    3. methane commented on Mar 6, 2019

      @methane
      Member

      May I close this issue?

    4. transferred this issue fromon Apr 10, 2022
    5. hugovk commented on Oct 26, 2026

      @hugovk
      Member

      CHECK_STATUS_PTHREAD is defined but unused since locks moved to PyMutex inhttps://github.com//pull/134747.

    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.7 (EOL)end of lifeinterpreter-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