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

Iñaki Baz Castillo ibc at aliax.net
Tue Apr 14 08:42:05 UTC 2009


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.


> To confirm you can run:
>
> ragel -F -R -x sip_parser.rl > out.xml
> rlgen-ruby out.xml

After compiling Ragel 6.4 I have no rlgen-XXXX command.

-- 
Iñaki Baz Castillo
<ibc at aliax.net>




More information about the ragel-users mailing list