[ragel-users] terminate called after throwing an instance of 'std::bad_alloc'

Adrian Thurston thurston at complang.org
Sat Apr 18 17:03:51 UTC 2009

Do you mind sharing the grammar with me off list? I'd like to track down 
the issue.


Iñaki Baz Castillo wrote:
> 2009/4/14 Iñaki Baz Castillo <ibc at aliax.net>:
>> 2009/4/14 Adrian Thurston <thurston at complang.org>:
>>> Try using -T0. My guess is that the alphabet size is large and the
>>> allocation of tables is eating up too much memory.
>> If so, is it a bug or a problem in my grammar?
>> ~# ragel -T0 -R sip_parser.rl -o sip_parser.rb
>> ragel: rubycodegen.cpp:372: std::string RubyCodeGen::WIDE_ALPH_TYPE():
>> Assertion `wideType != 0' failed.
> PD: Note that it worked fine in 32 bits (same grammar, some Ragel version).

More information about the ragel-users mailing list