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 7EAE717DEA92 for ; Thu, 4 Jun 2015 10:32:38 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (smtp.nagaokaut.ac.jp [133.44.2.201]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id B5915B5D8C4 for ; Thu, 4 Jun 2015 10:52:16 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (localhost.nagaokaut.ac.jp [127.0.0.1]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id E046597A826 for ; Thu, 4 Jun 2015 10:52:17 +0900 (JST) X-Virus-Scanned: amavisd-new at nagaokaut.ac.jp Authentication-Results: funfun.nagaokaut.ac.jp (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=sendgrid.me Received: from funfun.nagaokaut.ac.jp ([127.0.0.1]) by funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b_16BjAPTyCQ for ; Thu, 4 Jun 2015 10:52:17 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id B411E97A832 for ; Thu, 4 Jun 2015 10:52:17 +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 805AB95241B for ; Thu, 4 Jun 2015 10:52:16 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 66576120463; Thu, 4 Jun 2015 10:52:14 +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 7AB02120446 for ; Thu, 4 Jun 2015 10:52:11 +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=oe7YbOjmPnCkZCWjqwDgpHBgqjo=; b=eLwMi2bYPtCNAykmIT twIF1pdvqr8iJGmgym1emADBDIc473o5u251Ip93Qc/oeQx+7ZHHKX8zM3peovCK mcIyslOl1+On6iAVV4Rlr5u9sbU5SSCgQI0E64WkXj6exsgSrepGstI3UEbsis1u O8Yg9cx13x2lJWwhUk0eKAEso= Received: by filter0364p1mdw1.sendgrid.net with SMTP id filter0364p1mdw1.27968.556FAF45D 2015-06-04 01:52:06.183392719 +0000 UTC Received: from herokuapp.com (ec2-54-146-50-153.compute-1.amazonaws.com [54.146.50.153]) by ismtpd-047 (SG) with ESMTP id 14dbc44a9e3.2f44.512061 for ; Thu, 04 Jun 2015 01:52:06 +0000 (UTC) Date: Thu, 04 Jun 2015 01:52:05 +0000 From: wingicelee@hotmail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Redmine-MailingListIntegration-Message-Ids: 43922 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11001 X-Redmine-Issue-Author: kiyoka X-Redmine-Sender: william.l. 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/Ymy4QrNMhiuLXJG8OTL2vJD1yS5QetHnKK3UeAebyiSsZCJFAnd9Ff/EbGhdYJ On4DpEHXF/+yzyMxA6IKLZ+DyPdeR6FOxzjWRk8sFJCOFudVrcYSL4gCGhun52BQGSq0+ozT+Ftwdf xTU9xHYFdPxWmDaR82iXuslrsX2KL+QHgWH8 X-ML-Name: ruby-core X-Mail-Count: 69460 Subject: [ruby-core:69460] [Ruby trunk - Bug #11001] 2.2.1 Segmentation fault in reserve_stack() function. 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 #11001 has been updated by William L. L.. I also run into the bug too. ~~~ william@debianbox:~/talentlines/webui$ lsb_release -da No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 7.7 (wheezy) Release: 7.7 Codename: wheezy william@debianbox:~/talentlines/webui$ uname -a Linux debianbox 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u1 x86_64 GNU/Linux william@debianbox:~/talentlines/webui$ ulimit -s 8191 william@debianbox:~/talentlines/webui$ ruby -v Segmentation fault william@debianbox:~/talentlines/webui$ ulimit -s 8000 william@debianbox:~/talentlines/webui$ ruby -v ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux] ~~~ ---------------------------------------- Bug #11001: 2.2.1 Segmentation fault in reserve_stack() function. https://bugs.ruby-lang.org/issues/11001#change-52740 * Author: Kiyoka Nishiyama * Status: Open * Priority: Normal * Assignee:=20 * ruby -v: ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- SEGV depends on stack limit size with 'ulimit -s ' . This shell script [ulimit_change_test.sh] can reproduce SEGV on my Debian e= nvironment. my Linux environment is Debian/GNU Linux 7.8. But, I cannot reproduce this SEGV on Amazon Linux environment. result on Debian 7.8 ~~~ $ /tmp/ulimit_change_test.sh=20 8515 /tmp/ulimit_change_test.sh: 3 =E8=A1=8C: 20470 Segmentation fault ./ru= by --version 8514 /tmp/ulimit_change_test.sh: 3 =E8=A1=8C: 20471 Segmentation fault ./ru= by --version 8513 /tmp/ulimit_change_test.sh: 3 =E8=A1=8C: 20472 Segmentation fault ./ru= by --version 8512 ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux] 8511 /tmp/ulimit_change_test.sh: 3 =E8=A1=8C: 20475 Segmentation fault ./ru= by --version 8510 /tmp/ulimit_change_test.sh: 3 =E8=A1=8C: 20476 Segmentation fault ./ru= by --version 8509 /tmp/ulimit_change_test.sh: 3 =E8=A1=8C: 20477 Segmentation fault ./ru= by --version 8508 ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux] 8507 /tmp/ulimit_change_test.sh: 3 =E8=A1=8C: 20480 Segmentation fault ./ru= by --version 8506 /tmp/ulimit_change_test.sh: 3 =E8=A1=8C: 20481 Segmentation fault ./ru= by --version 8505 /tmp/ulimit_change_test.sh: 3 =E8=A1=8C: 20482 Segmentation fault ./ru= by --version 8504 ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux] 8503 /tmp/ulimit_change_test.sh: 3 =E8=A1=8C: 20485 Segmentation fault ./ru= by --version 8502 /tmp/ulimit_change_test.sh: 3 =E8=A1=8C: 20486 Segmentation fault ./ru= by --version 8501 /tmp/ulimit_change_test.sh: 3 =E8=A1=8C: 20487 Segmentation fault ./ru= by --version 8500 ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux] 8499 /tmp/ulimit_change_test.sh: 3 =E8=A1=8C: 20490 Segmentation fault ./ru= by --version 8498 /tmp/ulimit_change_test.sh: 3 =E8=A1=8C: 20491 Segmentation fault ./ru= by --version 8497 /tmp/ulimit_change_test.sh: 3 =E8=A1=8C: 20492 Segmentation fault ./ru= by --version 8496 ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux] 8495 /tmp/ulimit_change_test.sh: 3 =E8=A1=8C: 20495 Segmentation fault ./ru= by --version 8494 /tmp/ulimit_change_test.sh: 3 =E8=A1=8C: 20496 Segmentation fault ./ru= by --version 8493 /tmp/ulimit_change_test.sh: 3 =E8=A1=8C: 20497 Segmentation fault ./ru= by --version 8492 ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux] 8491 /tmp/ulimit_change_test.sh: 3 =E8=A1=8C: 20500 Segmentation fault ./ru= by --version 8490 /tmp/ulimit_change_test.sh: 3 =E8=A1=8C: 20501 Segmentation fault ./ru= by --version 8489 /tmp/ulimit_change_test.sh: 3 =E8=A1=8C: 20502 Segmentation fault ./ru= by --version $=20 ~~~ This SEGV occurs in reserve_stack() function. I suspect that the buf[0x100] size is too small for margin. I attached patch to fix it. ---Files-------------------------------- 0001-Bugfix-patch-of-reserve_stack-function.patch (720 Bytes) ulimit_change_test.sh (211 Bytes) --=20 https://bugs.ruby-lang.org/