Tcl Source Code

View Ticket
Login
Ticket UUID: 503613
Title: Crash with ActiveState Tcl 8.3.4.1 and SpecTcl 1.2a3
Type: Bug Version: obsolete: 8.4a4
Submitter: mic42 Created on: 2002-01-14 23:59:36
Subsystem: 10. Objects Assigned To: hobbs
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2002-02-26 08:02:04
Resolution: Fixed Closed By: hobbs
    Closed on: 2002-02-26 01:02:04
Description:
Hi all,

i was just designing a simple GUI with spectcl 1.2
(http://spectcl.sourceforge.net), when i got this crash.

[info tclversion 8.3]
[info patchlevel 8.3.4]
OS: Win2k SP2 German

Crash Description:
Editing my simple GUI i wanted to change the
listvarname in the spectcl dialog. Double click on the
listbox, to get the spectcl dialoge, then change the
listvarname to something like ::foo::bar and click on OK.
Wish crashes.

VisualC++ Debugger says:
"Unbehandelte Ausnahme in wish83.exe (TCL83.dll)
0xC00000005 Access
Violation"

A attach the specTcl.ui file for anyone that likes to
test it.

Michael Schlenker
User Comments: hobbs added on 2002-02-26 08:02:04:
Logged In: YES 
user_id=72656

::foo must have been an invalid namespace.  I've corrected 
the listbox to correctly handle resetting the previous 
options (most notably the listvar) when an error occurs for 
8.3.5cvs and 8.4a4cvs.

mic42 added on 2002-01-17 22:58:30:

File Added - 16280: stacktrace.txt

mic42 added on 2002-01-17 22:57:29:
Logged In: YES 
user_id=302287

Attached a stack trace of the crashing. Seems like the crash
happens while deleting a compiled local Var.

mic42 added on 2002-01-17 22:50:35:
Logged In: YES 
user_id=302287

Now with a tcl version with TCL_MEM_DEBUG i get the message,
that the Reference count for 122d320 is negative. Seems like
the reference count handling makes some mistakes. Probably
in the namespace section, as the crash is only seen with a
namespaced listvar.

Ignore the comment on Tcl_NewLongObject. The crashing
occures because of a pointer to nowhere, so the resulting
place of the crash seen in the debugger is totally random.

mic42 added on 2002-01-17 04:47:45:
Logged In: YES 
user_id=302287

The crash seems to occur in Tcl_NewLongObject(). Today built
a tcl84 debug version.

mic42 added on 2002-01-17 03:47:39:
Logged In: YES 
user_id=302287

The crash seems to result from the use of a namespaced name
in listvar. Same crash is reported by Mark Clarkson with
SpecTix and Tcl 8.3.3.

I have tested with tcl84 cvs version yesterday and the crash
happend too.

mic42 added on 2002-01-15 06:59:43:

File Added - 16063: querymaster_ui.ui

Attachments: