[asterisk-dev] Depth of macros limited to 7 in app_macro.c

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Fri Mar 31 07:09:41 MST 2006


On Friday 31 March 2006 05:34, Ramon Peek wrote:
> So why 7, it's so low!
>
> Is there anybody else with an option about this issue?
>
> CODE in app_macro.c :
>
>         if (depth >= 7) {
>                 ast_log(LOG_ERROR, "Macro():  possible infinite
> loop detected.  Returning early.\n");
>                 LOCAL_USER_REMOVE(u);
>                 return 0;

Because Macro runs out of stack space after that point and causes
a segfault crash.

-- 
Tilghman



More information about the asterisk-dev mailing list