Project

General

Profile

Actions

Bug #14761

open

TestThread#test_join_limits hangs up on Solaris 10 with gcc

Added by ngoto (Naohisa Goto) over 6 years ago. Updated over 6 years ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:87045]

Description

On Solaris 10, sparc architecture, when compiling ruby (r63417) by GCC (version 4.6.2), TestThread#test_join_limits did not end.

The test ended successfully when compiling ruby by Oracle Developer Studio 12.5 or 12.6.

Actions #1

Updated by ngoto (Naohisa Goto) over 6 years ago

  • Status changed from Open to Closed

Applied in changeset trunk|r63437.


Split TestThread#test_join_limits into peaces

  • test/ruby/test_thread.rb (TestThread#test_join_limit_*): Split
    TestThread#test_join_limits for investigating hang-up on Solaris.
    Each method tests only a single limit value.
    [ruby-core:87045] [Bug #14761]

Updated by ngoto (Naohisa Goto) over 6 years ago

  • Status changed from Closed to Open

After splitting the test, TestThread#test_join_limit_negative_INT64_MIN fails.
i.e. limit=RbConfig::LIMITS['INT64_MIN']; t = Thread.new { sleep }; t.join(limit) hangs up.

Updated by ngoto (Naohisa Goto) over 6 years ago

In the above situation when the test fails, RbConfig::LIMITS['INT64_MIN'] is nil.

Updated by nobu (Nobuyoshi Nakada) over 6 years ago

Does RbConfig::LIMITS have 'INT64_MIN' key?
Or the default nil?

Actions #5

Updated by ngoto (Naohisa Goto) over 6 years ago

  • Status changed from Open to Closed

Applied in changeset commit:ruby-git|80bf542a6ccc8988e7ac6dbabcfe8955c587d402.


Split TestThread#test_join_limits into peaces

  • test/ruby/test_thread.rb (TestThread#test_join_limit_*): Split
    TestThread#test_join_limits for investigating hang-up on Solaris.
    Each method tests only a single limit value.
    [ruby-core:87045] [Bug #14761]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Updated by ngoto (Naohisa Goto) over 6 years ago

  • Status changed from Closed to Open

Default nil. The key INT64_MIN did not found in RbConfig::LIMITS.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0