Overview
| Artifact ID: | 9f0707c731be1ee90a61e688a0117f1927e6992b |
|---|---|
| Ticket: | 2782488fffffffffffffffffffffffffffffffff
tclsh8.5 segfaults upon sourcing 8.4 byte codes |
| User & Date: | andreas_kupries on 2009-10-06 01:47:24 |
Changes
- icomment:
I do not believe so. From the name of the command and its output (procomp, 2002) this is a TDK 1.5, at most a TDK 2.x. Very old. I can imagine that it has bugs with regard to bytecode generation and/or loading which trips current tclsh 8.5.x. I just tried to reproduce the problem using TDK 5.1 and an AT 8.5.7.0.290291 and the loading is ok. Session log: > cat x/barf.tcl puts BARF > ./DEF/bin/tclcompiler84 ./x/barf.tcl # Tcl Dev Kit Compiler # Copyright (C) 2001-2009 ActiveState Software Inc. All rights reserved. # Internal license for Activator <[email protected]>. > ll x total 8 -rw-rw-r-- 1 andreask DomainUsers 340 2009-10-05 11:40 barf.tbc -rw-rw-r-- 1 andreask DomainUsers 10 2009-10-05 11:37 barf.tcl > ~/Abuild/bin/tclsh8.5 % source x/barf.tbc BARF % package present tbcload 1.7 % package ifneeded tbcload 1.7 load /home/andreask/Abuild/lib/tcl8.5/tbcload1.7/libtbcload1.7.so % info patchlevel 8.5.7 % package present ActiveTcl 8.5.7.0.290291 % exit > cat x/barf.tbc # TclPro::Compiler::Include if {[catch {package require tbcload 1.6} err] == 1} { return -code error "[info script]: The TclPro ByteCode Loader is not available or does not support the correct version -- $err" } tbcload::bceval { TclPro ByteCode 2 0 1.7 8.4 1 0 7 2 0 0 4 0 2 1 1 -1 -1 7 w0E<!)'!! 1 z 1 '! 2 x 4 DP)*F x 4 =N)T7 0 0 } > As seen, compiled for tcl 8.4, and loads into tclsh8.5.7 without a crash.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"