[Omaha.pm] Intermittent Perl error...

Dan Linder dan at linder.org
Fri Oct 29 08:11:11 PDT 2010


I've got a Perl CGI script that runs fine 99% of the time.  Occasionally
we'll get this error in the web browser:

Status: 500 Content-type: text/html
Software error:
Undefined subroutine &main::MySubroutine called at MyCGI.cgi line 123

The subroutine "MySubroutine" is defined in an included Perl module, and
just two lines before the script used another subroutine from the same perl
module.

I'm asking my server admin to send me the Apache log files (it's a remote
server I don't have access to) - is there anything else to look at?

This is either a RedHat or Solaris system - if we suspect RAM or CPU load
may be the root cause, what additional logging tools can I use to monitor
Apache and/or the Perl CGIs themselves?  If it's Solaris 10, I might have
him use some of the DTrace facilities, but unsure about similar tracing on
RedHat.

Thanks,
DanL

-- 
***************** ************* *********** ******* ***** *** **
"Quis custodiet ipsos custodes?"
    (Who can watch the watchmen?)
    -- from the Satires of Juvenal
"I do not fear computers, I fear the lack of them."
    -- Isaac Asimov (Author)
** *** ***** ******* *********** ************* *****************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/omaha-pm/attachments/20101029/f2175a5e/attachment.html>


More information about the Omaha-pm mailing list