Menu

#272 crash in tclinit.c:DeleteData()

aolserver_v45
open
nobody
5
2006-11-03
2006-11-03
No

for the Tcl end of this see

http://sourceforge.net/tracker/index.php?func=detail&atid=110894&aid=1582671&group_id=10894

I'll copy the relevant details here as well:

I am running Tcl 8.4.13 inside
AOLServer 4.5.0.
Linux redhat.home.jmsh.net 2.4.20-8 #1 Thu Mar 13
17:54:28 EST 2003 i686 i686 i386 GNU/Linux
actually this is REDHAT 9 - nice and old

My patch for Tcl is really just covering up the
problem. As far as I understand it, AOLServer sets up
dataPtr->cancel in GetData() and then destroys it in
DeleteData() (both functions in nsd/tclinit.c) but
these are called from different threads and as far as I
can see that is by design. Unfortunately the
Tcl_AsyncDelete() function (tcl/generic/tclAsync.c)
uses thread specific data to keep state in and
therefore assumes that the setup and destroy are called
from the same thread. At best, my patch for Tcl means
that the cleanup of whatever is in the cancel pointer
never occurs. At worst it is causing lockups and
crashes. I'm still debugging...

Thanks,
James

Discussion


Log in to post a comment.