crash in Tcl_DeleteInterp when using multiple interpreters
Closed / Fixed218353ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:56:37
OriginalBugID: 4114 Bug
Version: 8.2.3
SubmitDate: '2000-02-02'
LastModified: '2000-04-12'
Severity: CRIT
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
RelatedBugIDs: 5033
OS: Solaris
OSVersion: Solaris 5.6
Machine: Sun Ultra 5-10 512Mb RAM
FixedDate: '2000-10-25'
ClosedDate: '2000-04-12'
Name:
Neil Hampton
Extensions:
None
CustomShell:
None
Comments:
I have tried this on 8.3b2 as well.
The same happens on Windows/NT.
Despite the function names in the stack trace, the application is single
threaded (it uses a cooperative thread like mechanism).
ReproducibleScript:
We have embedded TCL inside a telephony application that processes telephone calls using multiple interpreters. Some scripts cause the crash, it seems to be larger scripts in particular.
This problem does not occur in TCL 8.0
ObservedBehavior:
Crash - stack trace:
Reading symbolic information for libsocket.so.1
Reading symbolic information for libnsl.so.1
Reading symbolic information for libdl.so.1
Reading symbolic information for libtcl8.2g.so
Reading symbolic information for libc.so.1
Reading symbolic information for libmp.so.2
Reading symbolic information for libm.so.1
Reading symbolic information for libc_psr.so.1
program terminated by signal SEGV (no mapping at the fault address)
Current function is Tcl_GetStringFromObj
749 if (objPtr->typePtr->updateStringProc == NULL) {
(dbx) where
=>[1] Tcl_GetStringFromObj(objPtr = 0x208b90, lengthPtr = 0xefff7c7c), line 749 in "tclObj.c"
[2] TclReleaseLiteral(interp = 0x1f4b30, objPtr = 0x208b90), line 686 in "tclLiteral.c"
[3] TclDeleteLiteralTable(interp = 0x1f4b30, tablePtr = 0x1f4bf4), line 124 in "tclLiteral.c"
[4] DeleteInterpProc(interp = 0x1f4b30), line 1075 in "tclBasic.c"
[5] Tcl_Release(clientData = 0x1f4b30), line 241 in "tclPreserve.c"
[6] CdrTclThreadScript(Thread = 1, Call = 0x1f4f28), line 396 in "cdr_tcl_interp.c"
[7] RunThreadMain(Thread = 0x1f54e4), line 1071 in "cdr_tcl_async.c"
[8] NewThread(ThreadPtr = 0x1f54e4), line 935 in "cdr_tcl_async.c"
DesiredBehavior:
No crash.
The application should be recompiled where -DTCL_MEM_DEBUG is
added to the core compile as well as the extension. This will
likely show that an object is being decr'd after it has already
been freed. This will point out better where the problem lies.
Otherwise, the related C code or Tcl script that triggered this
needs to be given.
-- 03/30/2000 hobbs
welch Closed ticket [218353ffff].
[History diff]2000-10-26 08:20:08
Log in (anonymous is fine) to add a comment.