Re: How to get stack info in XS die handler

2008-06-06 Thread Tom
On Jun 5, 4:49 pm, [EMAIL PROTECTED] (Marvin Humphrey) wrote: > On Jun 5, 2008, at 5:21 AM, Tom wrote: > > > How will I find ou where the problem occured inside a die handler in > > XS? Something like call stack when the exception occured. > > I got the Perl stack into error messages by wrapping a

Re: How to get stack info in XS die handler

2008-06-06 Thread muppet
Tom wrote: > Thanks for that. But that is not what I am looking for really. I > already have a die handler which traps any perl errors. I would like > to access the stack trace from that C code and write it to log. You mean you want a C stack when you crash in XS? Perl doesn't know how to do tha