[asterisk-dev] Re: Weird errors returned to chan_zap by zaptel

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Thu Nov 9 06:53:35 MST 2006


On Thursday 09 November 2006 06:10, Tony Mountifield wrote:
> Is it possible from within a function to get a backtrace of where it was
> called from? I would do this if I determined I was closing an unexpected
> fd. Or perhaps I just do a crash and use gdb on the core dump.
> Unfortunately, people are trying to use this system in beta testing (and I
> need them to, to provoke the error), and they are 8 hours ahead of me in
> timezone!

If you're running on Linux, ast_backtrace() will allow you to obtain a stack
backtrace of your current running location.  You'll need to have 
STACK_BACKTRACES defined for main/logger.c.  I'll look at getting
menuselect to properly generate that define in the next couple of days.

-- 
Tilghman


More information about the asterisk-dev mailing list