Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-09-29
03:23 • Ticket [439581ffff] crash when application terminates status still Closed wi... artifact: b14a8e16f0 user: andreas_kupries
2001-09-14
06:25 • Closed ticket [439581ffff]. artifact: b8b00503ad user: andreas_kupries
2001-09-08
03:45 • Ticket [439581ffff]: 6 changes artifact: 9aa8375397 user: andreas_kupries
2001-08-25
02:52 • Ticket [439581ffff]: 4 changes artifact: 84c0eb71ba user: andreas_kupries
02:09 • Ticket [439581ffff]: 4 changes artifact: daf7759331 user: andreas_kupries
02:09 • Add attachment scripts.tar.gz to ticket [439581ffff] artifact: 008e005984 user: andreas_kupries
2001-08-23
05:51 • Ticket [439581ffff] crash when application terminates status still Open with... artifact: 0c1c81df41 user: andreas_kupries
2001-07-09
01:33 • New ticket [439581ffff]. artifact: 297d19893d user: fringe

crash when application terminates

Closed / Works For Me439581ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2001-07-09 01:33:17
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 !!
andreas_kupries Ticket [439581ffff]: 1 change [History diff]2001-08-23 05:51:45
andreas_kupriesplain2001-08-25 02:09:04
File Added - 9948: scripts.tar.gz
andreas_kupriesplain2001-08-25 02:52:22
Logged In: YES 
user_id=75003

I tried this using the newest sources from the
"core-8-3-1-branch" branch from the CVS at
SourceForge. This is tcl 8.3.3 + a number of
bugfixes. I used the head revision of Thread
(2.1.1) from the CVS at SourceForge. The
machine was a Sun running Solaris 2.6.

The bug did not happen. Please retest on your
system using the sources of Tcl and Thread
described above to see if it the change in the
OS or in Tcl/Thread which made the bug go away.

Please configure and compile with --enable-symbols
so that symbol information is available. If the
bug still happens a stack trace would extremely
valuable in diagnosing the problem.
andreas_kupriesplain2001-09-08 03:45:43
Logged In: YES 
user_id=75003

Priority down as I get no response after two weeks since 
the last comment.
andreas_kupries Closed ticket [439581ffff]. [History diff]2001-09-14 06:25:50
andreas_kupries Ticket [439581ffff]: 3 changes [History diff]2001-09-29 03:23:55
Log in (anonymous is fine) to add a comment.

Attachments: