Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Tcl core dumps w/ multiple http reads

Closed / Fixed218878ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:07:05
OriginalBugID: 2508 Bug
Version: 8.0.5
SubmitDate: '1999-08-05'
LastModified: '1999-10-21'
Severity: CRIT
Status: Released
Submitter: techsupp
ChangedBy: hobbs
OS: Solaris
OSVersion: 2.6
Machine: Other
FixedDate: '1999-10-21'
FixedInVersion: 8.2.2
ClosedDate: '2000-10-25'


Name:
Michal Prussak

Extensions:
regsplit (our own simple extension)

CustomShell:
None

ReproducibleScript:
Tcl core dumps when running a web spider script. This is our own script
    that
    maintains up to 40 asynchronous ::http::get calls. The interpreter
    crashes after processing about 30,000 requests. I might be able to
    provide the script if you need it to reproduce the problem. We use one
    small Tcl extension to split 
    a Tcl string using Tcl regular expressions. The core file is 46MB, we
    have 2GB RAM.

ObservedBehavior:
Core dump. This is the stack trace:
    
    #0  0xef720b7c in seg2 ()
    #1  0xef720750 in blalign ()
    #2  0xef6dede4 in Tcl_SetObjLength ()
    #3  0xef6deeec in Tcl_AppendToObj ()
    #4  0xef6e507c in Tcl_ObjSetVar2 ()
    #5  0xef6e6504 in Tcl_AppendObjCmd ()
    #6  0xef6b6c08 in TclExecuteByteCode ()
    #7  0xef696b10 in Tcl_EvalObj ()
    #8  0xef6de394 in TclObjInterpProc ()
    #9  0xef6b6c08 in TclExecuteByteCode ()
    #10 0xef696b10 in Tcl_EvalObj ()
    #11 0xef696824 in Tcl_Eval ()
    #12 0xef6984bc in Tcl_GlobalEval ()
    #13 0xef6cbb08 in ChannelEventScriptInvoker ()
    #14 0xef6cb574 in Tcl_NotifyChannel ()
    #15 0xef6ee7a8 in FileHandlerEventProc ()
    #16 0xef6d66e4 in Tcl_ServiceEvent ()
    #17 0xef6d6a20 in Tcl_DoOneEvent ()
    #18 0xef6b5a24 in Tcl_VwaitCmd ()
    #19 0xef695ee8 in TclInvokeStringCommand ()
    #20 0xef6b6c08 in TclExecuteByteCode ()
    #21 0xef696b10 in Tcl_EvalObj ()
    #22 0xef6de394 in TclObjInterpProc ()
    ---Type <return> to continue, or q <return> to quit--- 
    #23 0xef6b6c08 in TclExecuteByteCode ()
    #24 0xef696b10 in Tcl_EvalObj ()
    #25 0xef6de394 in TclObjInterpProc ()
    #26 0xef6b6c08 in TclExecuteByteCode ()
    #27 0xef696b10 in Tcl_EvalObj ()
    #28 0xef69b00c in Tcl_EvalObjCmd ()
    #29 0xef6b6c08 in TclExecuteByteCode ()
    #30 0xef696b10 in Tcl_EvalObj ()
    #31 0xef69acd0 in Tcl_CatchObjCmd ()
    #32 0xef6b6c08 in TclExecuteByteCode ()
    #33 0xef696b10 in Tcl_EvalObj ()
    #34 0xef6cfecc in Tcl_EvalFile ()
    #35 0xef6d28b8 in Tcl_Main ()
    #36 0x10aac in main ()

DesiredBehavior:
No core dump.



Fixes are made for 8.3b1 (current CVS) that plug mem leaks in
threads and handle events for them better.  This should take
care of the stated problem. 
-- 10/21/1999 hobbs
welch Closed ticket [218878ffff]. [History diff]2000-10-26 08:31:13
Log in (anonymous is fine) to add a comment.