I narrowed this nagging server crash bug down today to a test case:

  ns_share sharevar
  set sharevar(1) 1
  if {[info exists sharevar(2)]} {
  }
  ns_return 200 text/plain "hi"

Putting this TCL script in pageroot with no other modules loaded and
hitting it at a rate of about 800 times per second from another server
using ns_geturl in 25 threads, both machines dual processors, will
trigger the crash in a few seconds.  It may be repeatable using just
one machine; I didn't try that.

Removing the subscript from the "info exists" variable prevents the
crash.

I'm no TCL (7.6) internals expert...  Tips on where to look to fix this
are most welcome.

TIA,
Jim

Reply via email to