Artifacts Associated With Ticket 1306310fffffffffffffffffffffffffffffffff
Ticket change [967937b40c] (rid 106334) by nobody on 2005-09-27 22:34:26:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Running: % package require Expect 5.42.1 % package require Itcl 3.1 % puts $tcl_version 8.4 % itcl::class Foo { common boolean set boolean(true) 1 set boolean(false) 0 } Segmentation fault The same command in the itclsh shell works fine: % class Foo { common boolean set boolean(true) 1 set boolean(false) 0 } % I just moved to Debian Sarge "kernelversion 2.6" - foundin initialized to: "obsolete: 8.4.0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "10. Objects"
- title initialized to: "Segmentation Fault when creating a itcl::class"
- type initialized to: "Bug"
Ticket change [9cfeb28c69] (rid 96236) by robsaye on 2005-09-28 05:48:05:
- icomment:
Logged In: YES user_id=1352898 This is my bug, I just created a username here. My email is robsaye at comcast dot net.
- login: "robsaye"
- mimetype: "text/plain"
- username: "robsaye"
- icomment:
Ticket change [0d37bcfa13] (rid 114320) by msofer on 2005-09-28 08:03:14:
- icomment:
Logged In: YES user_id=148712 Two questions: 1. is the 'package require Expect' necessary for the segfault? You do not seem to include that itclsh. 2. please report any differences in the contents of tcl_platform as well as tcl_patchlevel between the two cases - trying to determine if both shells are built similarly.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [9d4b3d922a] (rid 96279) by nobody on 2005-09-28 10:21:28:
- icomment:
Logged In: NO 1. Package Require Expect is not required, (It was just in the test I had written that crashed) 2. tclsh % array get tcl_platform osVersion 2.6.12-staros-9240 byteOrder littleEndian threaded 1 machine i686 platform unix os Linux user rsaye wordSize 4 itclsh array get tcl_platform osVersion 2.6.12-staros-9240 byteOrder littleEndian machine i686 platform unix os Linux user rsaye On both there is no variable tcl_patchlevel puts $tcl_patchlevel can't read "tcl_patchlevel": no such variable
- login: "nobody"
- mimetype: "text/plain"
- username: "nobody"
- icomment:
Ticket change [82a1d7cbcf] (rid 117265) by msofer on 2005-09-28 17:34:02:
- icomment:
Logged In: YES user_id=148712 Oops ... that should have been an [info patchlevel] request, sorry. Anyway: one difference is that your tclsh is a threaded build, whereas the itclsh is not. So now the question is if your itcl package is built for threads (a "no" would explain the crash). Do you know how it was compiled? ISTR that expect is known to have problems with threads. Does your test also crash without requiring it?
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [7d14ac71f4] (rid 97185) by hobbs on 2005-10-05 10:55:32:
- closedate changed to: "2005-10-05T03:55:32"
- closer changed to: "hobbs"
- icomment:
Logged In: YES user_id=72656 Someone hasn't put together the pieces right. The following is from a threaded Linux ActiveTcl build that indicates this works when compiled right: tellar [~] 93 > ~/ActiveTcl-8.4t/bin/tclsh % package require Expect 5.43.0 % package require Itcl 3.3 % itcl::class Foo { common boolean set boolean(true) 1 set boolean(false) 0 } % parray tcl_platform tcl_platform(byteOrder) = littleEndian tcl_platform(machine) = i686 tcl_platform(os) = Linux tcl_platform(osVersion) = 2.6.8-24.14-default tcl_platform(platform) = unix tcl_platform(threaded) = 1 tcl_platform(user) = jeffh tcl_platform(wordSize) = 4 % package require ActiveTcl 8.4.11.1.198139 - login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- username: "hobbs"
Ticket change [dd92a83cf3] (rid 114691) by robsaye on 2005-10-05 20:08:50:
- icomment:
Logged In: YES user_id=1352898 That would help greatly, the Debian "Sarge" release has Itcl version 3.1 which can't handle the --enable_threads option tcl 8.4 was built with. To solve this I just rolled back to tcl 8.3 which does not have threads enabled. I updated a Debian Bug on this.
- login: "robsaye"
- mimetype: "text/plain"
- username: "robsaye"
- icomment: