Bug #3742
closedfailed to allocate memory: /^()(?>\g<1>)*$/ on x64-mswin64
Description
=begin
http://redmine.ruby-lang.org/issues/show/3459 の続きです。
SEGVするのはr29074で修正していただいたので、そもそもの原因であるメモリ確保失敗のチケットを作っておきます。
Z:\trunk\build>nmake test-all TESTS=ruby/test_regexp.rb
Microsoft(R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.
.\ruby.exe -I../lib -I".ext/x64-mswin64_90" "../tool/runruby.rb" --extou
t=".ext" -- "../test/runner.rb" ruby/test_regexp.rb
Loaded suite ../test/runner
Started
...........F..E.....................................................
Finished in 3.292000 seconds.
-
Failure:
test_dup_warn(TestRegexp) [Z:/trunk/test/ruby/test_regexp.rb:828]:
<[]> expected but was
<["internal:gem_prelude:50: warning: assigned but unused variable - paths",
"internal:gem_prelude:182: warning: assigned but unused variable - path",
"internal:gem_prelude:177: warning: assigned but unused variable - installed_
path",
"internal:gem_prelude:122: warning: assigned but unused variable - verbose",
"internal:gem_prelude:122: warning: assigned but unused variable - debug",
"internal:gem_prelude:232: warning: assigned but unused variable - e",
"internal:lib/rubygems/defaults:54: warning: assigned but unused variable - e
xec_format",
"internal:lib/rubygems/custom_require:30: warning: assigned but unused variab
le - load_error"]>. -
Error:
test_exec(TestRegexp):
RegexpError: failed to allocate memory: /^()(?>\g<1>)*$/
Z:/trunk/test/ruby/test_regexp.rb:500:inblock in check' Z:/trunk/test/ruby/test_regexp.rb:498:in
each'
Z:/trunk/test/ruby/test_regexp.rb:498:incheck' Z:/trunk/test/ruby/test_regexp.rb:569:in
test_exec'
../test/runner.rb:26:in `'
68 tests, 1005 assertions, 1 failures, 1 errors, 0 skips
Test run options: --seed 9589
NMAKE : fatal error U1077: '.\ruby.exe' : リターン コード '0x2'
Stop.
=end