tclsh dumps core on second ``!!'' of ``mk::row create''.
Closed / Invalid824680ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2003-10-16 09:24:56
Tcl Version: 8.4.4 FreeBSD robert2.mpe-garching.mpg.de 5.1-CURRENT FreeBSD 5.1-CURRENT #1: Wed Aug 6 10:19:27 CEST 2003 [email protected]:/usr/obj/usr/src/sys/ROBERT2 alpha Same problem on my i386 (FreeBSD5.1-CURRENT). Metakit 2.4.9.2 --- I also submit this to metakits developer --- Problem: 11:06(1025)% tclsh8.4 % package require Mk4tcl 2.4.9.2 % mk::row create _._!1._!0 % !! mk::row create _._!1._!0 % !! mk::row create zsh: segmentation fault (core dumped) tclsh8.4 11:09(1026)% It always crashes after the second ``!!''. When I type ``mk::row create'' by hand it crashes after the 20th repetition (i.e. 21st ``mk::row create''). The following script crashes on the second call of ``mk::row create'': 11:15(1026)% tclsh8.4 % package require Mk4tcl 2.4.9.2 % set i 0 ; while {1} {puts stderr [incr i]; mk::row create; puts stderr "success"} 1 success 2 zsh: segmentation fault (core dumped) tclsh8.4 11:15(1026)% -- Robert Suetterlin [email protected]
dkfplain2003-10-16 17:38:02
Logged In: YES user_id=79902 Looks (from a very quick and cursory glance) like a bug in metakit or mk4tcl, not Tcl itself. AS have some interest in this area; perhaps they can forward it to the right place for tracking this sort of issue? I've no idea how to take this forward, but I can duplicate it here using both tclkit and ActiveTcl on both Windows and IRIX (both using Mk4tcl version 2.4.7). Curiously, when I do it on IRIX, the crash doesn't happen until I try to exit the process. The back-trace in a debugger (on IRIX) makes me suspect that the problem is some kind of out-of-control recursion through c4_View::operator=() but I'm no expert on the matter. I suspect this might be an issue to forward to JCW...
dgpplain2003-10-16 21:18:37
Logged In: YES
user_id=80530
This is almost certainly a bug
in Mk4Tcl, which suffers from
many similar segfaulting problems:
http://www.equi4.com/metakit/wiki.cgi/191
I don't expect these problems will ever
be fixed, as the active Metakit
developers seem to have abandoned
Mk4Tcl in favor of oomk. Perhaps you
should too?
At any rate, not a bug in Tcl. Closing.
Log in (anonymous is fine) to add a comment.