Overview
| Artifact ID: | 297d19893de0ddc245c0d4a2ab89f86ace44a2eb |
|---|---|
| Ticket: | 439581ffffffffffffffffffffffffffffffffff
crash when application terminates |
| User & Date: | fringe on 2001-07-09 01:33:17 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
Name: Sangho Park Extensions: Thread 2.1 CustomShell: Comments: tcl 8.3.3 compiled on CC with threads enabled. Solaris 2.5.1 ObservedBehavior: Below I include a thread script which causes a crash when application terminate. It crash 1~2 out of 20 executions. Error message is various : "Segment Fault", "Tcl_Release couldn't find reference for 0xedfb8" "Bus Error". ReproducibleScript: -------- run.csh ------ #!/bin/csh while ( 1 ) main_thread.tcl end ---- main_thread.tcl ---- #!/usr/local/bin/tclsh package require Thread set total_done 10 set current 0 proc returnProc {thread_result} { global total_done current incr current -1 } for { set i 0 } { $i < $total_done} { incr i } { while { $current == 4 } { after 10 ; update } set childid1 [thread::create {source child_thread.tcl; thread::wait}] incr current thread::send $childid1 "set b 100" thread::send -async $childid1 "run_child [thread::id]" } while { [llength [thread::names]] > 1 } { after 10 ; update } ---- child_thread.tcl ---- proc run_child { main_id } { thread::send $main_id "returnProc [thread::id]" thread::exit } DesiredBehavior: It should not happen !! - foundin changed to: "obsolete: 8.3.3"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "fringe"
- subsystem changed to: "80. Thread Package"
- title changed to: "crash when application terminates"
- type changed to: "Bug"