in reply to mod_perl debugging help

with intermitant 500's cropping up ... but im getting nothing in the error log whatsoever

Sounds to me like someone's either supressing STDERR, or the error log isn't where you think it is. If someone's supressing STDERR, that's a bad thing, as it could be masking other problems ... but the webserver should have still reported _something_ if it threw a 500

Most likely is that the server is set up using virtual hosts, or something similar, and is writing the logs to some other place -- not all errors from a given server have to go to one file. (or, I've also run into a problem where I was trying to debug on the wrong system because the client machine had an entry in /etc/hosts to force me to use an alternate server)

Find where the error is being sent to, and look at it, and all should be good. Most likely for a 500, something's being sent to STDOUT before the HTTP headers, and once you can figure out what's being sent, you can find why it's being sent.

It's possible that the server might not log an error if the application generated a 500 header -- but why someone would do that, I have no idea.

Replies are listed 'Best First'.
Re^2: mod_perl debugging help
by MiggyMan (Sexton) on Jun 22, 2006 at 19:35 UTC
    Badly phrased post on my count, absolutley nothing was an overstatement, I am getting the undefined subroutine message for the handler subroutine, however I get nothing else besides that which isnt really super usefull.
        [error] Undefined subroutine &FormGenerator::handler called


        Originaly I did think this was a globals issue, it seems to be the most common cause of it, however i've gone through and removed any globals (running in strict).

        As for the code, I know it's not terribly helpfull but I cant really put it up, a) it's work b) it's about 680 lines :)

        What I really need at this point is new ideas on how to actualy locate the bug, much easier to fix when I actualy know what im looking for :)