Tcl Source Code

View Ticket
Login
Ticket UUID: b6257b82833b69673486ae253be7550489642e42
Title: Tcl_Panic() with trunk on windows 10
Type: Bug Version: 9.0
Submitter: pointsman Created on: 2023-08-09 23:31:07
Subsystem: 69. Other Assigned To: nobody
Priority: 5 Medium Severity: Severe
Status: Closed Last Modified: 2023-08-10 10:56:41
Resolution: Fixed Closed By: pointsman
    Closed on: 2023-08-10 10:56:41
Description:
There is script code with panics with "alloc: invalid block: xxxx"
on 64-bit windows and runs with the expected result on linux.

Recipe:

Step 0:
Install a build of current Tcl trunk somewhere

Step 0.5:
Get the tcllib fossil repository:

fossil clone https://core.tcl-lang.org/tcllib tcllib.fossil

Step 1:
Create a test directory, cd into and do

fossil open path/to/your/tcllib.fossil tcl9-testarea-rde

Step 2:
Run

tclsh sak.tcl test run -v --shell /path/to/your/tclsh9.0 grammar_aycock

(The tclsh in the cmd line above may be any recent Tcl sh you've
in path.)

From what I see the panic happens here: 
[https://core.tcl-lang.org/tcllib/file?udc=1&ln=241&ci=0e1fe1222d76f26a&name=modules%2Fgrammar_aycock%2Faycock-runtime.tcl]
User Comments: pointsman added on 2023-08-10 10:56:41:
[Again the same comment, with links enabled, this time, for convenience. And closing the ticket, though if someone wants to look into the DictAsListIndex issue, this may be help.]

The panic happens with [b8ca5546cee60f], on 64-bit windows 10,
MinGW gcc-801.ilp32.

It does not happen any more with current trunk [ff548edf17].

Bisecing shows that [bd17e3ed36c] fixed the panic.

pointsman added on 2023-08-10 09:45:17:
The panic happens with [b8ca5546cee60f], on 64-bit windows 10,
MinGW gcc-801.ilp32.

It does not happen any more with current trunk [ff548edf17].

Bisecing shows that [bd17e3ed36c] fixed the panic.

apnadkarni added on 2023-08-10 01:19:27:
Does not crash for me. Windows 10 with Visual C++, tried both release and builds with memdbg,compdbg.

/Ashok