Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2009-01-06
21:33 • Closed ticket [2489836fff]: CRASH - tclsh crashes invoking unknown method pl... artifact: 21c5d017ed user: dkf
21:18 • Ticket [2489836fff]: 4 changes artifact: 8c320749da user: dkf
18:42 • Ticket [2489836fff]: 1 change artifact: 494cbde144 user: dkf
17:20 • Add attachment map.tcl to ticket [2489836fff] artifact: f931c715d8 user: apnadkarni
17:20 • Ticket [2489836fff] CRASH - tclsh crashes invoking unknown method status sti... artifact: 889a9fd8ff user: apnadkarni
10:20 • New ticket [2489836fff]. artifact: 3f413a78f0 user: apnadkarni

CRASH - tclsh crashes invoking unknown method

Closed / Fixed2489836fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2009-01-06 10:20:06
Tclsh 8.6b1
WinXP SP2
The following sequence causes tclsh to crash. Don't ask as to what the commands are trying to do! It's the shortest sequence I can come up with that generates the crash. The require map.tcl file is attached. I'm still learning TclOO so it's quite possible I'm not doing things right but a crash should not be the outcome.

% source map.tcl
::Map
% Map create m {a 1 b 2}
::m
% info object methods m -all
-clear -exists -get -set -unset destroy
% oo::objdefine m {unexport [info object methods m -all]}
% info object methods m -all
-clear -exists -get -set -unset destroy
% oo::objdefine m {unexport {*}[info object methods m -all]}
% info object methods m -all
% m a   --> CAUSES CRASH

/Ashok
apnadkarniplain2009-01-06 17:20:06
File Added - 307995: map.tcl
dkf Ticket [2489836fff]: 1 change [History diff]2009-01-06 18:42:29
dkfplain2009-01-06 21:18:55
non-aligned pointer access??? WTF...
dkfplain2009-01-06 21:33:53
Oops, was deleting the contents of a variable that wasn't set.
Log in (anonymous is fine) to add a comment.

Attachments: