Bug #6535


[MinGW] Unexpected close program dialog for TestRubyOptions#test_segv_test

Added by luislavena (Luis Lavena) almost 10 years ago. Updated almost 10 years ago.

Target version:
ruby -v:
ruby 2.0.0dev (2012-06-02 trunk 35867) [i386-mingw32]



While running tests for MinGW-based build of trunk, I've found the mentioned test (test_segv_test) always blocks test execution.

The command issue to trigger this was:

make test-all TESTS="-q -v ruby/test_rubyoptions.rb -n test_segv_test"

Which triggers a Windows dialog indicating the failure (see attached)

And the following backtrace:

IOError: stream closed
C:/Users/Worker/Code/ruby/ruby/test/ruby/envutil.rb:60:in read' C:/Users/Worker/Code/ruby/ruby/test/ruby/envutil.rb:60:in block in invoke_ruby'

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

Is this issue also showing on mswin builds? This seems to be a blocker for running continuous integration tests as the crash dialog needs to be closed manually.

Thank you.



crash.png (15.6 KB) crash.png luislavena (Luis Lavena), 06/03/2012 01:28 AM

Related issues 2 (0 open2 closed)

Related to Backport193 - Backport #6640: Backport fixes for [ruby-core:45389]: [MinGW] Unexpected close program dialog for TestRubyOptions#test_segv_testClosednaruse (Yui NARUSE)06/25/2012Actions
Related to Ruby master - Bug #13254: Dir.exist? などで「ディスクがありません」ダイアログが表示されるClosedActions

Updated by h.shirosaki (Hiroshi Shirosaki) almost 10 years ago

I saw similar blocking issues with the following tests while MinGW test-all, but mswin build doesn't have.

test_segv_test in ruby/test_rubyoptions.rb
test_require_invalid_shared_object in ruby/test_require.rb.
test_separate in test/testunit/test_parallel.rb

Modifying registry value as below works fine for me on Win7.

Modify ErrorMode value to 2.

The following command will complete with mingw build.
make test-all TESTS="-qv -j2"

Updated by usa (Usaku NAKAMURA) almost 10 years ago

  • Assignee changed from usa (Usaku NAKAMURA) to nobu (Nobuyoshi Nakada)

So, this is mingw issue, I guess.

Actions #3

Updated by nobu (Nobuyoshi Nakada) almost 10 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r35913.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

no windows dialog

  • win32/win32.c (rb_w32_sysinit): let the system not display the
    critical-error-handler message box and the Windows Error Reporting
    dialog. [ruby-core:45389] [Bug #6535]
Actions #4

Updated by nobu (Nobuyoshi Nakada) about 5 years ago

  • Related to Bug #13254: Dir.exist? などで「ディスクがありません」ダイアログが表示される added

Also available in: Atom PDF