Overview
| Artifact ID: | 918eb0a5b292cbab76851622ee22218447c35ab82dece19a06e3c6e9dc714c70 |
|---|---|
| Ticket: | 4eb3a155ac6f73f48b270a19e543841d26bf2e6f
apply causes memory corruption / crash |
| User & Date: | apnadkarni on 2022-07-20 17:17:42 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-markdown"
- comment changed to:
See the following session (Windows, released 8.6.12): ``` % info patch 8.6.12 % set b {set a 1} set a 1 % apply [list {} $b] 1 % % apply [list {} $b[set b {}] ^C ``` On the second apply, program either crashes or goes into never-never land. Similarly with a recent vintage core-8-branch, ``` % info patch 8.7a6 % set b {set a 1} set a 1 % apply [list {} $b] 1 % apply [list {} $b[set b {}] ^C ``` On Ubuntu 20.04, for good measure ``` apn@IO:/mnt/d/src/tcltk/core-8-branch/tcl/unix/build$ LD_LIBRARY_PATH=. ./tclsh % info patch 8.7a6 % set b {set a 1} set a 1 % apply [list {} $b] 1 % apply [list {} $b[set b{}] ^C ``` The same three commands in a script do not crash or run away, at least not immediately. A first pass through the debugger seems to indicate cause is reading from uninitialized memory. Contents at the location determine future outcomes. Further details to follow. - foundin changed to: "8.6"
- is_private changed to: "0"
- login: "apnadkarni"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "apnadkarni"
- subsystem changed to: "47. Bytecode Compiler"
- title changed to: "apply causes memory corruption / crash"
- type changed to: "Bug"