Overview
| Artifact ID: | 83769b4237450f38f52282dd243bc67d7d205530 |
|---|---|
| Ticket: | 1082283fffffffffffffffffffffffffffffffff
tcl8.4 segfaults running on linux-2.6 with SMP machines |
| User & Date: | vasiljevic on 2005-05-31 14:29:25 |
Changes
- icomment:
Logged In: YES user_id=95086 I'm not 100% sure if this is going to fix the problem but Joe is right about the notifier thread termination. It is more clean to join the exiting notifier thread. There is an ever-lasting problem with proper termination of Tcl shell process with threads enabled. If you just exit() the process *while* there are still some threads running, you might get a core. This is not only related to the notifier thread but for threads in general. The reason is in the Tcl library design and has been observed and reported several times already (Bug #597575). The problem is not easy to solve but we can certainly close this subtle race condition by joining the notifier thread. I will add this into both core-8-4-branch and head branch today and the poster of the bug-ticket should try to reproduce the problem, if possible, as I do not have MP-linux box here. I have MP-Darwin and MP-Solaris boxes and I've not observed any problem there, provided all threads have been terminated before the exit() is called. I will leave this ticket open after applying the changes until we prove it solves the issue or not.
- login: "vasiljevic"
- mimetype: "text/plain"
- username: "vasiljevic"