GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Advanced Debugger Support C-API is useless without HEAD_LOCK()/HEAD_UNLOCK() · Issue #85234 · python/cpython

Advanced Debugger Support C-API is useless without HEAD_LOCK()/HEAD_UNLOCK() #85234

New issue
Copy link
New issue
Copy link
Open
Open
Advanced Debugger Support C-API is useless without HEAD_LOCK()/HEAD_UNLOCK()#85234
Copy link
Labels
3.11only security fixesonly security fixestopic-C-APItype-featureA feature request or enhancementA feature request or enhancement

Description

AndreiPashkin
mannequin
opened on Jun 21, 2020
Issue body actions
BPO 41062
Nosy @vstinner, @AndreiPashkin

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 2020-06-21.08:53:48.034>
labels = ['expert-C-API', 'type-feature', '3.11']
title = 'Advanced Debugger Support C-API is useless without HEAD_LOCK()/HEAD_UNLOCK()'
updated_at = <Date 2021-12-06.18:25:56.506>
user = 'https://github.com/AndreiPashkin'

bugs.python.org fields:

activity = <Date 2021-12-06.18:25:56.506>
actor = 'iritkatriel'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['C API']
creation = <Date 2020-06-21.08:53:48.034>
creator = 'pashkin'
dependencies = []
files = []
hgrepos = []
issue_num = 41062
keywords = []
message_count = 2.0
messages = ['371988', '371989']
nosy_count = 2.0
nosy_names = ['vstinner', 'pashkin']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue41062'
versions = ['Python 3.11']

Activity

  1. AndreiPashkin commented on Jun 21, 2020

    @AndreiPashkin
    AndreiPashkinmannequin
    on Jun 21, 2020
    MannequinAuthor
    More actions

    To me it seems like Advanced Debugger Support C-API doesn't make sense without HEAD_LOCK() and HEAD_UNLOCK() which are private right now.

    When researching how C-API works I've found this comment in the source code:

    cpython/Python/pystate.c

    Line 1176 in e838a93

    * Because these lists can mutate even when the GIL is held, we

    It says that the lists of interpreter-state and thread-state objects (that Adv. Debugger Support API operates on) could be mutated even when GIL is held so there is need to acquire head mutex when accessing them. But there is no way to acquire head mutex using public C-API.

    Am I right? If yes - it seems like HEAD_(UN)LOCK() should be made public.

  2. AndreiPashkin
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    3.7 (EOL)end of lifeend of life
    3.8 (EOL)end of lifeend of life
    3.9 (EOL)end of lifeend of life
    3.10 (EOL)end of lifeend of life
    topic-C-API
    on Jun 21, 2020
  3. AndreiPashkin commented on Jun 21, 2020

    @AndreiPashkin
    AndreiPashkinmannequin
    on Jun 21, 2020
    MannequinAuthor
    More actions

    Here is what I mean by "Advanced Debugger Support" API:
    https://docs.python.org/dev/c-api/init.html#advanced-debugger-support

  4. iritkatriel
    added
    3.11only security fixesonly security fixes
    type-featureA feature request or enhancementA feature request or enhancement
    and removed
    3.7 (EOL)end of lifeend of life
    3.8 (EOL)end of lifeend of life
    3.9 (EOL)end of lifeend of life
    3.10 (EOL)end of lifeend of life
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Dec 6, 2021
  5. ezio-melotti
    transferred this issue fromon Apr 10, 2022
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.11only security fixesonly security fixestopic-C-APItype-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.