Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2002-02-26
08:02 • Closed ticket [503613ffff]: Crash with ActiveState Tcl 8.3.4.1 and SpecTcl 1.2a3... artifact: d4f0e43349 user: hobbs
2002-01-17
22:58 • Ticket [503613ffff]: 4 changes artifact: c2eefa60f9 user: mic42
22:58 • Add attachment stacktrace.txt to ticket [503613ffff] artifact: 864e7f4671 user: mic42
22:57 • Ticket [503613ffff] Crash with ActiveState Tcl 8.3.4.1 and SpecTcl 1.2a3 sta... artifact: 7acf1d743c user: mic42
22:50 • Ticket [503613ffff]: 5 changes artifact: 6112a9ff36 user: mic42
04:47 • Ticket [503613ffff]: 6 changes artifact: a8b44399c8 user: mic42
03:47 • Ticket [503613ffff]: 4 changes artifact: 4cce027b68 user: mic42
2002-01-15
06:59 • Ticket [503613ffff]: 4 changes artifact: e9ee17c6f3 user: mic42
06:59 • Add attachment querymaster_ui.ui to ticket [503613ffffffffff|503613ffff... artifact: 9c19749403 user: mic42
2002-01-14
23:59 • New ticket [503613ffff] Crash with ActiveState Tcl 8.3.4.1 and S. artifact: 3d49374c9e user: mic42

Crash with ActiveState Tcl 8.3.4.1 and SpecTcl 1.2a3

Closed / Fixed503613ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2002-01-14 23:59:36
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
mic42plain2002-01-15 06:59:43
File Added - 16063: querymaster_ui.ui
mic42plain2002-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.
mic42plain2002-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.
mic42plain2002-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.
mic42plain2002-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.
mic42plain2002-01-17 22:58:30
File Added - 16280: stacktrace.txt
hobbsplain2002-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.
Log in (anonymous is fine) to add a comment.

Attachments: