Tk Source Code

View Ticket
Login
Ticket UUID: 3567779
Title: winWm-9.2 segfault
Type: Bug Version: obsolete: 8.6b3
Submitter: dgp Created on: 2012-09-14 17:19:35
Subsystem: 68. Win Window Operations Assigned To: dgp
Priority: 8 Severity:
Status: Closed Last Modified: 2012-10-25 02:07:05
Resolution: Fixed Closed By: dgp
    Closed on: 2012-10-24 19:07:05
Description:
In an --enable-aqua build of Tk8.6b3, running the test suite
on Snow Leopard segfaults on test winWm-9.2 .

If I use -match to run only that test, there is no
segfault.

It may be that this test isn't appropriate to run
on Mac OSX, I don't know, but even so a
segfault triggered by script eval is a bug needing
a fix.
User Comments: wordtech added on 2012-09-15 10:35:08:
Does this thread at c.l.t have any bearing on the issue?

https://groups.google.com/forum/?fromgroups=#!topic/comp.lang.tcl/NPjWVIHEJYk

dgp added on 2012-09-15 07:34:39:
fix for 3567812 took care of this too.

still needs backports.

dgp added on 2012-09-15 04:26:03:
See branch bug-3567779 for attempt at a fix.

dgp added on 2012-09-15 02:05:35:
WIth --enable-symbols=mem, it's clear that the
winPtr passed into TkWmDeadWindow is pointing
to ckfree'd memory.

dgp added on 2012-09-15 01:45:33:
Segault is in the routine TkWmDeadWindow()

The value of wmPtr is not a valid pointer, nor is it NULL,
so when wmPtr->hints.flags is attempted, we crash.

Might be logic; might be memory corruption.

dgp added on 2012-09-15 01:34:16:
Segfault is in the command

wm forget .t.f