[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: apache mod_perl aborted a process within a eval block without completing it


Title: Re: apache mod_perl aborted a process within a eval block without completing it
Perrin:
 
I think there must be something made the apache or mod_perl very unhappy so that it killed the process in the middle.....
 
 
Thanks
Ron
 


From: Ronald Dai. [mailto:suppressed
Sent: Fri 12/7/2007 4:45 PM
To: Perrin Harkins
Cc: suppressed
Subject: RE: apache mod_perl aborted a process within a eval block without completing it

eval could not catch exit() calls but exit() calls within eval actually won't have the process exit...I just tested it. I am not aware of any $SIG{__DIE__} handler....since in most cases the eval competed normally, I kind suspect that it is mod_perl or apache that is doing something...
 
Thanks
Ron


From: suppressed on behalf of Perrin Harkins
Sent: Fri 12/7/2007 4:41 PM
To: Ronald Dai.
Cc: suppressed
Subject: Re: apache mod_perl aborted a process within a eval block without completing it

On Dec 7, 2007 3:51 PM, Ronald Dai. <suppressed> wrote:
> Could someone help me to explain under what circumstances, the mod_perl or
> apache would abort a process within an eval block without letting the code
> complete the block?

A segfault or an exit().

Your perl is pretty old, so it's possible you're seeing some
long-ago-fixed bug here.  But eval can't catch segfaults or exit()
calls in any perl code.  You could also have a $SIG{__DIE__} handler
somewhere that is intercepting the error and not returning.

- Perrin


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.