Tcl Source Code

View Ticket
Login
Ticket UUID: 1235544
Title: MinGW Tcl crashes
Type: Bug Version: obsolete: 8.4.11
Submitter: magro Created on: 2005-07-10 10:50:06
Subsystem: 69. Other Assigned To: hobbs
Priority: 8 Severity:
Status: Closed Last Modified: 2005-10-21 09:20:18
Resolution: Fixed Closed By: sf-robot
    Closed on: 2005-10-21 02:20:18
Description:
Tcl8.4.11 compiled on a W2K  (SP4) system with
MSYS/MinGW (msys_mingw 0.6) crashes with error
'Programerror, tclsh.exe has caused a program error and
closes. Restart the program. Error protocoll is created.'
User Comments: sf-robot added on 2005-10-21 09:20:18:
Logged In: YES 
user_id=1312539

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

mdejong added on 2005-08-24 01:35:38:
Logged In: YES 
user_id=90858

Added tkdll.patch to the HEAD and 84 branch for TK on
2005-08-23.

mdejong added on 2005-08-15 06:46:57:

File Added - 145661: tkdll.patch

mdejong added on 2005-08-15 06:46:56:
Logged In: YES 
user_id=90858

I am not sure if this is related, but I noticed that the code
in tkWin32Dll.c was not updated to use Kenny's SEH
approach. That seemed to cause some crashing on
my machine when running `make test`. The attached
patch seems to fix it. Kenny, could you take a look and
see if it looks ok to you?

kennykb added on 2005-07-18 22:17:32:
Logged In: YES 
user_id=99768

I'm not sure where Mo reaches the conclusion that
this is related to the asm code.  The (incomplete)
config.log does indeed include some checks for
SEH and EXCEPTION_DISPOSITION, but those
tests appear to have given normal results.

Rather, the location of the crash appears 
to implicate TkWinGetDrawableDC.  (It does NOT
help that the DrWatson disassembly has messed
up - for instance, the target of the 'jnz' at 0x41bd32
is not 42485b, but rather 41bd5b.

It looks as if there's a null pointer being passed
for the Drawable in TkWinGetDrawableDC.
The stack trace back from there is:

    Tk_3DVerticalBevel
    Tk_Draw3DRectangle
    TkCreateFrame

and the event loop.

This should really be refiled as a Tk bug, but assigning
to Jeff for now.

magro added on 2005-07-17 20:28:20:
Logged In: YES 
user_id=83653

config, drwatson and dump:
ftp://magro-soft.com/TclError.zip


***
Attaching file does not work, ends with:
Error
Invalid filename

mdejong added on 2005-07-17 06:29:02:
Logged In: YES 
user_id=90858

This seems to be related to 1225957 and 1213678. I have
downloaded
and compiled Tcl 8.4.11 and tested them with mingw_msys 6 and
I did not see any crashes on WinXP. The submitter will need
to provide
a test case that demonstrates the crash in question.
Reassigning since Kevin knows how this new ASM code works.

Attachments: