From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [94.130.110.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 59E471F4CC for ; Tue, 24 Dec 2024 01:55:58 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=P0R52OPR; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=fVY3yUYc; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1735005355; bh=huqDElSezV36mRMmXpv79Vzjy0POev9Kid13psmwYFM=; h=Date:References:To:Reply-To:Subject:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From:Cc:From; b=P0R52OPRiORFiKlkkBUhYUBvp0uzSH7OCuwn1x4bdVL8alW68zcaf2CzVdCseoakz yflOPAZVoz3lqLpvC9cOcUP+W1wPBVTio7LGTzjV4LOIcLYi7gK5UdS/D8P1TYOOTH d8rzqyDLUwYlNf9KiedefkfoucXChfSD53norZLo= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id B5AC445F49 for ; Tue, 24 Dec 2024 01:55:55 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=pass (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=fVY3yUYc; dkim-atps=neutral Received: from s.wfbtzhsv.outbound-mail.sendgrid.net (s.wfbtzhsv.outbound-mail.sendgrid.net [159.183.224.104]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 3CD6344C47 for ; Tue, 24 Dec 2024 01:55:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc:content-type:from:subject:to; s=s1; bh=4+V4U7ASXKCI0eNNWBnUXilruV+eVAdcR4NEhT2SaUs=; b=fVY3yUYc5PlobyONKoienPX4G2qNW6KDHDOV37b7DUqcu5+dd54nrsM5BNUyyGshnOKg 5di5WaJLsZnwtJpLUQ+6KxAfRftZ4LMm5lTnR7Dz7T4JGd2cxcAzQlomqoRVzF5lteFnjS Ycgr2IrKVEc8rJ/d7QXYc4iwrlpMBmMAndVSS5gsqoY15M/wD/QM1EdjfTi2aTRqMwKOjs 9cYHmdrOYlnppDhdtCsLNK2pSApgncxclyLX6pe64LvD6Q3z2MYRGOsObXsl3EtY9uxC3b kUWaviJIwUVmFfqWf7DgQGCV2eEHCamfWTYI+E55Z2hewvFieAjdWzVI1LP7wrQA== Received: by recvd-5f9ffdf494-kp5vj with SMTP id recvd-5f9ffdf494-kp5vj-1-676A14A7-2 2024-12-24 01:55:51.016480592 +0000 UTC m=+3386218.518526906 Received: from herokuapp.com (unknown) by geopod-ismtpd-13 (SG) with ESMTP id cNY_mjvnQRm6YSI6lMbaww for ; Tue, 24 Dec 2024 01:55:50.998 +0000 (UTC) Date: Tue, 24 Dec 2024 01:55:33 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 20976 X-Redmine-Issue-Author: mtasaka X-Redmine-Issue-Priority: Normal X-Redmine-Sender: alanwu 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-Redmine-MailingListIntegration-Message-Ids: 97062 X-SG-EID: =?us-ascii?Q?u001=2EYthNhoKkR+ru7duuIBCSWggX1QviTpo1BTmObZjYMiu+oRLYmEDXRfIb7?= =?us-ascii?Q?CNytBX3Z1NzrRLrrRADZUsP0ba42SGD8BZCg5oE?= =?us-ascii?Q?Bm+2GEOMZjkMFclxY8uqJlL+BH=2FZD+wmtgHF6w6?= =?us-ascii?Q?b4CQ7hEU8rYyN=2FfEJ=2F4ZuGHP8QhrhPLG6QQ1tcM?= =?us-ascii?Q?NAsc0+Wcoze+rxv3Oqx1LxctP8SqW80AHq4aw3U?= =?us-ascii?Q?SdsgMq2lirfS7jtgA=2FuSqtew8K6G+6XuJG55TWQ?= =?us-ascii?Q?+H2V?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: FQBOZ3MSRFAQI5T7ABUPYDUU7WCA4DC4 X-Message-ID-Hash: FQBOZ3MSRFAQI5T7ABUPYDUU7WCA4DC4 X-MailFrom: bounces+313651-b711-ruby-core=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:120385] [Ruby master Bug#20976] ethon 0.15.0 began to segfault List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "alanwu (Alan Wu) via ruby-core" Cc: "alanwu (Alan Wu)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20976 has been updated by alanwu (Alan Wu). Status changed from Open to Third Party's Issue ethon doesn't seem to be using the ffi gem correctly, since the following makes the spec you point to SEGV consistently, though in a different place than in the OP: ```patch diff --git a/spec/ethon/multi_spec.rb b/spec/ethon/multi_spec.rb index a483357..5712bdf 100644 --- a/spec/ethon/multi_spec.rb +++ b/spec/ethon/multi_spec.rb @@ -46,8 +46,9 @@ describe Ethon::Multi do describe "#socket_action" do let(:options) { { :execution_mode => :socket_action } } let(:select_state) { { :readers => [], :writers => [], :timeout => 0 } } - let(:multi) { + let(:multi) do multi = Ethon::Multi.new(options) + GC.stress = true multi.timerfunction = proc do |handle, timeout_ms, userp| timeout_ms = nil if timeout_ms == -1 select_state[:timeout] = timeout_ms @@ -73,7 +74,9 @@ describe Ethon::Multi do :ok end multi - } + ensure + GC.stress = false + end def fds_to_ios(fds) fds.map do |fd| ``` It could also be a bug in the `ffi` gem, but in any case this is highly unlikely to be an issue in ruby proper. ---------------------------------------- Bug #20976: ethon 0.15.0 began to segfault https://bugs.ruby-lang.org/issues/20976#change-111164 * Author: mtasaka (Mamoru TASAKA) * Status: Third Party's Issue * ruby -v: ruby 3.4.0dev (2024-12-21 master 6114094aa0) +PRISM [x86_64-linux] * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- Looks like ethon 0.15.0: https://github.com/typhoeus/ethon/tree/0b1c2278806502ecbc6814a245f6b11f5365e68c began to segfault frequently (not always) with recent ruby 3.4.0dev. Looks like: commit:fef8ecc708 does not cause segfault commit:018b775039 seems to cause segfault: Trying with commit:6114094aa0 , segfaulting log is attached. ---Files-------------------------------- backtrace.log.txt (86 KB) Gemfile (819 Bytes) -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/