From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id 6B1BC19C022C for ; Mon, 16 Nov 2015 20:46:06 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id A3027B5D87F for ; Mon, 16 Nov 2015 21:16:28 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 13C5918CC7B2 for ; Mon, 16 Nov 2015 21:16:28 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 8DF38120434; Mon, 16 Nov 2015 21:16:27 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o10.shared.sendgrid.net (o10.shared.sendgrid.net [173.193.132.135]) by neon.ruby-lang.org (Postfix) with ESMTPS id AC59612040F for ; Mon, 16 Nov 2015 21:16:23 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=mHHCjTsuDmyn5SUEl4uBGn5kMz8=; b=cDQJui1RC45h3C4Usj q+CCNh1PsGc34InGzyDOP5veNTN7gJYJG0ipFqbp3HTf11iG79wpI1R963FvzlHO 6u8EjaGDqppZ2d+eUc9oFtIKt2zifdFrcjqopTaU7FoFgma1OLURFaMvUkYwrlbA JNRqYfS6muho7nor9YQwMr/Os= Received: by filter0427p1mdw1.sendgrid.net with SMTP id filter0427p1mdw1.5491.5649C91152 2015-11-16 12:16:17.835096735 +0000 UTC Received: from herokuapp.com (ec2-54-158-241-164.compute-1.amazonaws.com [54.158.241.164]) by ismtpd0004p1iad1.sendgrid.net (SG) with ESMTP id v_55qUPASc-5_Ed1GBBhdA for ; Mon, 16 Nov 2015 12:16:17.719 +0000 (UTC) Date: Mon, 16 Nov 2015 12:16:17 +0000 From: ngotogenome@gmail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Redmine-MailingListIntegration-Message-Ids: 46155 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11697 X-Redmine-Issue-Author: ngoto X-Redmine-Sender: ngoto X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS6QMNv+p1rBj6lgJ2s2o5we8g6BuGnZp0h76J F/DoIRTnM20Kv4ffw6khlF99ZnrLRR0xbHrpXmIKrYGzYso+i01UNj45Qm5CZMxVhsgSuICQQ4HnqY HWAK3wZaIOIQpAULc8fFKU+JYQQPcWIBK2TZ X-ML-Name: ruby-core X-Mail-Count: 71504 Subject: [ruby-core:71504] [Ruby trunk - Bug #11697] [Open] test/dtrace failure on Solaris 10 X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #11697 has been reported by Naohisa Goto. ---------------------------------------- Bug #11697: test/dtrace failure on Solaris 10 https://bugs.ruby-lang.org/issues/11697 * Author: Naohisa Goto * Status: Open * Priority: Normal * Assignee: * ruby -v: - * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- test/dtrace fails on Solaris 10 as follows. Ruby (64-bit) compiled by using Oracle Solaris Studio 12.3 cc with "-xO3" optimization: ~~~ $ SUDO=sudo ruby test/runner.rb test/dtrace Run options: # Running tests: [26/26] DTrace::TestStringProbes#test_object_create_start_string_lit = 1.5 1) Failure: DTrace::TestStringProbes#test_object_create_start_string_lit [/XXXXX-52420/test/dtrace/test_string.rb:10]: <["String"]> expected but was <[]>. Finished tests in 33.513504s, 0.7758 tests/s, 6.2960 assertions/s. 26 tests, 211 assertions, 1 failures, 0 errors, 0 skips ruby -v: ruby 2.3.0dev (2015-11-01) [sparc64-solaris2.10] ~~~ Ruby (64-bit) compiled by using Solaris Studio 12.3 cc without optimization (with "-xO0") : ~~~ $ SUDO=sudo ruby test/runner.rb test/dtrace Run options: # Running tests: [ 3/26] DTrace::TestCMethod#test_entry = 1.77 s 1) Failure: DTrace::TestCMethod#test_entry [/XXXXX-52250/test/dtrace/test_cmethod.rb:18]: <1> expected but was <0>. Finished tests in 40.703063s, 0.6388 tests/s, 5.2330 assertions/s. 26 tests, 213 assertions, 1 failures, 0 errors, 0 skips ruby -v: ruby 2.3.0dev (2015-10-24) [sparc64-solaris2.10] ~~~ It seems that the failure is due to overflowing of dtrace's trace buffer. On Solaris, the default buffer size is 4MB. The failure does not happen when increasing the buffer size to 8MB (calling dtrace with "-b 8m" option) ~~~ --- test/dtrace/helper.rb.ORIG~ 2014-11-19 23:15:23.909272000 +0900 +++ test/dtrace/helper.rb 2015-11-16 21:03:35.411936000 +0900 @@ -26,7 +26,7 @@ d_path = d.path rb_path = rb.path - cmd = ["dtrace", "-q", "-s", d_path, "-c", "#{EnvUtil.rubybin} -I#{INCLUDE} #{rb_path}"] + cmd = ["dtrace", "-b", "8m", "-q", "-s", d_path, "-c", "#{EnvUtil.rubybin} -I#{INCLUDE} #{rb_path}"] if sudo = @@sudo [RbConfig::CONFIG["LIBPATHENV"], "RUBY", "RUBYOPT"].each do |name| if name and val = ENV[name] ~~~ -- https://bugs.ruby-lang.org/