expresspotato has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I'm having a slight problem with FCGI. Its difficult to debug when the error message is so nimble.
server "/usr/local/apache2/htdocs/bl/index.cove" (pid 14293) terminate +d by calling exit with status '255'
Not very helpful. The program has been FCGI compatible for a long time now and I don't know where exit is being called. Is there a way to get FCGI logging which line it exited on? The program is now 34,000 lines long and it really could be anywhere or anything. Look forward to hearing from you.

Replies are listed 'Best First'.
Re: FCGI Print line number where exited?
by BrowserUk (Patriarch) on Jul 27, 2010 at 22:59 UTC

    Try adding this at the top of the program:

    END{ warn join ' ', caller() }

    By judiciuos use of a loop and the argument to caller you could get a full traceback.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.