Tk Source Code

View Ticket
Login
Ticket UUID: 3381288
Title: winWm-9.2 bg error during test
Type: Bug Version: obsolete: 8.6b1.1
Submitter: dgp Created on: 2011-07-28 19:10:32
Subsystem: 68. Win Window Operations Assigned To: fvogel
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2016-08-17 19:40:03
Resolution: Fixed Closed By: fvogel
    Closed on: 2016-08-17 19:40:03
Description:
When testing an RC for Tk 8.6b2 on a Centos
Linux system on x86_64, I get an "Application Error"
popup window with the message:

Error: bad window path name ".t.f.x"

bad window path name ".t.f.x"
bad window path name ".t.f.x"
    while executing
"winfo rooty .t.f.x"
    ("after" script)

Examining the test suite, this is
apparently coming from test winWm-9.2.
User Comments: fvogel added on 2016-08-17 19:40:03:
Linux Debian 8 with core-8-6-branch shows no problem: the test winWm-9.2 passes.

It also passes on CentOS (CentOS 5) with trunk.

--> No problem remaining on any platform. Closing.

fvogel added on 2016-08-17 15:15:01:

Test winWm-9.2 was added to check non regression regarding fixing [3205464] by fix [d6b1369e1f]. As mentioned by ferrieux, this test should be portable.

Bug report [3205464] and fix [d6b1369e1f] deal with Windows only. For this platform there is no problem anymore since this fix.

The segfault on MacOSX is very very likely to have been fixed by [b5d8c2e6ad], which precisely added among other lines Tk_MakeWindowExist(winPtr->parentPtr); in macosx/tkMacOSXWm.c, which is the fix that was implemented on Windows. --> Confirmation welcome if someone has access to that platform.

Finally, on Linux we could still have this problem because the above call to Tk_MakeWindowExist() is not done in WmForgetCmd() in unix/tkUnixWm.c.

--> I have no Linux box at hand right now, can anyone reproduce?


dgp added on 2011-07-30 03:13:58:
On Snow Leopard, the same test SEGFAULTS.

ferrieux added on 2011-07-29 02:53:13:
Since that test is in a win* file, and is the only one in the file to lack a "-constraints win", a typo is likely.

But even, what makes it nonportable, to deserve being there ?

dgp added on 2011-07-29 02:22:08:
When this happens, the test also fails:

---- Result was:
timeout
---- Result should have been (exact matching):
ok
==== winWm-9.2 FAILED

Testing winWm.test alone doesn't reproduce.

A complete `make test` along with a machine
busy doing other work seems to be needed to
trigger the failure.