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

Tony Mountifield tony at softins.clara.co.uk
Thu Nov 9 07:44:03 MST 2006


In article <200611090753.36164.tilghman at mail.jeffandtilghman.com>,
Tilghman Lesher <tilghman at mail.jeffandtilghman.com> wrote:
> 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.

Thanks - that could well be useful. However, it doesn't appear to be in 1.2.
Certainly a cool tool for the future though.

Cheers
Tony
-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org


More information about the asterisk-dev mailing list