Thanks for the info on the signal handler; there wasn't much documentation where I was looking on that topic. Unfortunately, I was looking for something that would let me include local variables, and the "stack trace" that Carp is supposed to show is empty data--in fact, when I use the Carp version, I get no warnings at all.
I guess I need to use lots of "if defined", or replace undefined with "NULL" in my extraction...