| Ticket UUID: | 729f9c80924fb269b08fd9409bbf3a2d73f158a8 | |||
| Title: | send to a dead application returns "target application died" after 2 s instead of "no application named" (send-8.16) | |||
| Type: | Bug | Version: | 8.6.18, 9.0.5, 9.1b1 | |
| Submitter: | serhiy.storchaka | Created on: | 2026-09-26 08:56:08 | |
| Subsystem: | 58. [send] | Assigned To: | jan.nijtmans | |
| Priority: | 5 Medium | Severity: | Minor | |
| Status: | Closed | Last Modified: | 2026-09-27 05:23:44 | |
| Resolution: | Fixed | Closed By: | jan.nijtmans | |
| Closed on: | 2026-09-26 23:08:10 | |||
| Description: |
Test send-8.16 fails:
==== send-8.16 Tk_SendCmd procedure, bogusCommWindow FAILED
---- Result was:
1 {target application died}
---- Result should have been (exact matching):
1 {no application named "bogus"}
It failed intermittently before 8.6.16 (1-8 of 10 runs) and fails always since 8.6.16, including the current core-8-6-branch, core-9-0-branch and main. send appends the command to the property of the target's comm window in AppendPropCarefully(). If the target window does not exist, the BadWindow error is handled by AppendErrorProc(), which sets the result "no application named ..." and marks the command as complete. There are two bugs:
The manual (CrtErrHdlr.3) still describes the old behavior of Tk_DeleteErrorHandler(), and other code (e.g. extensions, since this is a public API) can depend on it. | |||
| User Comments: |
serhiy.storchaka added on 2026-09-27 05:23:44:
Jan backported it to [dd98a8b50d|core-9-0-branch] (fixed a typo in [6410716225]). Backported to [4468e763f7|core-8-6-branch]. jan.nijtmans added on 2026-09-26 23:08:10: So, I cannot find anything wrong with this fix (on the contrary!) Merged to [2957ed0e|trunk] now. Backporting to 9.0 and 8.6 is OK to me (whoever does it) jan.nijtmans added on 2026-09-26 22:51:58: > so the fix for this ticket is not merged yet. Indeed. Fixed the commit text now, pointing to the correct branches, not this one. serhiy.storchaka added on 2026-09-26 19:05:36: Right, tkUnixFont.c has no error handler with a callback. Note that [db7cd2265c], which mentions send-late-x-errors, merged focus-test-xfocus, so the fix for this ticket is not merged yet. jan.nijtmans added on 2026-09-26 18:41:41: > How about tkUnixFont.c? Should the same change be done there too? I guess the answer is NO, I don't see an errorFlag there. jan.nijtmans added on 2026-09-26 18:38:00: How about tkUnixFont.c? Should the same change be done there too? serhiy.storchaka added on 2026-09-26 12:20:30: Proposed fix in branch send-late-x-errors:
| |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki