Try changing 'puts' to 'ns_puts'. You're in a threaded environment, and ns_puts knows which conn it should output to, whereas puts does not. If you want to debug, then use
ns_log notice "my text string" and go look at the server.log file. /s. -----Original Message----- From: AOLserver Discussion [mailto:AOLSERVER@;LISTSERV.AOL.COM] On Behalf Of Seth Fitzsimmons Sent: Wednesday, November 13, 2002 10:55 AM To: [EMAIL PROTECTED] Subject: [AOLSERVER] problems Hi. I've been experiencing a couple of problems with AOLServer. Running apachebench with a concurrency of 2 or more would eventually cause AOLServer to crash on this script: <% cd /usr/local/aol32/servers/server1/pages/newspapers/cache/169/ puts [glob -nocomplain "1_*.js"] %> Strangely, when I shorten the directory that it is cd'ing to, it doesn't crash. Also, when running this script under load, AOLServer crashes with the following tcl error (which appears in generic/tclObj.c): <% cd /usr/local/aol32/servers/server1/pages/newspapers/cache/169/ puts [pwd] %> UpdateStringProc should not be invoked for type cmdName I'm also getting the following error in production (can't reliably reproduce it) (though I'm not sure that the two are related, as the first stopped when I rewrote the relevant code to avoid use of glob (though if 'cd' is the problem...)): alloc: invalid block: 0x40100d94: 3c 40 0 Sometimes it will run for hours without crashing; other times it will crash twice in a 5-minute period (all while under fairly significant load). It's almost always the same memory address, if that provides any additional insight. Thanks for any ideas you can provide. seth
