[antlr-interest] ANTLR v3.3 infinite loop

Rene Vestergaard vester at jaist.ac.jp
Thu Dec 2 02:21:48 PST 2010


After figuring out how to have a closer look at what ANTLR does, I can 
confirm that I did, indeed, run into the removed-failsafe issue that 
Terence references, and that's documented in the release notes for 3.3.

I fixed it by restructuring the syntax.

Cheers, and thanks,
Rene

On 12/02/2010 09:00 AM, Terence Parr wrote:
> make that -Xwatchconversion
> Ter
> On Dec 1, 2010, at 8:02 AM, Terence Parr wrote:
>
>> hi. please turn on -Xwatchdfaconversion and see which decision kills it. this is rare but not impossible.  Then, add backtrack=true and k=1 options to that decision to resolve.  or restructure that decision.
>>
>> Please report back on success.
>>
>> Ter
>>
>> On Dec 1, 2010, at 5:16 AM, Rene Vestergaard wrote:
>>
>>> Fellow ANTLRs,
>>>
>>> My biggest .g file (~850 lines) appears to send 3.3 into an infinite
>>> loop (>10mins) that keeps allocating heap space (>3GBs).
>>>
>>> On 3.2, the same task takes a few seconds and around 100MB.
>>>
>>> Any advice on how to pinpoint the problem?
>>>
>>> Cheers,
>>> Rene
>>>
>>> List: http://www.antlr.org/mailman/listinfo/antlr-interest
>>> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>>
>>
>> List: http://www.antlr.org/mailman/listinfo/antlr-interest
>> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>


More information about the antlr-interest mailing list