|
Meta tags:
description=Fixes #154923
On the free-threaded build, concurrent _tkinter.create() calls raced Tcl s first-time library initialization (a TSan data race on a lazily created Tcl mutex) and could also double-free the module-global tcl_lock.
Serialize Tcl_CreateInterp() and the one-time tcl_lock free behind a dedicated mutex. tcl_lock itself cannot be used for this because it is discarded once Tcl is threaded. Add a subprocess regression test so the first CreateInterp has not already run.
This does not touch the event_tstate path in #153020.
Issue: gh-154923;
Headings (most frequently used words):
uh, oh, navigation, gh, 154923, serialize, tcl, interpreter, creation, in, _tkinter, 156342, footer, diff, view, menu, repository, there, are, no, files, selected, for, viewing, filter, by, extension,
Text of the page (most frequently used words):
file (25), the (17), and (17), github (16), this (15), _tkinter (14), line (12), applied (11), 154923 (11), for (11), all (10), support (10), test (10), that (9), 2026 (9), reload (9), show (9), hidden (9), characters (9), unicode (9), import (9), from (8), expand (8), diff (8), you (7), suggestion (7), cannot (7), suggestions (7), while (7), code (7), changes (7), loading (7), tcl (7), open (7), sign (7), const (6), char (6), number (6), bidirectional (6), security (5), please (5), comments (5), create (5), there (5), was (5), tcl_create_mutex (5), serialize (5), threads (5), learn (5), about (5), view (5), build (5), issue (5), self (5), interpreter (5), commits (5), your (5), can (4), not (4), pull (4), change (4), error (4), page (4), threaded (4), free (4), below (4), what (4), review (4), more (4), news (4), next (4), rst (4), files (4), bhuvi27 (4), creation (4), copilot (4), community (3), navigation (3), request (3), add (3), batch (3), commit (3), retry (3), down (3), null (3), tcl_lock (3), tkapp_new (3), screenname (3), classname (3), original (3), contains (3), text (3), may (3), interpreted (3), compiled (3), differently (3), than (3), appears (3), editor (3), reveals (3), desktop (3), delete (3), edit (3), modules (3), additions (3), deletions (3), fix (3), misc (3), library (3), tkcr8q (3), errors (3), threading_helper (3), with (3), nthreads (3), range (3), threading (3), false (3), def (3), runinsubprocess (3), lib (3), test_tcl (3), hide (3), whitespace (3), nbsp (3), filter (3), serhiy (3), storchaka (3), nov (3), 156342 (3), merged (3), python (3), account (3), quality (3), another (3), tab (3), window (3), refresh (3), session (3), developers (3), changelog (3), customer (3), enterprise (3), grade (3), features (3), time (2), contact (2), status (2), privacy (2), terms (2), footer (2), merge (2), single (2), one (2), viewing (2), toggle (2), pymutex_unlock (2), wantobjects (2), tcl_createinterp (2), static (2), thread (2), 681 (2), interpreters (2), different (2), unittest (2), worker (2), none (2), start (2), _flatten (2), typeerror (2), assertraises (2), import_helper (2), skip (2), selected (2), apply (2), split (2), unified (2), failed (2), load (2), jump (2), extension (2), main (2), into (2), tkinter (2), race (2), aug (2), select (2), tree (2), insights (2), projects (2), actions (2), repository (2), cpython (2), signed (2), universe (2), training (2), integrations (2), stories (2), center (2), documentation (2), business (2), fixes (2), products (2), secret (2), perform, action, share, personal, information, manage, cookies, docs, inc, right, now, check, back, later, queued, multi, pending, reviews, has, been, marked, resolved, outdated, must, existing, order, valid, applying, deleted, lines, supported, only, per, subset, closed, invalid, because, were, made, annotations, notes, oops, something, went, wrong, boolean, tcl_getobjtype, oldbooleantype, pythread_free_lock, 706, 712, py_decref, but, pyexc_runtimeerror, pyerr_setstring, tcl_threads, ifndef, 695, 700, tcl_major_version, interp, pymutex_lock, pymutex, safe, either, them, first, initialization, without, gil, two, could, both, return, term, crash, when, creating, concurrently, testcase, tcltest, class, assertequal, pass, start_threads, target, append, exception, except, wait, try, barrier, run, fresh, process, where, created, yet, once, test_create_concurrent, requires_working_threading, requires, py_gil_disabled, skipunless, set, string, testflattenlen, import_module, module, wasn, built, isolation, os_helper, sys, subprocess, are, conversations, clear, filters, viewed, types, clarify, comment, use, 7331f2a, branch, 666c61b, make, local, bd0c662, 5fa855a, hold, shift, click, changed, checks, conversation, already, clicking, agree, our, occasionally, send, related, emails, statement, service, its, maintainers, have, question, project, new, items, requests, issues, message, dismiss, alert, switched, accounts, out, appearance, settings, search, pricing, event, talks, workshops, partners, company, forum, events, webinars, blog, resource, connect, resources, premium, advanced, ons, trust, why, evaluate, see, industries, government, manufacturing, financial, services, healthcare, industry, nonprofits, startups, team, enterprises, stage, businesses, source, latest, improvements, across, place, developer, articles, sponsors, trending, repos, explore, customize, certifications, scanning, leak, prevention, protection, vulnerability, detection, remediation, secure, cloud, development, environments, codespaces, analysis, enforcement, automation, ship, coding, agent, tasks, automated, work, hosting, collaboration, platform, menu, content,
|