Skip to content
Tcl Source Code View Ticket
Login

View Ticket

crashes in tclWinFCmd.c

Closed / Fixed1225957fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 21 years ago
Descriptionplain2005-06-23 01:03:14
Pat Thoyts reports, and I confirm, that configuring 
a mingw build [gcc.exe (GCC) 3.4.2 (mingw-special)]
with --enable-symbols=all --enable-threads
gives rise to panics in the DoCopyFile and DoRenameFile
procedures of tclWinFCmd.c.

The problem is that the blocks of asm code do not
conserve the stack pointer and contain transfers of
control from one to another; both of these are
illegal according to the gcc manual.

There is similar code in tclWinChan.c that appears
either not to be executed or else avoids the
problem by the same dumb luck that protected
tclWinFCmd.c on earlier mingw releases.

Identical code is present in both files in 8.5.
kennykbplain2005-06-24 02:49:24
Logged In: YES 
user_id=99768

Fixes to the assembly code applied to both the HEAD and
core-8-4-branch.
Log in (anonymous is fine) to add a comment.