Bug #3742: failed to allocate memory: /^()(?>\g<1>)*$/ on x64-mswin64
http://redmine.ruby-lang.org/issues/show/3742

起票者: shintaro kuwamoto
ステータス: Open, 優先度: Normal
カテゴリ: core, Target version: 1.9.3
ruby -v: ruby 1.9.3dev (2010-08-25 trunk 29091) [x64-mswin64_90]

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.

  1) 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"]>.

  2) Error:
test_exec(TestRegexp):
RegexpError: failed to allocate memory: /^()(?>\g<1>)*$/
    Z:/trunk/test/ruby/test_regexp.rb:500:in `block in check'
    Z:/trunk/test/ruby/test_regexp.rb:498:in `each'
    Z:/trunk/test/ruby/test_regexp.rb:498:in `check'
    Z:/trunk/test/ruby/test_regexp.rb:569:in `test_exec'
    ../test/runner.rb:26:in `<main>'

68 tests, 1005 assertions, 1 failures, 1 errors, 0 skips

Test run options: --seed 9589
NMAKE : fatal error U1077: '.\ruby.exe' : リターン コード '0x2'
Stop.


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