Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 6035 invoked by uid 500); 4 Jul 2002 10:46:54 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 6024 invoked from network); 4 Jul 2002 10:46:54 -0000 Received: from web14810.mail.yahoo.com (216.136.224.231) by daedalus.apache.org with SMTP; 4 Jul 2002 10:46:54 -0000 Message-ID: <20020704104654.7375.qmail@web14810.mail.yahoo.com> Received: from [194.217.177.20] by web14810.mail.yahoo.com via HTTP; Thu, 04 Jul 2002 11:46:54 BST Date: Thu, 4 Jul 2002 11:46:54 +0100 (BST) From: =?iso-8859-1?q?Jason=20Wilkes?= Subject: Odd Response codes in access_log when cgi script crashes To: users@httpd.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Folks, I have a (perl) cgi script which crashes under very strange circumtances. Whats more curious is that when it crashes the response code "333" gets logged to the access log. Nothing is logged in the error_log. I've looked through the http rfc, and there is no response code 333 - so my first question is "is 333 a valid code, and if so what does it mean?" (The browser get an "internal server error screen" when the cgi crashes). BTW I'm using apache 1.3.26 / modperl 1-27 / mod-ssl-2.8.10 Secondly if any of you are happy to hypothesize over my "strange circumstances" here they are: - The perl script gets a session string from a cookie (using CGI.pm), and uses this to query a database for the user id (using DBI). The user id is then used to further query the database for selects, updates etc. The CGI script works perfectly for 10,000 users, except for one user that causes the internal server error (described above). I can see the script make the first call to the database, and then it crashes. The database call is happy, as the error rountine around the call is not triggered, and I can see the select in the db logs. If I run the script in debug mode, and fill in the arguments by hand, it all works okay. The users record in the database seems fine too. To add to the "strangeness" the user id for this particular user is 333. The same as the error code in the access_log - coincidence or not I'm not quite sure. Any thoughts would be appreciated - sorry the description was long on prose and short on code - but I know the script works, for the other 9,999 users. regards sendmailguru __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org