Skip to content
Tcl Source Code View Ticket
Login

View Ticket

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: