Artifacts Associated With Ticket 218609
Ticket change [3f03cdea06] (rid 121377) by nobody on 2000-10-26 01:03:03:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 1439 Bug Version: 8.0.4 SubmitDate: '1999-03-04' LastModified: '1999-09-16' Severity: CRIT Status: Released Submitter: pat ChangedBy: hobbs OS: Windows 95 OSVersion: 4.0 Machine: X86 FixedDate: '1999-09-16' FixedInVersion: 8.2.1 ClosedDate: '2000-10-25' Name: Ron A. Zajac Extensions: out-of-the-box 8.0.4 CustomShell: n/a ReproducibleScript: Here's a console of the interaction: % info vars tcl_rcFileName tkPriv.:0 tcl_version argv argv0 tcl_interactive tcl_traceCompile tk_library auto_oldpath tk_version errorCode auto_path tk_strictMotif errorInfo auto_index tkPriv env tcl_pkgPath tcl_patchLevel argc tk_patchLevel tcl_traceExec tcl_library tcl_platform % set tcl_version 8.0 % set tk_version 8.0 % set tcl_patchLevel 8.0.4 % set tk_patchLevel 8.0.4 % pwd C:/Program Files/Tcl % cd Sources % parray tcl_platform tcl_platform(byteOrder) = littleEndian tcl_platform(machine) = intel tcl_platform(os) = Windows 95 tcl_platform(osVersion) = 4.0 tcl_platform(platform) = windows % source Pento.tk [end of console] When I press <Enter> on that last line, the system utterly hangs; since I have a debug "puts" at the very beginning of the sourceable, it appears to be a pre-compile problem (very surprising!). Here's the code (sorry; attempts to boil this down to a smaller reproducable failed...): puts "1" set Board { {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} } set Piecelist {{P1} {P2} {P3} {BigP} {L1} {L2} {Angle} {Zee} {Rectangle} {Chip}} array set Piece { {Frame} { {000000} { { 1 1 1 1 1 1 1 1 1 1 9 1 9 1 9 1 9 1 9 1 9 1 9 1 9 1 1 1 1 1 1 1 1 1 1 } } } {P1} { {f2f864} { {10 1 9 1} {1 8 1 1} {1 9 1 10} {1 1 8 1} {9 1 9 1} {1 1 9 1} {1 9 1 9} {1 9 1 1} } } {P2} { {cc88e2} { {10 10 1 9 1} {1 7 1 1 1} {1 9 1 10 10} {1 1 1 7 1} {10 9 1 9 1} {1 1 1 9 1} {1 9 1 9 10} {1 9 1 1 1} } } {P3} { {a17474} { {10 10 10 1 9 1} {1 6 1 1 1 1} {1 9 1 10 10 10} {1 1 1 1 6 1} {10 10 9 1 9 1} {1 1 1 1 9 1} {1 9 1 9 10 10} {1 9 1 1 1 1} } } {BigP} { {48a8de} { {10 10 1 1 8 1 1} {1 9 1 7 1 1 1} {1 1 8 1 1 10 10} {1 1 1 7 1 9 1} {10 8 1 1 8 1 1} {1 1 1 9 1 9 1} {1 1 8 1 1 8 10} {1 9 1 9 1 1 1} } } {L1} { {ff6735} { {1 9 10} {10 1 1} {10 9 1} {1 1 10} {1 10 10} {1 1 8} {10 10 1} {8 1 1} } } {L2} { {52a163} { {1 1 8 10 10} {10 10 1 1 1} {10 10 8 1 1} {1 1 1 10 10} {1 1 10 10 10} {1 1 1 7 10} {10 10 10 1 1} {10 7 1 1 1} } } {Angle} { {ff0060} { {1 1 8 10} {10 10 1 1} {10 8 1 1} {1 1 10 10} } } {Zee} { {72c880} { {10 10 1 1 10 10} {1 1 8 8 1 1} {10 8 1 1 8 10} {1 1 10 10 1 1} } } {Rectangle} { {e4e5c3} { {1 1 1 7 1 1 1} {1 9 1 9 1 9 1} } } {Chip} { {9ef17d} { {1 8 1 1 8 1 1} {1 1 8 1 1 9 1} {1 1 8 1 1 8 1} {1 9 1 1 8 1 1} } } } proc PlacePiece {board piece num} { global Piece puts "x" if {[set ix [lsearch -exact $board {}]] < 0} { return {} } set board [lreplace $board $ix $ix $piece] foreach increment [lindex [lindex $Piece($piece) 1] $num] { incr ix $increment if {[string length [lindex $board $ix]]} { # # COLLISION! # return {} } set board [lreplace $board $ix $ix $piece] } return $board } set dent {} for {set a 0} {$a < 11} {incr a} { set Dent($a) $dent append dent { } } unset dent proc Solve {board piecelist solutionlist} { global Solutions Piece Dent set dent $Dent([info level]) puts "${dent}board=$board" puts "${dent}piecelist=$piecelist" puts "${dent}solutionlist=$solutionlist" puts {} if {![llength $piecelist]} { puts $solutionlist lappend Solutions $solutionlist return } foreach piece $piecelist { puts "${dent}piece=$piece" set ix [lsearch -exact $piecelist $piece] set newpiecelist [lreplace $piecelist $ix $ix] set numoforients [llength [lindex $Piece($piece) 1]] for {set num 0} {$num < $numoforients} {incr num} { puts "$dent num=$num" if {[llength [set newboard [PlacePiece $board $piece $num]]]} { Solve $newboard $newpiecelist [concat $solutionlist [list $piece $num]] } } } } set Solutions {} puts "y" Solve [PlacePiece $Board {Frame} 0] $Piecelist {} # puts $Solutions [end of sourceable] ObservedBehavior: Described above; console/Win95 window manager utterly hung; looks like pre-compiler inf. loop or something.... Note this is tcl (not Tk) related; I intended to solve the problem at hand, then build an interface for the display of the solution set. There are no Tk built-in cmds in this code, tho I'm testing it under "wish". DesiredBehavior: I explected a quick precompile and "puts" debugging trace of problem solution. This is not reproducable in 8.2.0. The user may also consider getting the binary distribution. -- 09/16/1999 hobbs - foundin initialized to: "obsolete: 8.0.4"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "61. (unused)"
- title initialized to:
Win94 Wish hangs on tcl-precompile (no Tk, yet...!)
- type initialized to: "Bug"
Ticket change [f698268e42] (rid 130327) by welch on 2000-10-26 08:25:10:
- closedate changed to: "2000-10-26T01:25:10"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [55a04d3891] (rid 94172) by dgp on 2001-04-05 08:22:17:
- closedate changed to: "2001-04-05T01:22:17"
- closer changed to: "dgp"
- subsystem changed to: "53. Configuration and Build Tools"