CONCURDEP: Event-Guided Analysis of Dependency Invalidation in CPython Concurrency
Abstract
Removing CPython's Global Interpreter Lock (GIL) exposes native code to concurrency absent from ordinary C types. Mutation or re-entry can revoke a borrowed object, storage pointer, traversal state, or lease between acquisition and use while its owner remains alive, causing native memory errors and runtime-state corruption. Race analyses track conflicting accesses. Python/C lifecycle analyses track individual object states. These reporting units leave implicit owner-subject-storage relations disconnected from later uses under parallel and re-entrant events. We present CONCURDEP, a source-level static analysis of dependency invalidation. Its key insight is to represent the runtime property a native use requires and ask which target-matched event can revoke it within the dependency's live region. CONCURDEP recovers runtime-semantic dependencies, connects them to events through an event-aware native concurrency dependency graph, and applies property-specific state and protection transfers through a shared engine and six mechanism plugins. CONCURDEP correctly classifies all 180 matched semantic-conformance cases and analyzes each of three production CPython releases with five-run medians of 22.13-27.66 seconds and 670-784 MiB peak resident memory. Source auditing confirms 1,094 of 4,273 unique production fingerprints (25.60% confirmation yield). Removing derived relation recovery loses 25-44 represented roots per release; removing cross-entry events loses 73-94. The study identifies 144 distinct bugs across free-threaded and conventional-GIL builds, including 95 previously unreported in public sources. These results show that explicit dependency, event, and property semantics expose consequential runtime failures across API boundaries and execution modes at release scale.
Create a lesson
Metadata
- Categories
- cs.CR, cs.SE
Related papers
Intelligent Event-Safe Cyber-Physical Attack Detection and Localization in Critical Water Infrastructure: A Cross-Dataset Study of SWaT and WADI
Shared title terminologycs.CRVictor Kebande
Fed-LgDb: Loss-guided and Distance-based Client Selection for Robust IoV Federated Learning
Shared title terminologycs.CRKasun Eranda Wijethilake, Adnan Mahmood, Yingxun Wang et al.
Something to Talk About: Social Media as a Lens on Healthcare Ransomware Events
Shared title terminologycs.CRSeoyoung Kweon, Paul Chung, Isabel Straw et al.
Unmasking Shortcut Learning in IoT Intrusion Detection: A Forensic, Multi-Paradigm Evaluation of Feature Dependence and Data Leakage
Shared title terminologycs.CRUday Shankar Roy, Mahbuba Jahan Minu
GUIAuditor: Enabling Post-hoc Child Safety Forensics via Action-Guided GUI Provenance on Mobile Devices
Shared title terminologycs.CRJunlin Liu, Yifeng Cai, Shuai Wang et al.
GuidedRay: Diversity-Guided Direction Discovery for Targeted Hard-Label Black-Box Attacks
Shared title terminologycs.CRFei Yuan, Yantian Shen, Qingyuan Yu et al.