Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Matts (1087)

  (email not shown publicly)

I work for MessageLabs [] in Toronto, ON, Canada. I write spam filters, MTA software, high performance network software, string matching algorithms, and other cool stuff mostly in Perl and C.

Journal of Matts (1087)

Wednesday January 08, 2003
03:55 PM

Carp and Confess in XS

[ #9850 ]

XS supports warn() and croak() using varargs style parameters (not a lot of XS newbies know that, but it's very useful). But XS doesn't support carp() and confess(), because getting backtraces in C has previously only been the realm of the debugger.

However I just discovered the glibc backtrace functions. Very interesting indeed.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • I would imagine that they're pretty non portable, possibly even amongst different Linux architectures.

    Use 'em by all means, but make sure they're only turned on in your development mode...