Bug #3712: SEGV fails to produce stack dump / backtrace in debug build http://redmine.ruby-lang.org/issues/show/3712 Author: Peter Weldon Status: Open, Priority: Normal Target version: 1.9.x ruby -v: ruby 1.9.3dev (2010-08-17 trunk 29019) [i386-mswin32_100] Building mswin with /Od /MDd causes stack dumps to stop working. See 5) below. Loaded suite test/ruby/test_rubyoptions Started .....F.......FF..F....F........... Finished in 6.700383 seconds. 1) Failure: test_debug(TestRubyOptions) [test/ruby/test_rubyoptions.rb:60]: <[]> expected but was <["Exception `LoadError' at <internal:enc/prelude>:3 - cannot load such file -- enc/encdb.so", "Exception `LoadError' at <internal:enc/prelude>:3 - cannot load such file -- enc/trans/transdb.so"]>. 2) Failure: test_kanji(TestRubyOptions) [test/ruby/test_rubyoptions.rb:106]: <[]> expected but was <["C:/Users/Peter/Ruby/github/rubyinstaller/sandbox/build1/ruby.exe: unknown encoding name - EUC-JP (RuntimeError)"]>. 3) Failure: test_notfound(TestRubyOptions) [test/ruby/test_rubyoptions.rb:326]: [ruby-core:23717]. Expected /.* -- \.\/notexist\.rb \(LoadError\)/ to match "<internal:lib/rubygems/custom_require>:29:in `require': cannot load such file -- rubygems (LoadError)\n\tfrom <internal:lib/rubygems/custom_require>:29:in `require'\n\tfrom <internal:gem_prelude>:171:in `load_full_rubygems_library'\n\tfrom <internal:gem_prelude>:221:in `try_activate'\n\tfrom <internal:lib/rubygems/custom_require>:32:in `rescue in require'\n\tfrom <internal:lib/rubygems/custom_require>:29:in `require'\n". 4) Failure: test_require(TestRubyOptions) [test/ruby/test_rubyoptions.rb:125]: <["1"]> expected but was <[]>. 5) Failure: test_segv_test(TestRubyOptions) [test/ruby/test_rubyoptions.rb:377]: Expected /\A -e:(?:1:)?\s\[BUG\]\sSegmentation\sfault\n ruby\ 1\.9\.3dev\ \(2010\-08\-17\ trunk\ 29019\)\ \[i386\-mswin32_100\]\n\n --\scontrol\sframe\s----------\n (?:c:.*\n)* ---------------------------\n (?: --\sRuby\slevel\sbacktrace\sinformation\s----------------------------------------\n -e:1:in\s\`<main>\'\n -e:1:in\s\`kill\'\n )? \n (?: --\sC\slevel\sbacktrace\sinformation\s-------------------------------------------\n (?:(?:.*\s)?\[0x\h+\]\n)*\n )? \[NOTE\]\n You\smay\shave\sencountered\sa\sbug\sin\sthe\sRuby\sinterpreter\sor\sextension\slibraries.\n Bug\sreports\sare\swelcome.\n For\sdetails:\shttp:\/\/www.ruby-lang.org\/bugreport.html\n \n (?:[\s\w\.']*) \z /x to match "-e:1: [BUG] Segmentation fault\nruby 1.9.3dev (2010-08-17 trunk 29019) [i386-mswin32_100]\n\n-- control frame ----------\n". 34 tests, 162 assertions, 5 failures, 0 errors, 0 skips Test run options: --seed 6131 ---------------------------------------- http://redmine.ruby-lang.org