Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2008-05-17
12:33 • Closed ticket [1938032fff]: Crash in dict with plus 7 other changes artifact: d15a7d2539 user: dkf
2008-05-16
22:39 • Ticket [1938032fff]: 4 changes artifact: f14463b123 user: dkf
22:37 • Ticket [1938032fff]: 4 changes artifact: 176f875eef user: dkf
21:31 • Ticket [1938032fff]: 1 change artifact: 056f4587cd user: dkf
21:30 • Open ticket [1938032fff]. artifact: b732893bcf user: dkf
09:20 • Closed ticket [1938032fff]. artifact: 15198209ee user: sf-robot
2008-05-01
20:27 • Pending ticket [1938032fff]. artifact: e2fbc47a32 user: dkf
20:27 • Ticket [1938032fff]: 4 changes artifact: aa289d7f2d user: dkf
2008-04-13
00:17 • Ticket [1938032fff]: 4 changes artifact: 207c2dc305 user: v_f
2008-04-09
01:36 • Ticket [1938032fff]: 4 changes artifact: ec2f4e6e73 user: beric
01:36 • Add attachment dicttest2.tcl to ticket [1938032fff] artifact: 2713b38b4a user: beric
01:34 • Ticket [1938032fff] Crash in dict with status still Open with 4 other chan... artifact: b1cd7a8220 user: beric
01:34 • Add attachment dicttest.tcl to ticket [1938032fff] artifact: b8c605bd68 user: beric
2008-04-08
18:34 • New ticket [1938032fff] Crash in dict with. artifact: 9f2f1b2977 user: beric

Crash in [dict with]

Closed / Out of Date1938032fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2008-04-08 18:34:31
Not sure if this is related to TclOO or [dict with], but the attached script dicttest.tcl crashes.
The equivalent script dicttest2.tcl in pure Tcl does not.
bericplain2008-04-09 01:34:31
File Added - 273751: dicttest.tcl
bericplain2008-04-09 01:36:19
File Added - 273752: dicttest2.tcl

Logged In: YES 
user_id=493507
Originator: YES

File Added: dicttest2.tcl
v_fplain2008-04-13 00:17:03
Logged In: YES 
user_id=1923679
Originator: NO

Same for me on x86_64 with and without symbols. The first error happens here:

==20269== Conditional jump or move depends on uninitialised value(s)
==20269==    at 0x4F37B76: TclLookupSimpleVar (tclVar.c:1007)
==20269==    by 0x4F374A9: TclObjLookupVarEx (tclVar.c:705)
==20269==    by 0x4F3865D: Tcl_ObjSetVar2 (tclVar.c:1710)
==20269==    by 0x4EB9523: DictWithCmd (tclDictObj.c:3061)
==20269==    by 0x4E609D0: TclEvalObjvInternal (tclBasic.c:3649)
==20269==    by 0x4E61079: Tcl_EvalObjv (tclBasic.c:3844)
==20269==    by 0x4F05D44: NsEnsembleImplementationCmd (tclNamesp.c:6217)
==20269==    by 0x4E609D0: TclEvalObjvInternal (tclBasic.c:3649)
==20269==    by 0x4EC342E: TclExecuteByteCode (tclExecute.c:2314)
==20269==    by 0x4F1C30E: TclObjInterpProcCore (tclProc.c:1721)
==20269==    by 0x69AA970: InvokeProcedureMethod (tclOOMethod.c:724)
==20269==    by 0x69A295C: TclOOInvokeContext (tclOOCall.c:221)

Loaded symbols for /usr/local/tcl/8.5.2-dbg/lib/TclOO0.2/libTclOO0.2.so
0x0000000004f37b76 in TclLookupSimpleVar (interp=0x5964d30, varNamePtr=0x66d3aa8, flags=512, create=1, errMsgPtr=0x7feffc740, 
    indexPtr=0x7feffc74c) at /usr/local/tcl/8.5.2-dbg/src/tcl/unix/../generic/tclVar.c:1007
1007                if (objPtr) {
(gdb) p objPtr
$1 = (Tcl_Obj *) 0x0
dkfplain2008-05-01 20:27:52
Logged In: YES 
user_id=79902
Originator: NO

Can't reproduce on OSX with the HEAD of Tcl and TclOO.
dkf Pending ticket [1938032fff]. [History diff]2008-05-01 20:27:53
sf-robotplain2008-05-16 09:20:22
Logged In: YES 
user_id=1312539
Originator: NO

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
dkfplain2008-05-16 21:30:48
Logged In: YES 
user_id=79902
Originator: NO

Bleah; can duplicate now...
dkf Ticket [1938032fff]: 1 change [History diff]2008-05-16 21:31:25
dkfplain2008-05-16 22:37:10
Logged In: YES 
user_id=79902
Originator: NO

Needs 8.5 series build; can't duplicate with Tcl 8.6a0 even on a platform which is sensitive. Grrr!
dkfplain2008-05-16 22:39:42
Logged In: YES 
user_id=79902
Originator: NO

(Or maybe it needs a build of TclOO that is matched completely against a particular patchlevel of Tcl; can't tell without much more work)
dkfplain2008-05-17 12:33:15
Logged In: YES 
user_id=79902
Originator: NO

Further examination (well, slightly annotating dicttest.tcl to print out which version of the TclOO it has required) indicates that the crash only happens with TclOO 0.2, and not with 0.3a0 (the CVS HEAD). Confirmed that this is true using ActiveState builds of tclsh and TclOO (i.e. completely independent of my own compiler configuration).

While there have been many fixes between 0.2 and now, the revisions to call chain and cache management are almost certainly what made the problem in this report go away.
Log in (anonymous is fine) to add a comment.

Attachments: