I have a strange issue that suddenly appeared on a stable system. I'm looking for some help in how to approach debugging this

I have a LAMP system that has been up for many months. Apache 2.0.64, perl 5.8.8

The system just started generating errors this evening. The error is:

Undefined subroutine &ModPerl::ROOT::ModPerl::RegistryBB::www_vhosts_w +ineinsight_2ecom_wineinsight_listaction_2eajax_2empl::authenticate ca +lled at /www/vhosts/wineinsight.com/wineinsight/listaction.ajax.mpl l +ine 67. at

listaction.ajax.mpl contains:

... 28 use yyauthenticate; ... 67 authenticate();

And yyauthenticate.pm contains the authenticate subroutine in an unnamed package (loads into main)

Again all has worked just fine with this code until this evening. The behavior is that some requests work, and some generate the error. I'm not certain if only some PIDs always generating the error and other PIDs always work. Restarting Apache doesn't change the behavior. Any ideas on how to approach this issue?

Some other info from the http.conf:

<Files ~ "\.mpl$"> Header set Cache-Control "max-age=0, no-cache, must-revalidate" SetHandler perl-script PerlResponseHandler ModPerl::RegistryBB PerlOptions +ParseHeaders Options +ExecCGI Order deny,allow </Files>

I have a startup.pl with the following

use ModPerl::RegistryBB (); ...

In reply to Strange and sudden mod_perl error: undefined subroutine by lschult2

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.