Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2007-07-25
15:10 • Ticket [1682211fff] tcl crashes on asking certain keys for sub keys status s... artifact: b6f132fba9 user: dkf
08:26 • Ticket [1682211fff]: 4 changes artifact: 1003d0d54a user: nobody
2007-06-20
21:11 • Ticket [1682211fff]: 4 changes artifact: 62319af9ff user: nobody
2007-05-15
16:12
* win/configure: autoconf-2.59 (FC6 fork) * library/reg/pkgIndex.tcl: Bu... check-in: de7229b032 user: dgp tags: trunk
16:08
* changes: updates for 8.4.15 release. * win/tclWinReg.c: Bump to regi... check-in: e7c3622b34 user: dgp tags: core-8-4-branch
2007-03-18
05:41 • Closed ticket [1682211fff]: tcl crashes on asking certain keys for sub keys ... artifact: 0bd2fc2f4e user: kennykb
04:30 • Ticket [1682211fff]: 4 changes artifact: bc60aa2829 user: kennykb
2007-03-17
07:07 • Ticket [1682211fff]: 4 changes artifact: 901631b449 user: kennykb
2007-03-16
15:27 • New ticket [1682211fff]. artifact: 13ed6d5fd2 user: martinlemburg

tcl crashes on asking certain keys for sub keys

Closed / Fixed1682211fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 19 years ago
Descriptionplain2007-03-16 15:27:05
the tcl shell crashes, if the registry package queries the sub keys of a registry key, where the sub keys have perhabs illegal names.

The syntax leading to those crashes is simply:

    registry keys $path;

Those sub keys are e.g.

1. Accessibility, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL
2. CustomMarshalers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=x86
3. ISymWrapper, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=x86
4. ##?#IDE#DiskST340014A_______________________________8.16____#4a354d5851424247202020202020202020202020#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}
5. ##?#USBSTOR#Disk&Ven_TinyDisk&Prod_2006-04-10&Rev_0.00#0000000000010E&0#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}

etc.

The used registry package version is 1.1.4.
kennykbplain2007-03-17 07:07:17
Logged In: YES 
user_id=99768
Originator: NO

Any chance you could use regedit, regedt32, or something to dump the entire subtree in question and attach it to this report?  I don't have that subtree on my machine, and it would make things easier if I could reproduce the problem.
kennykbplain2007-03-18 04:30:46
Logged In: YES 
user_id=99768
Originator: NO

Never mind about sending me the registry dump.  The following test case fails.

test registry-4.9 {GetKeyNames: very long key} {*}{
    -constraints {win && reg}
    -setup {
registry set HKEY_CLASSES_ROOT\\TclFoobar\\a
registry set HKEY_CLASSES_ROOT\\TclFoobar\\b[string repeat x 254]
registry set HKEY_CLASSES_ROOT\\TclFoobar\\c
    }
    -body {
lsort [registry keys HKEY_CLASSES_ROOT\\TclFoobar]
    }
    -cleanup {
registry delete HKEY_CLASSES_ROOT\\TclFoobar
    }} \
    -result [list a b[string repeat x 254] c]
}
kennykbplain2007-03-18 05:41:38
Logged In: YES 
user_id=99768
Originator: NO

Fixed in the HEAD and the 8.4 branch tip.
[email protected]plain2007-06-20 21:11:21
Logged In: NO 

ptEAua Hey, there is what you need.
[email protected]plain2007-07-25 08:26:49
Logged In: NO 

YjhsQd A number of universities have awarded her honorary degrees, and she earned a prestigious job on the staff of Detroit congressman John Conyers. In 1988 Roxanne Brown noted: "Thirty-two years after she attracted international attention for sparking the Montgomery Bus Boycott, Mrs. Parks's ardent devotion to human rights still burns brightly, like a well-tended torch that ignites her spirit and calls her to service whenever she is needed."
dkf Ticket [1682211fff]: 1 change [History diff]2007-07-25 15:10:03
Log in (anonymous is fine) to add a comment.