Project

General

Profile

Bug #13555

Disable TestTrace#test_trace_stackoverflow

Added by ko1 (Koichi Sasada) about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:81085]

Description

I'll disable TestTrace#test_trace_stackoverflow because this test stops sometimes on several machines.

My observation: during stackoverflow throw process, it get another stackoverflow and repeat it.

I'll simply remove it and remain the code here.

  def test_trace_stackoverflow
    assert_normal_exit("#{<<-"begin;"}\n#{<<~"end;"}", timeout: 60)
    begin;
      require 'timeout'
      require 'tracer'
      class HogeError < StandardError
        def to_s
          message.upcase        # disable tailcall optimization
        end
      end
      Tracer.stdout = open(IO::NULL, "w")
      begin
        Timeout.timeout(5) do
          Tracer.on
          HogeError.new.to_s
        end
      rescue Timeout::Error
        # ok. there are no SEGV or critical error
      rescue SystemStackError => e
        # ok.
      end
    end;
  end

Associated revisions

Revision 58647
Added by nobu (Nobuyoshi Nakada) about 2 years ago

test_exception.rb: test_machine_stackoverflow_by_trace

  • test/ruby/test_exception.rb (test_machine_stackoverflow_by_trace): move from test_trace.rb and rename, to be excluded by the default.

History

#1

Updated by nobu (Nobuyoshi Nakada) about 2 years ago

  • Status changed from Open to Closed
  • Description updated (diff)

Also available in: Atom PDF