Issue #3702 has been updated by Tomasz Pajor.


Sometimes instead of getting segmentation fault I get this exception:

./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb  ./tool/generic_erb.rb -c -o encdb.h ./template/encdb.h.tmpl ./enc enc
/srv/ruby/c/ruby1.9.1_1.9.1.430/lib/optparse.rb:1258:in `catch': stack level too deep (SystemStackError)
        from /srv/ruby/c/ruby1.9.1_1.9.1.430/lib/optparse.rb:1258:in `parse_in_order'
        from /srv/ruby/c/ruby1.9.1_1.9.1.430/lib/optparse.rb:1252:in `order!'
        from ./tool/generic_erb.rb:12:in `block in <main>'
        from /srv/ruby/c/ruby1.9.1_1.9.1.430/lib/optparse.rb:793:in `initialize'
        from ./tool/generic_erb.rb:8:in `new'
        from ./tool/generic_erb.rb:8:in `<main>'
make[1]: *** [encdb.h] Error 1
make[1]: Leaving directory `/srv/ruby/c/ruby1.9.1_1.9.1.430'
make: *** [debian/stamp-makefile-build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
----------------------------------------
http://redmine.ruby-lang.org/issues/show/3702

----------------------------------------
http://redmine.ruby-lang.org