From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=AWL,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY shortcircuit=no autolearn=no autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id EAC531F934 for ; Mon, 4 Jan 2021 22:02:48 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id CA1E5120ABE; Tue, 5 Jan 2021 07:01:52 +0900 (JST) Received: from xtrwkhkc.outbound-mail.sendgrid.net (xtrwkhkc.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id D1BC7120A00 for ; Tue, 5 Jan 2021 07:01:50 +0900 (JST) Received: by filterdrecv-p3las1-685fdc5bbc-shxkn with SMTP id filterdrecv-p3las1-685fdc5bbc-shxkn-20-5FF39077-52 2021-01-04 22:02:31.829591809 +0000 UTC m=+2156415.615623787 Received: from herokuapp.com (unknown) by geopod-ismtpd-5-6 (SG) with ESMTP id GWx4I2fCTbylCsC_TflyMw for ; Mon, 04 Jan 2021 22:02:31.521 +0000 (UTC) Date: Mon, 04 Jan 2021 22:02:31 +0000 (UTC) From: xtkoba+ruby@gmail.com Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 77824 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 17511 X-Redmine-Issue-Author: xtkoba X-Redmine-Sender: xtkoba 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: =?us-ascii?Q?75w3+RXRrinEP3ykAS=2F1WzD2vTMrJdTeEiaFbXc9IwUVfruOz9Tx+R0wFw79Hp?= =?us-ascii?Q?mx8dJyj7w3FpcBZFe91JMK2o51oRaqor6vr=2Fkfy?= =?us-ascii?Q?1YOFw9AXRf71hEzrKea42X6=2FVugSWivcfDpX0bj?= =?us-ascii?Q?9H26GPQqc0zoV1ui7SdOMjfSxRO63jHE6yumReq?= =?us-ascii?Q?Xeeqdy0n0HOLGTF69tlksD=2FXqdzkGUj2Z0ZYtER?= =?us-ascii?Q?nUApVp13iVwepFfzA=3D?= To: ruby-core@ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== X-ML-Name: ruby-core X-Mail-Count: 101917 Subject: [ruby-core:101917] [Ruby master Bug#17511] Segmentation fault when compiled with -O2 or higher on ARM Android 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #17511 has been reported by xtkoba (Tee KOBAYASHI). ---------------------------------------- Bug #17511: Segmentation fault when compiled with -O2 or higher on ARM Android https://bugs.ruby-lang.org/issues/17511 * Author: xtkoba (Tee KOBAYASHI) * Status: Open * Priority: Normal * ruby -v: ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [arm-linux-android] * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- To reproduce a segmentation fault, compile Ruby with `CFLAGS=-Oz` using Android NDK r22 (Clang 11.0.5), and input the following: ``` require 'rubygems' pp ``` A segmentation fault also occurs with `CFLAGS=-O2` when Up or Down key is pressed in IRB. A workaround is to disable using `__builtin_setjmp`: ``` ./configure --with-setjmp-type=setjmp ``` I have no idea if there are similar issues or not in non-Android Linux systems on 32-bit ARM. Bug #14480 seems to suggest that there was a similar case on AArch64 Linux with GCC. ---Files-------------------------------- ruby-3.0.0-android-arm-__builtin_setjmp.patch (333 Bytes) -- https://bugs.ruby-lang.org/