Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2023-08-10
10:56 • Closed ticket [b6257b8283]: Tcl_Panic() with trunk on windows 10 plus 6 othe... artifact: 81cc726f66 user: pointsman
09:45 • Ticket [b6257b8283]: 3 changes artifact: 08bdf8cbd8 user: pointsman
01:19 • Ticket [b6257b8283]: 3 changes artifact: e0e1a18a2c user: apnadkarni
2023-08-09
23:31 • New ticket [b6257b8283]. artifact: d8aff3a333 user: pointsman

Tcl_Panic() with trunk on windows 10

Closed / Fixedb6257b82833b69673486ae253be7550489642e42Created 3 years agoUpdated 3 years ago
Descriptionplain2023-08-09 23:31:07
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]
apnadkarniplain2023-08-10 01:19:27
Does not crash for me. Windows 10 with Visual C++, tried both release and builds with memdbg,compdbg.

/Ashok
pointsmanplain2023-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.
pointsmanplain2023-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.
Log in (anonymous is fine) to add a comment.