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-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-4.1 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham 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 2E6761F462 for ; Sat, 25 May 2019 00:59:40 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 1A28B120B5F; Sat, 25 May 2019 09:59:35 +0900 (JST) Received: from o1678916x28.outbound-mail.sendgrid.net (o1678916x28.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id 6A49E120ADE for ; Sat, 25 May 2019 09:59:33 +0900 (JST) Received: by filter0099p3iad2.sendgrid.net with SMTP id filter0099p3iad2-3683-5CE89375-17 2019-05-25 00:59:33.6880594 +0000 UTC m=+112600.502660295 Received: from herokuapp.com (unknown [35.175.245.114]) by ismtpd0023p1mdw1.sendgrid.net (SG) with ESMTP id rBv1CWm5ToG8xTm4_DqpGA for ; Sat, 25 May 2019 00:59:33.494 +0000 (UTC) Date: Sat, 25 May 2019 00:59:33 +0000 (UTC) From: merch-redmine@jeremyevans.net Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 68318 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 14807 X-Redmine-Issue-Author: jeremyevans0 X-Redmine-Issue-Assignee: normalperson X-Redmine-Sender: jeremyevans0 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?RVE3t853K5scBhbmJHUzZTFFeVC=2FZSUmHZ0Dc+26wcEi2CTgsF1oz0wTSSxGGN?= =?us-ascii?Q?BIUcTB9OcXu+EZ4j9OKhRbo+lzmQuf=2FLe17xCtN?= =?us-ascii?Q?gQVs9V3XBeEdNyH6Zg0PU2ATEhWpq5AaHR3ap3m?= =?us-ascii?Q?1XhqYPl7rhsBCpafrjbrGbS8SiN7mLY1H9xdKa5?= =?us-ascii?Q?DGWFv+r=2FrU5v=2F=2FbZ7j62TUZ5+KvNCPocNVA=3D=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 92835 Subject: [ruby-core:92835] [Ruby trunk Bug#14807] 2.6.0-preview2 segfaults on OpenBSD due to missing pthread_condattr_init call 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 #14807 has been updated by jeremyevans0 (Jeremy Evans). Status changed from Open to Closed Fixed by commit:832b601e49fd402ec7f30b36a95473131e93ae94. As taca explained, PTHREAD_COND_INITIALIZER should not be used for pthread_condattr_t. ---------------------------------------- Bug #14807: 2.6.0-preview2 segfaults on OpenBSD due to missing pthread_condattr_init call https://bugs.ruby-lang.org/issues/14807#change-78214 * Author: jeremyevans0 (Jeremy Evans) * Status: Closed * Priority: Normal * Assignee: normalperson (Eric Wong) * Target version: * ruby -v: ruby 2.6.0dev (2018-06-01 trunk 63545) [x86_64-openbsd] * Backport: 2.3: DONTNEED, 2.4: DONTNEED, 2.5: DONTNEED ---------------------------------------- r63238 refactored thread_pthread.c, and where there was previously a pthread_condattr_init call to initialize the pthread_condattr_t value, it removed the call and passed the pthread_condattr_t* directly to pthread_condattr_setclock without initializing the value by calling pthread_condattr_init first. On some operating systems that works, but it's not required to work, and it segfaults on OpenBSD because the pthread_condattr_t is not initialized. The attached patch should fix the problem. ---Files-------------------------------- 0001-Initialize-condattr_monotonic-via-pthread_condattr_i.patch (1.08 KB) -- https://bugs.ruby-lang.org/