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.
Use 'em by all means, but make sure they're only turned on in your development mode...
-Dom