John Harragin
2003-Nov-10 12:36 UTC
[Asterisk-Users] Periodic crash - avoid this syntax...
I have a machine that crashes every so often. I believe the following macro is responsible (gotoif,$[${ARG3}] in particular). The macro works as expected: if ARG3 is defined - hop over assignment. But my hunch is that it gradually chews up memory. ; This macro is puts voicemail in an alternate mailbox (if ARG3 defined - otherwise Mailbox matches extension). [macro-stdexten] exten => s,1,gotoif,$[${ARG3}]?s|3:s|2 exten => s,2,SetVar,"ARG3=${MACRO_EXTEN}" exten => s,3,Dial(Zap/${ARG1},${ARG2}) exten => s,4,Voicemail2,u${ARG3} exten => s,5,Goto(default,s,2) exten => s,104,Voicemail2,b${ARG3} exten => s,105,Goto(default,s,2) If ARG3 undefined the following message is generated in the message file... Nov 10 09:43:48 WARNING[1217602880]: File ast_expr.y, Line 346 (ast_yyerror): ast_yyerror(): syntax error: parse error I'm investigating this now. Is gdb the best (or easiest) tool for analyzing dumps? John This e-mail was scanned and found clean by Monroe-Woodbury CSD Antivirus.
Chris Albertson
2003-Nov-10 12:59 UTC
[Asterisk-Users] Periodic crash - avoid this syntax...
--- John Harragin <jharragi@mw.k12.ny.us> wrote:> I have a machine that crashes every so often. I believe the following<snip>> > I'm investigating this now. Is gdb the best (or easiest) tool for > analyzing > dumps?Yes, likely all you need is to issue one "bt" (backtrace) command to find the problem. but I'm a big fan of "ddd" for more complex debugging, looking at the content of data structures and the like. DDD is a graphical point and click front end for gdb. It comes with many Linux distributions or if not get it at http://www.gnu.org/directory/GNU/ddd.html> > John > > > This e-mail was scanned and found clean by Monroe-Woodbury CSD > Antivirus. > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users====Chris Albertson Home: 310-376-1029 chrisalbertson90278@yahoo.com Cell: 310-990-7550 Office: 310-336-5189 Christopher.J.Albertson@aero.org KG6OMK __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree