Just an update to this, I've created a ticket for this problem, and attached a patch which seems to be working in my local set-up.<div><a href="http://trac.osgeo.org/gdal/ticket/4262">http://trac.osgeo.org/gdal/ticket/4262</a></div>
<div><br></div><div>Due to the lack of my knowledge about bison let me know if one have a more appropriate solution to this problem.</div><div><br></div><div>Any objection to update such change in the stable branch?</div>
<div><br></div><div>Best regards,</div><div><br></div><div>Tamas</div><div><br></div><div><br><br><div class="gmail_quote">2011/9/25 Tamas Szekeres <span dir="ltr"><<a href="mailto:szekerest@gmail.com">szekerest@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Devs,<div><br></div><div>I've run into a "memory exhausted" error in the OGR SQL parser when the token count exceeds 200. This is related to the YYINITDEPTH setting in swq_parser.cpp</div>
<div>Does anyone know how to enable the built in stack extension mechanism which can automatically extend the stack size up to YYMAXDEPTH (10000)?</div>
<div><br></div><div>Best regards,</div><div><br></div><font color="#888888"><div>Tamas</div>
</font></blockquote></div><br></div>