Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: eeec5c53550df76df5de6d593f9319936058eedf
Ticket: 593810ffffffffffffffffffffffffffffffffff
Channel Transfer crashes
User & Date: andreas_kupries on 2002-08-20 09:33:08
Changes

  1. icomment:
    Logged In: YES 
    user_id=75003
    
    Tried to replicate on Linux/x86. Used the smtp port instead
    of 35000 to ensure that the socket truly exists. May script
    is:
    set s [socket localhost smtp] ; # connect to smtp mail
    package require Thread
    
    puts [info loaded]
    puts [pwd]
    
    set t [::thread::create]
    
    ::thread::transfer $t $s
    ::thread::send $t "puts $s line; flush $s"
    
    I.e. this is not interactive, but executed via
    
    tclsh ./testscript
    
    No problem. Then I added the following lines to the script,
    at the end:
    
    after 5000 "::thread::send $t exit"
    vwait forever
    
    Now every once in a while the script does abort, the error
    message is:
    
    Tcl_Release couldn't find reference for 0x80533f8
    Aborted (core dumped)
    
    
    In other words, a panice somewhere. The stack-trace, see
    below indicates the handling of the timer event:
    
    #0  0x4014b7b1 in kill () from /lib/libc.so.6
    #1  0x400f5e5e in pthread_kill () from /lib/libpthread.so.0
    #2  0x400f6339 in raise () from /lib/libpthread.so.0
    #3  0x4014cc11 in abort () from /lib/libc.so.6
    #4  0x4009f92e in Tcl_PanicVA (format=0x400d2d80
    "Tcl_Release couldn't find reference for 0x%x",
    argList=0xbffff3b8)
        at ../../tcl/unix/../generic/tclPanic.c:106
    #5  0x4009f967 in Tcl_Panic (arg1=0x400d2d80 "Tcl_Release
    couldn't find reference for 0x%x") at
    ../../tcl/unix/../generic/tclPanic.c:134
    #6  0x400a897b in Tcl_Release (clientData=0x80533f8) at
    ../../tcl/unix/../generic/tclPreserve.c:255
    #7  0x400b2ff5 in AfterProc (clientData=0x80a95e0) at
    ../../tcl/unix/../generic/tclTimer.c:1054
    #8  0x400b2473 in TimerHandlerEventProc (evPtr=0x80a9660,
    flags=-3) at ../../tcl/unix/../generic/tclTimer.c:543
    #9  0x4009ce21 in Tcl_ServiceEvent (flags=-3) at
    ../../tcl/unix/../generic/tclNotify.c:618
    #10 0x4009d2a1 in Tcl_DoOneEvent (flags=-3) at
    ../../tcl/unix/../generic/tclNotify.c:921
    #11 0x4006a5ec in Tcl_VwaitObjCmd (clientData=0x0,
    interp=0x80533f8, objc=2, objv=0xbffff5b8) at
    ../../tcl/unix/../generic/tclEvent.c:990
    #12 0x4003b90c in TclEvalObjvInternal (interp=0x80533f8,
    objc=2, objv=0xbffff5b8, command=0x8052aea "\nvwait
    forever\n", length=15, flags=0)
        at ../../tcl/unix/../generic/tclBasic.c:3033
    #13 0x4003c5c0 in Tcl_EvalEx (interp=0x80533f8, 
        script=0x80529f8 "\n\nset s [socket localhost smtp] ; #
    connect to smtp mail\npackage require Thread\n\nputs [info
    loaded]\nputs [pwd]\n\nset t
    [::thread::create]\n\n::thread::transfer $t
    $s\n::thread::send $t \"puts $s line; flus"...,
    numBytes=257, flags=0)
        at ../../tcl/unix/../generic/tclBasic.c:3631
    #14 0x40090044 in Tcl_FSEvalFile (interp=0x80533f8,
    pathPtr=0x80589e8) at
    ../../tcl/unix/../generic/tclIOUtil.c:1371
    #15 0x40097e83 in Tcl_Main (argc=1, argv=0xbffffaf8,
    appInitProc=0x80486d8 <Tcl_AppInit>) at
    ../../tcl/unix/../generic/tclMain.c:292
    #16 0x080486cc in main (argc=2, argv=0xbffffaf4) at
    ../../tcl/unix/../unix/tclAppInit.c:90
    #17 0x4013b17f in __libc_start_main () from /lib/libc.so.6
    
    
    
  2. login: "andreas_kupries"
  3. mimetype: "text/plain"
  4. username: "andreas_kupries"