On Wed, 5 Sep 2001, Doug MacEachern wrote:

> On Thu, 6 Sep 2001, Stas Bekman wrote:
>
> > so there is no way to trap such SEGV? I wanted to work on automatic SEGV
> > trapping and automatically producing the trace, I thought that was a good
> > example to work with.
>
> not with a Perl signal handler.  however, you can install a C signal
> handler and print out PL_curcop->cop_line, PL_curcop->cop_file to report
> the linenumber:file in the Perl core where the segv happened.
> should be possible to write a C version of caller() too.

cool. I'm not interested in perl trace (it was just an example), i want to
catch segv, fire gdb and get the bt trace, and get the email report
without user doing anything at all.


_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to