Skip to content

3.15 shared libsan - #1

Draft
lucascolley wants to merge 35 commits into
3.15from
3.15-shared-libsan
Draft

lucascolley wants to merge 35 commits into
3.15from
3.15-shared-libsan

Conversation

@lucascolley

Copy link
Copy Markdown
Owner

miss-islington and others added 29 commits September 17, 2026 18:11
… code runs (pythonGH-157599) (python#157602)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
…/importlib.rst` (pythonGH-157610) (python#157702)

pythongh-151950: Fix Sphinx reference warnings in `Doc/library/importlib.rst` (pythonGH-157610)
(cherry picked from commit a9e7895)

Co-authored-by: Jade <68784313+jang-hs@users.noreply.github.com>
…ted values (pythonGH-155926) (python#157684)

Co-authored-by: Eundo Lee <33369354+cobed95@users.noreply.github.com>
…eption (pythonGH-157792) (python#157794)

Co-authored-by: 单禹铎 <mmg114514@outlook.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
…d Python (pythonGH-156203) (python#157804)

Co-authored-by: Stan Ulbrych <stan@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
…ug.h (pythonGH-157800) (python#157813)

pythongh-157549: Use sysconf() for the page size in remote_debug.h (pythonGH-157800)

getpagesize() is not an ISO C or POSIX function. Darwin hides the prototype under -std=c11, so the _remote_debugging build fails with -Werror=implicit-function-declaration. That is the failure in the reported x86_64-apple-darwin → arm64-apple-darwin cross build.

Call sysconf(_SC_PAGESIZE) instead, which is already how resource.getpagesize() works. Fall back to 4096 if sysconf() fails.

--without-remote-debug is unchanged. That flag only disables the target-side attach protocol (Py_REMOTE_DEBUG); it does not exclude the _remote_debugging client module.
(cherry picked from commit 9193375)

Co-authored-by: ノウラ | Flare <nouraellm@gmail.com>
…-156756) (python#157828)

* [ 3.15 ] pythongh-155525: Avoid quadratic f-string tokenization

Adapt the original expression-span fix to the release tokenizer and retain interactive buffers while a formatted string is open.

Co-authored-by: gwosti <322952417+gwosti@users.noreply.github.com>

* pythongh-155525: Cover quadratic f-string tokenization regression (pythonGH-156756)

* pythongh-155525: Avoid quadratic f-string tokenization

* fixup! pythongh-155525: Avoid quadratic f-string tokenization

---------
(cherry picked from commit c1df684)

Co-authored-by: gwosti <322952417+gwosti@users.noreply.github.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>

---------

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: gwosti <322952417+gwosti@users.noreply.github.com>
….53.4 (pythonGH-155101) (python#156048)

pythongh-152023: Update Android and Windows builds to SQLite 3.53.4 (pythonGH-155101)
(cherry picked from commit 20e6c2f)

Co-authored-by: Stan Ulbrych <stan@python.org>
Co-authored-by: Malcolm Smith <smith@chaquo.com>
…4. (pythonGH-156446) (python#156448)

pythongh-152023: Update macOS installer builds to SQLite 3.53.4. (pythonGH-156446)
(cherry picked from commit 2a03912)

Co-authored-by: Ned Deily <nad@python.org>
…ro (pythonGH-157867) (python#157886)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
…n a thread prints in the IDLE Shell (pythonGH-157706) (python#157835)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
… names (pythonGH-157790) (python#157826)

Co-authored-by: Timofei Ivankov <128279579+deadlovelll@users.noreply.github.com>
…nGH-157577) (python#157897)

Co-authored-by: Gaurav Yadav <gaurav3.141592@gmail.com>
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Signed-off-by: MeGaurav4 <gaurav3.141592@gmail.com>
…157264) (python#157910)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
…on on WinARM64 due to compiler bug (pythonGH-153669) (python#157842)

pythongh-153668: Temporarily disable unicodectype.c optimization on WinARM64 due to compiler bug (pythonGH-153669)

* Only disable during Release (not PGO)

* Update PCbuild/pyproject.props

---------
(cherry picked from commit 9ea05d4)

Co-authored-by: Steve Dower <steve.dower@python.org>
Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
… hardcoding main task name (pythonGH-157911) (python#157941)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
…n interpreter's JIT is enabled (pythonGH-157258) (python#157324)

pythongh-157247: Block perf trampoline activation when the main interpreter's JIT is enabled (pythonGH-157258)
(cherry picked from commit 4c9f267)

Co-authored-by: Hai Zhu <haiizhu@outlook.com>
…ing errors (pythonGH-157779) (python#158047)

pythongh-157778: Include opening brace line in multiline f-string errors (python#157779)

(cherry picked from commit 1cdd590)
…d is mold (pythonGH-157984) (python#158008)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
…cs (pythonGH-157887) (python#157918)

Co-authored-by: Prafyl <86287866+Prafyl@users.noreply.github.com>
…158052) (python#158060)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
…l value (pythonGH-157293) (python#157943)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: LiuQhahah <liuqiang9596@gmail.com>
… for `mode='func_type'` (pythonGH-156697) (python#156705)

pythongh-156689: Fix out-of-bounds read in `PyAst_CheckMode()` for `mode='func_type'` (pythonGH-156697)
(cherry picked from commit d7f9c64)

Co-authored-by: Stan Ulbrych <stan@python.org>
miss-islington and others added 6 commits September 24, 2026 16:20
…ythonGH-139139) (python#158114)

Docs/howto/remote_debugging: Give non-sudo suggestions first (pythonGH-139139)

* Docs/howto/remote_debugging: Give non-sudo suggestions first

sudo is much too powerful and unnecessary for debugging your own
processes. Start with guidance on how to opt into being debugged without
the use of sudo, and clarify that sudo and equivalent options like
CAP_SYS_PTRACE are giant hammers, but leave the sudo option documented
in case you're having trouble getting something else working.

* Document seccomp=unconfined; make the Mac commands shorter

* pythongh-139139: Clarify remote debugging permission guidance

---------
(cherry picked from commit bee3031)

Co-authored-by: Geoffrey Thomas <geofft@ldpreload.com>
Co-authored-by: Pablo Galindo Salgado <pablogsal@gmail.com>
… a range (pythonGH-156901) (python#156926)

The callers of `_PyTokenizer_syntaxerror_known_range()` pass columns in bytes, but `SyntaxError.offset` and `end_offset` are columns in characters.
(cherry picked from commit 59a6913)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…enters the profiler (pythonGH-157648) (python#158113)

pythongh-157639: Fix use-after-free when an external timer re-enters the profiler (pythonGH-157648)

* pythongh-157639: Fix use-after-free when an external timer re-enters the profiler

* Suppress the cProfile link in the NEWS entry

* Add braces around the external timer guards, per PEP 7

* Simplify the external timer test setup

* Do not call the external timer while deallocating the profiler
(cherry picked from commit a6fa91c)

Co-authored-by: Lazizbek Ergashev <lazerg2@gmail.com>
…hook in the new REPL (pythonGH-153389) (python#158112)

pythongh-152907: Restore cooked output flags around the input hook in the new REPL (pythonGH-153389)

* pythongh-152907: Restore cooked output flags around the input hook in the new REPL

pyrepl clears OPOST for its own cursor rendering but calls PyOS_InputHook
from inside the raw-mode read loop, so output written by an input hook
(GUI toolkit event loops, and any warning/traceback/print they emit) is
emitted with bare '\n' and no '\r'.  Restore the terminal's saved output
flags around the hook call and re-enter raw mode afterwards; only oflag is
toggled so ECHO/ICANON stay off at the prompt.

* Skip the input-hook test on platforms without pty devices

The Emscripten buildbot has the pty module but no pty devices, so
pty.openpty() raises OSError("out of pty devices").  Guard the test
class the same way Lib/test/test_pty.py does.

* Propagate the input hook's return value and drop the sleep from the test



* Trim comments



* Observe the hook's output synchronously instead of via the reader thread

The reader thread no longer feeds any assertion: the hook drains the pty
master itself, so the check is an exact comparison. A drainer is still
needed for restore(), which writes before switching modes.

---------
(cherry picked from commit 46ee358)

Co-authored-by: Harjoth Khara <harjoth.khara@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
[skip ci]

Co-authored-by: Isuru Fernando <isuruf@gmail.com>
…ump to clang 22

`libcompiler-rt` was previously unpinned, so the solver could pick a
runtime whose major version doesn't match the clang used to build the
interpreter and extension modules, causing an ASan runtime/build
mismatch. Pin it to the active `c_compiler_version`.

Also, move the ASan toolchain default from clang 21 to clang 22,
due to python#145199.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants