| Ticket UUID: | 517e4ef666b40da2c8e0c75d1eccbecb737b94e0 | |||
| Title: | DlineXOfIndex reads an embedded image or window as a CharInfo | |||
| Type: | Bug | Version: | trunk | |
| Submitter: | nab | Created on: | 2026-11-02 13:01:18 | |
| Subsystem: | 18. [text] | Assigned To: | kevin_walzer | |
| Priority: | 5 Medium | Severity: | Minor | |
| Status: | Closed | Last Modified: | 2026-11-03 14:26:02 | |
| Resolution: | Fixed | Closed By: | jan.nijtmans | |
| Closed on: | 2026-11-03 13:56:52 | |||
| Description: |
In
Up/Down reach it too. The values read are never used: the block can only return when The block came with 3403347da9 (branch Also, two warnings remain in tkTextDisp.c: | |||
| User Comments: |
serhiy.storchaka added on 2026-11-03 14:26:02:
textDisp-42.1 on nab-textdisp-42.1 ([92e84a1d58]), with Tcl and Tk built with --enable-symbols=all: no growth any more, but 5 times in 100 runs the result is -40. nab added on 2026-11-03 14:09:38: As Jan found, 42.1 has failed with the whole of textDisp.test since it came in; run alone, it passes, and I had only checked it that way. It is not a leak: textDisp.test turns 92e84a1d58 on branch jan.nijtmans added on 2026-11-03 13:56:52: Actually, I did a bisect. This testcase is failing since commit [7d90e42b80f79199], which is the commit introducing this testcase. So, it appears to be failing since the beginning, and has no relation to this ticket. Closing jan.nijtmans added on 2026-11-03 13:08:23: In an enable-symbols=all build on Github, I see:
textDisp.test
==== textDisp-42.1 the char info of a chunk after a tag boundary is freed FAILED
==== Contents of test case:
growth {
.t1 tag add x 1.20 1.25
update
.t1 tag remove x 1.20 1.25
update
# The widget appends to this variable at each layout.
unset -nocomplain ::tkBidiLog
}
---- Result was:
8806
---- Result should have been (exact matching):
0
==== textDisp-42.1 FAILED
I suspect this ticket is the cause of this. Can someone have another look? kevin_walzer added on 2026-11-03 01:49:30: Merged to main, thank you Nicolas and Serhiy for the report and fix. serhiy.storchaka added on 2026-11-02 18:46:53: Fixed on branch text-dlinexofindex-image, [98e29d0083]: DlineXOfIndex reads the CharInfo only of a character chunk, and the block which could never return is removed. nab added on 2026-11-02 18:25:13: No: 4cb0789f36 only changes Of the two warnings, the one on kevin_walzer added on 2026-11-02 17:33:28: Does https://core.tcl-lang.org/tk/info/4cb0789f36 address this? | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki