Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2009-07-29
19:53 • Ticket [726018ffff] cmdName ObjType either wrong or confusing status still C... artifact: 6f3f5b4767 user: dkf
19:53 • Ticket [726018ffff]: 4 changes artifact: 6d59028a43 user: dkf
2008-12-04
05:25 • Ticket [726018ffff]: 8 changes artifact: f2a181d570 user: dkf
02:17 • Ticket [726018ffff]: 4 changes artifact: 2af569e4d1 user: nobody
02:17 • Ticket [726018ffff]: 4 changes artifact: a6803e0d29 user: nobody
2003-05-24
04:26 • Closed ticket [726018ffff]. artifact: ecfd2dfb21 user: dgp
04:25 • Ticket [726018ffff]: 4 changes artifact: 3df7a39559 user: jyljyljyl
04:14 • Ticket [726018ffff]: 4 changes artifact: 87327f4071 user: dgp
01:04 • Ticket [726018ffff]: 4 changes artifact: fdf92f5ee3 user: mdejong
2003-05-23
22:09 • Ticket [726018ffff]: 4 changes artifact: 6597f53f3b user: dgp
22:09 • Add attachment 726018.patch to ticket [726018ffff] artifact: f0b71f99a2 user: dgp
22:09 • Ticket [726018ffff] cmdName ObjType either wrong or confusing status still O... artifact: 5a8f1e281b user: dgp
2003-05-22
22:17 • Open ticket [726018ffff]. artifact: 1b52e1b52f user: dgp
2003-05-13
02:30 • Closed ticket [726018ffff]. artifact: c1d5dbbf1b user: dgp
00:47 • Ticket [726018ffff]: 4 changes artifact: 255bc0bb1e user: dgp
2003-04-23
04:02 • New ticket [726018ffff]. artifact: 2a794680f3 user: dgp

cmdName ObjType either wrong or confusing

Closed726018ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 17 years ago
Descriptionplain2003-04-23 04:02:08
The tclCmdNameType (aka the "cmdName" Tcl_ObjType)
appears to use the otherValuePtr field of the internalRep
union to hold its (ResolvedCmdName *) value
in some places, but appears to use the
twoPtrValue field in other places.  I suspect the code
is inconsistent, but just happens to work because
of the way the two interpretations of the internalRep
union lie over each other.

It's possible this is intentional, and due to some
subtle trickery.  If that's the case, then we really
need some better comments in there explaining
what's going on .

Either way, there's a bug to fix.
dgpplain2003-05-13 00:47:56
Logged In: YES 
user_id=80530


miguel notes on the chat that he believes
this is an error, not cleverness.
dgpplain2003-05-13 02:30:26
Logged In: YES 
user_id=80530

fixed for 8.4.3
dgpplain2003-05-22 22:17:40
Logged In: YES 
user_id=80530


A report on CLT claims this
change broke tclBlend 1.3.0.
Can you confirm?
dgpplain2003-05-23 22:09:25
Logged In: YES 
user_id=80530


If someone confirms that Tcl 8.4.3
did in fact break TclBlend 1.3.0, can
they also check whether this patch
to Tcl 8.4.3 fixes the problem?
dgpplain2003-05-23 22:09:26
File Added - 51106: 726018.patch
mdejongplain2003-05-24 01:04:25
Logged In: YES 
user_id=90858

There is indeed a poblem. I just ran the test cases with the
current CVS
of Tcl and it now deadlocks or crashes on exit. I have not
had time to
test any patches to see if they fix things.
dgpplain2003-05-24 04:14:38
Logged In: YES 
user_id=80530


Jacob Levy reports similar trouble with e4graph.
jyljyljylplain2003-05-24 04:25:04
Logged In: YES 
user_id=63723

Confirmed that the source build of 8.4.3 breaks e4Graph, and 
the patch submitted by dgp fixes it again. e4Graph's use of 
twoPtrValue.ptr2 is based on code snarfed from tclBlend, so 
no surprise.
dgpplain2003-05-24 04:26:20
Logged In: YES 
user_id=80530


...and jyl reports the attached patch fixes things.

Committing to core-8-4-branch and HEAD.

Looks like we'll need an 8.4.4 soon.   Sorry....
[email protected]plain2008-12-04 02:17:10
M8XPvr dkg93jfbkSdLk496c
[email protected]plain2008-12-04 02:17:24
M8XPvr dkg93jfbkSdLk496c
dkfplain2008-12-04 05:25:04
data_type - 210894
dkfplain2009-07-29 19:53:21
IP - Comment Removed: 130.88.1.31
dkfplain2009-07-29 19:53:22
IP - Comment Removed: 130.88.1.31
Log in (anonymous is fine) to add a comment.

Attachments: