Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c629cad7ac7731d7fab4bf4f3af0f52de60ae343
Ticket: 3448556fffffffffffffffffffffffffffffffff
Segmentation fault on exit in tsv
User & Date: tombert on 2011-12-05 02:05:34
Changes

  1. icomment:
    A bit more on the tcl what I'am doing:
    It's a rather simple procedure that calls itself after a random timeout, the first line is accessing the tsv "host" variable which you can see in the segmentation fault. So I've got the feeling that the "after" is called during or after the thread has been destroyed. Hope this helps a bit.
    Thx for your support.
    
    
    proc pingCheckCycle {tid cbObj} {
        set newState [isping [tsv::get host [thread::id]]]
        if {$newState != [tsv::get pingStatus [thread::id]]} {
            tsv::set pingStatus [thread::id] $newState
            thread::send -async $tid [list $cbObj callCallback -type onpingcb -map [list %ping $newState]]
        }
        after [expr {entier(3000 + rand()*3000)}] [list pingCheckCycle $tid $cbObj]
    }
    
    
    
    
  2. login: "tombert"
  3. mimetype: "text/plain"
  4. username: "tombert"