From unknown Fri Aug 15 02:03:17 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#35666 <35666@debbugs.gnu.org> To: bug#35666 <35666@debbugs.gnu.org> Subject: Status: [PATCH 0/2] Build a thread-safe hdf5 library Reply-To: bug#35666 <35666@debbugs.gnu.org> Date: Fri, 15 Aug 2025 09:03:17 +0000 retitle 35666 [PATCH 0/2] Build a thread-safe hdf5 library reassign 35666 guix-patches submitter 35666 Ludovic Court=C3=A8s severity 35666 normal tag 35666 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Fri May 10 05:56:58 2019 Received: (at submit) by debbugs.gnu.org; 10 May 2019 09:56:59 +0000 Received: from localhost ([127.0.0.1]:37192 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hP2Gw-000309-Kv for submit@debbugs.gnu.org; Fri, 10 May 2019 05:56:58 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38001) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hP2Gv-0002zv-MX for submit@debbugs.gnu.org; Fri, 10 May 2019 05:56:58 -0400 Received: from lists.gnu.org ([209.51.188.17]:44232) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hP2Gq-00039H-Aw for submit@debbugs.gnu.org; Fri, 10 May 2019 05:56:52 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52374) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hP2Gp-0006K8-Dr for guix-patches@gnu.org; Fri, 10 May 2019 05:56:52 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_40 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34750) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hP2Gn-00036x-PD; Fri, 10 May 2019 05:56:49 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=51522 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hP2Gn-0005ad-62; Fri, 10 May 2019 05:56:49 -0400 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: guix-patches@gnu.org Subject: [PATCH 0/2] Build a thread-safe hdf5 library Date: Fri, 10 May 2019 11:56:30 +0200 Message-Id: <20190510095630.16695-1-ludo@gnu.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit Cc: Eric Bavier , Ricardo Wurmus , =?UTF-8?q?Ludovic=20Court=C3=A8s?= , Paul Garlick X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello! A colleague of mine noticed that our ‘hdf5’ library wasn’t thread-safe. Turns out there’s an option to make it thread-safe (oh!), it’s turned off by default (oh?!), and when you pass it ‘configure’ invites you to turn off no less than C++, Fortran, and the high-level interface (d’oh!). It also tells you that, if you insist, you can go ahead and pass ‘--enable-unsupported’, but you’re on your own. We found that Debian chose to pass ‘--enable-unsupported’, and indeed that seems to be saner than providing a variant that does very little, but does it in a thread-safe way. Thoughts? Thanks, Ludo’. Ludovic Courtès (2): gnu: hdf5: Build a thread-safe library. gnu: hdf5: Add dependency on Perl. gnu/packages/maths.scm | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) -- 2.21.0 From debbugs-submit-bounces@debbugs.gnu.org Fri May 10 06:06:10 2019 Received: (at 35666) by debbugs.gnu.org; 10 May 2019 10:06:11 +0000 Received: from localhost ([127.0.0.1]:37204 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hP2Pq-0003F5-Ky for submit@debbugs.gnu.org; Fri, 10 May 2019 06:06:10 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39577) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hP2Po-0003En-V4 for 35666@debbugs.gnu.org; Fri, 10 May 2019 06:06:09 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hP2Pi-0005qH-Mi; Fri, 10 May 2019 06:06:02 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=51584 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hP2Ph-0005WB-Vh; Fri, 10 May 2019 06:06:02 -0400 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: 35666@debbugs.gnu.org Subject: [PATCH 2/2] gnu: hdf5: Add dependency on Perl. Date: Fri, 10 May 2019 12:05:46 +0200 Message-Id: <20190510100546.17536-2-ludo@gnu.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190510100546.17536-1-ludo@gnu.org> References: <20190510100546.17536-1-ludo@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35666 Cc: Eric Bavier , Ricardo Wurmus , =?UTF-8?q?Ludovic=20Court=C3=A8s?= , Paul Garlick X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) From: Ludovic Courtès * gnu/packages/maths.scm (hdf5)[native-inputs]: Add PERL. --- gnu/packages/maths.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 2c3889ece2..7ea94d1060 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -774,7 +774,8 @@ incompatible with HDF5.") (inputs `(("zlib" ,zlib))) (native-inputs - `(("gfortran" ,gfortran))) + `(("gfortran" ,gfortran) + ("perl" ,perl))) ;part of the test machinery needs Perl (outputs '("out" ; core library "fortran")) ; fortran interface (arguments -- 2.21.0 From debbugs-submit-bounces@debbugs.gnu.org Fri May 10 06:06:11 2019 Received: (at 35666) by debbugs.gnu.org; 10 May 2019 10:06:11 +0000 Received: from localhost ([127.0.0.1]:37206 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hP2Pq-0003F7-U4 for submit@debbugs.gnu.org; Fri, 10 May 2019 06:06:11 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39580) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hP2Pp-0003Eo-0K for 35666@debbugs.gnu.org; Fri, 10 May 2019 06:06:09 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hP2Ph-0005lf-Bi; Fri, 10 May 2019 06:06:01 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=51584 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hP2Pg-0005WB-OV; Fri, 10 May 2019 06:06:01 -0400 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: 35666@debbugs.gnu.org Subject: [PATCH 1/2] gnu: hdf5: Build a thread-safe library. Date: Fri, 10 May 2019 12:05:45 +0200 Message-Id: <20190510100546.17536-1-ludo@gnu.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35666 Cc: Eric Bavier , Ricardo Wurmus , =?UTF-8?q?Ludovic=20Court=C3=A8s?= , Paul Garlick X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) From: Ludovic Courtès * gnu/packages/maths.scm (hdf5)[arguments]: Pass "--enable-threadsafe --with-pthread --enable-unsupported". --- gnu/packages/maths.scm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index d59028599f..2c3889ece2 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -781,7 +781,17 @@ incompatible with HDF5.") `(;; Some of the users, notably Flann, need the C++ interface. #:configure-flags '("--enable-cxx" "--enable-fortran" - "--enable-fortran2003") + "--enable-fortran2003" + + ;; Build a thread-safe library. Unfortunately, + ;; 'configure' invites you to either turn off C++, + ;; Fortran, and the high-level interface (HL), or + ;; to pass '--enable-unsupported'. Debian + ;; packagers chose to pass '--enable-unsupported' + ;; and we follow their lead here. + "--enable-threadsafe" + "--with-pthread" + "--enable-unsupported") ;; Use -fPIC to allow the R bindings to link with the static libraries #:make-flags (list "CFLAGS=-fPIC" "CXXFLAGS=-fPIC") -- 2.21.0 From debbugs-submit-bounces@debbugs.gnu.org Fri May 10 07:53:31 2019 Received: (at submit) by debbugs.gnu.org; 10 May 2019 11:53:31 +0000 Received: from localhost ([127.0.0.1]:37365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hP45i-0005pD-Rd for submit@debbugs.gnu.org; Fri, 10 May 2019 07:53:31 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56154) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hP45h-0005p1-Bt for submit@debbugs.gnu.org; Fri, 10 May 2019 07:53:29 -0400 Received: from lists.gnu.org ([209.51.188.17]:40696) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hP45c-0006FK-4t for submit@debbugs.gnu.org; Fri, 10 May 2019 07:53:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hP45b-0006ee-7X for guix-patches@gnu.org; Fri, 10 May 2019 07:53:24 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hP45a-0006EP-99 for guix-patches@gnu.org; Fri, 10 May 2019 07:53:23 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21294) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hP45Z-0006Du-VY for guix-patches@gnu.org; Fri, 10 May 2019 07:53:22 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1557489167; cv=none; d=zoho.com; s=zohoarc; b=QpnUckBPpIyKJz6W5oCQLHtZDfz+fQKMH9q1jtxIlbzYwHCumW+/EhJBmJGwen8qbkAv53SvSuw8KOM968+HDfaKYiAHg1AL5g2gHOokxF4WJWMMKmTE+tFuKw/ZeOWGdrmipeQg4W2qtoFP/RUCjImvAc8kcrsMYkwSIz0I/U4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1557489167; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=8cGyt4KwJv8g5XV1WKQl1IbvfIQdgNrqOhIxahc9UhQ=; b=Y0HQj3E6cG6QGls1pSolN0sZ0zYGKK4fmBVPjL17ZTw3t1/BlI+38asVs7bF6MMjRawkCLQihcp8deWHrXzfIY7TaiSjy3fmLgvWLc/i4qHYG0n5/qwDEGgpz0F0qhlk4Sup8ZwKqgUc6FtH0EG/loZwbZ0uwAy07mLhY9GyZo0= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1557489167; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; l=1324; bh=8cGyt4KwJv8g5XV1WKQl1IbvfIQdgNrqOhIxahc9UhQ=; b=OEnUpw9V+YdqhFa9xisI02F6k/zAgaYh9UAk33gm0wHMebRbFrVY1Bu8i0QXcYAn Mq+NyCGxKgcG/cfZtqVmS0PwdUeofNbe3Jn/RZBbuhCQ01YtI7Facx0eB6LqWvzAJXU lI0Iobx0wJRZDF4AkMHapBR3HAN3kKHpnKLHzml8= Received: from localhost (141.80.245.120 [141.80.245.120]) by mx.zohomail.com with SMTPS id 15574891671391.2823827212188235; Fri, 10 May 2019 04:52:47 -0700 (PDT) References: <20190510095630.16695-1-ludo@gnu.org> User-agent: mu4e 1.2.0; emacs 26.2 From: Ricardo Wurmus To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [PATCH 0/2] Build a thread-safe hdf5 library In-reply-to: <20190510095630.16695-1-ludo@gnu.org> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Fri, 10 May 2019 13:52:42 +0200 Message-ID: <87imuisf05.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 135.84.80.216 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Eric Bavier , Paul Garlick , guix-patches@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Ludovic Court=C3=A8s writes: > A colleague of mine noticed that our =E2=80=98hdf5=E2=80=99 library wasn= =E2=80=99t > thread-safe. Turns out there=E2=80=99s an option to make it thread-safe = (oh!), > it=E2=80=99s turned off by default (oh?!), and when you pass it =E2=80=98= configure=E2=80=99 > invites you to turn off no less than C++, Fortran, and the high-level > interface (d=E2=80=99oh!). Oh! > It also tells you that, if you insist, you can go ahead and pass > =E2=80=98--enable-unsupported=E2=80=99, but you=E2=80=99re on your own. > > We found that Debian chose to pass =E2=80=98--enable-unsupported=E2=80=99= , and indeed > that seems to be saner than providing a variant that does very little, > but does it in a thread-safe way. What other effects does =E2=80=9C--enable-unsupported=E2=80=9D have? I see= that in Fedora =E2=80=9C--enable-threadsafe=E2=80=9D was removed in 2008 because it= =E2=80=99s =E2=80=9Cincompatible with --enable-cxx and --enable-fortran=E2=80=9D. Instead they seem to be building different flavours: one with --enable-fortran, another with --enable-cxx, yet another with MPI and --enable-parallel. Do we have contact to the hdf5 developers to ask what the implications of =E2=80=9Cenable-unsupported=E2=80=9D are? -- Ricardo From debbugs-submit-bounces@debbugs.gnu.org Fri May 10 09:07:38 2019 Received: (at 35666) by debbugs.gnu.org; 10 May 2019 13:07:38 +0000 Received: from localhost ([127.0.0.1]:37435 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hP5FR-0007eF-J7 for submit@debbugs.gnu.org; Fri, 10 May 2019 09:07:38 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:63378) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hP5FQ-0007e1-7C for 35666@debbugs.gnu.org; Fri, 10 May 2019 09:07:36 -0400 X-IronPort-AV: E=Sophos;i="5.60,453,1549926000"; d="scan'208";a="382588458" Received: from unknown (HELO ribbon) ([193.50.110.224]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES256-GCM-SHA384; 10 May 2019 15:07:29 +0200 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Ricardo Wurmus Subject: Re: [bug#35666] [PATCH 0/2] Build a thread-safe hdf5 library References: <20190510095630.16695-1-ludo@gnu.org> <87imuisf05.fsf@elephly.net> Date: Fri, 10 May 2019 15:07:29 +0200 In-Reply-To: <87imuisf05.fsf@elephly.net> (Ricardo Wurmus's message of "Fri, 10 May 2019 13:52:42 +0200") Message-ID: <87d0kq1mr2.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 35666 Cc: bavier@cray.com, 35666@debbugs.gnu.org, pgarlick@tourbillion-technology.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Hi! Ricardo Wurmus skribis: > Ludovic Court=C3=A8s writes: [=E2=80=A6] >> It also tells you that, if you insist, you can go ahead and pass >> =E2=80=98--enable-unsupported=E2=80=99, but you=E2=80=99re on your own. >> >> We found that Debian chose to pass =E2=80=98--enable-unsupported=E2=80= =99, and indeed >> that seems to be saner than providing a variant that does very little, >> but does it in a thread-safe way. > > What other effects does =E2=80=9C--enable-unsupported=E2=80=9D have? I s= ee that in > Fedora =E2=80=9C--enable-threadsafe=E2=80=9D was removed in 2008 because = it=E2=80=99s > =E2=80=9Cincompatible with --enable-cxx and --enable-fortran=E2=80=9D. =E2=80=9C--enable-unsupported=E2=80=9D allows you to force a build that com= bines C++, Fortran, and thread-safety. If you don=E2=80=99t pass that flag, you have = to choose between thread-safety and C++/Fortran=C2=B9. A tough choice! > Instead they seem to be building different flavours: one with > --enable-fortran, another with --enable-cxx, yet another with MPI and > --enable-parallel. Problem is, my colleagues have code that expects both C++ and thread-safety (as crazy as it might seem). They were using the Debian package until now and hadn=E2=80=99t realized about this. > Do we have contact to the hdf5 developers to ask what the implications > of =E2=80=9Cenable-unsupported=E2=80=9D are? I think it=E2=80=99s a warranty-void kind of flag: by passing it, the user asserts they understand they=E2=80=99re using a configuration not =E2=80=9C= officially supported=E2=80=9D by the HDF Group, meaning that if it=E2=80=99s buggy, we= =E2=80=99re on our own. Thoughts? Ludo=E2=80=99. =C2=B9 You would think it=E2=80=99s an April fool=E2=80=99s day prank, but = it=E2=80=99s not! We=E2=80=99re in May, at least in my timezone. From debbugs-submit-bounces@debbugs.gnu.org Fri May 10 11:09:39 2019 Received: (at 35666) by debbugs.gnu.org; 10 May 2019 15:09:39 +0000 Received: from localhost ([127.0.0.1]:38765 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hP79X-0002bp-5U for submit@debbugs.gnu.org; Fri, 10 May 2019 11:09:39 -0400 Received: from esa1.cray.iphmx.com ([68.232.142.33]:51878) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hP79U-0002bZ-Uy for 35666@debbugs.gnu.org; Fri, 10 May 2019 11:09:37 -0400 X-IronPort-AV: E=Sophos;i="5.60,453,1549929600"; d="scan'208";a="26433662" X-Cray-OBMMKR: 1433258124 26433662 Received: from mail-co1nam05lp2052.outbound.protection.outlook.com (HELO NAM05-CO1-obe.outbound.protection.outlook.com) ([104.47.48.52]) by ob1.cray.iphmx.com with ESMTP/TLS/AES256-SHA256; 10 May 2019 16:09:28 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crayinc.onmicrosoft.com; s=selector1-cray-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4sEMVaU0w7x8OL2GWy0R38rfVIcZIQIcN9ihZ1UAiJI=; b=qWJ/Ez4eLkkxFn4wqUUn+YA/iWA6uGMx+6cnLHLGKMIeyhprieqdKG2AmWmC5vOnvmhG2OKXM2GzCuMbhq6+GGEEzMMV7bxzO2jf+3ifAnJPLBDV1vFLnpw5nGRpdOdS1lbqwIE9CcJUI4PXcdbFRp+Qv78QEfpHZ4Nstwnt+vU= Received: from CY4PR1101MB2325.namprd11.prod.outlook.com (10.173.195.145) by CY4PR1101MB2296.namprd11.prod.outlook.com (10.172.77.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1856.11; Fri, 10 May 2019 15:09:26 +0000 Received: from CY4PR1101MB2325.namprd11.prod.outlook.com ([fe80::1d8f:f090:f155:6815]) by CY4PR1101MB2325.namprd11.prod.outlook.com ([fe80::1d8f:f090:f155:6815%2]) with mapi id 15.20.1856.012; Fri, 10 May 2019 15:09:25 +0000 From: Eric Bavier To: =?Windows-1252?Q?Ludovic_Court=E8s?= , Ricardo Wurmus Subject: Re: [bug#35666] [PATCH 0/2] Build a thread-safe hdf5 library Thread-Topic: [bug#35666] [PATCH 0/2] Build a thread-safe hdf5 library Thread-Index: AQHVBxazSZMuW4Hz1k+ocl3x9CUKrqZkP5EAgAAU7bmAACCzXQ== Date: Fri, 10 May 2019 15:09:25 +0000 Message-ID: References: <20190510095630.16695-1-ludo@gnu.org> <87imuisf05.fsf@elephly.net>,<87d0kq1mr2.fsf@gnu.org> In-Reply-To: <87d0kq1mr2.fsf@gnu.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=bavier@cray.com; x-originating-ip: [136.162.2.1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7d3e2b7e-29f9-4638-217a-08d6d5597dda x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(2017052603328)(7193020); SRVR:CY4PR1101MB2296; x-ms-traffictypediagnostic: CY4PR1101MB2296: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-forefront-prvs: 0033AAD26D x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(39850400004)(136003)(346002)(366004)(396003)(376002)(199004)(189003)(74316002)(305945005)(316002)(7696005)(9686003)(26005)(2906002)(102836004)(55016002)(99286004)(6506007)(81166006)(53546011)(66574012)(66066001)(71190400001)(478600001)(71200400001)(110136005)(7736002)(6436002)(14454004)(5660300002)(54906003)(33656002)(8676002)(256004)(53936002)(8936002)(86362001)(68736007)(229853002)(81156014)(64756008)(25786009)(6116002)(6246003)(66446008)(4326008)(476003)(186003)(76176011)(3846002)(446003)(66946007)(66476007)(14444005)(73956011)(66556008)(52536014)(76116006)(11346002)(486006); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR1101MB2296; H:CY4PR1101MB2325.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 6F2Q1pfNAHoBRx8restAyOWjKouo/oz+sx8a3dtfzJJitboKeCJ1AcaSVYQYFWhgnAEpj8SaHPeDM0YPxAvVxCMhUttov7p7SVgC0gOlPDcbpMNOLlEjGq5YZYvxADOTo0R3OIwKYITXKK6yLa9YQSrcNRDbNda5+Ppe+Z/aklCCZZ1lTRRBtYwZQzcK3bZ0Du+eXvvfhcP/EtpbYPN9oEzcywvFM551A+SfoXu+fGzlca22ky8tWeVUVpIYj7m2MfP6a30qcRLxy3IzDoUU4C1zvQFsVwe6Xu7uY4gUPBbdnQcGVjrAYi0D5o6QgrV3mdC+5eECXiW9Z0AfRWk/6N54OvWNpxEJ3NwPndCx5uRJ5iYsvckEdwKzEwZrYzkMOyQQmiHM+nvoWbBkbzXrdSai+p8rHPU8A6UKeuynB4A= Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: cray.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7d3e2b7e-29f9-4638-217a-08d6d5597dda X-MS-Exchange-CrossTenant-originalarrivaltime: 10 May 2019 15:09:25.7334 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: e7b8488a-c0cd-4614-aae1-996bfabec247 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1101MB2296 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35666 Cc: "35666@debbugs.gnu.org" <35666@debbugs.gnu.org>, "pgarlick@tourbillion-technology.com" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) I think this should be fine, though I've not heard of anyone who has relied= on this feature. The "unsupported" part here is that the posix lock used = for thread-safety is not hoisted into the higher-level API calls. So if yo= ur colleague is using the C++ interface and expecting thread-safety, they a= re out of luck. So the disclaimer is that only the low-level C interface g= ains thread-safety, and the rest are no better. Eric Bavier, Scientific Libraries, Cray Inc. ________________________________________ From: Ludovic Court=E8s Sent: Friday, May 10, 2019 08:07 To: Ricardo Wurmus Cc: Eric Bavier; pgarlick@tourbillion-technology.com; 35666@debbugs.gnu.org Subject: Re: [bug#35666] [PATCH 0/2] Build a thread-safe hdf5 library Hi! Ricardo Wurmus skribis: > Ludovic Court=E8s writes: [=85] >> It also tells you that, if you insist, you can go ahead and pass >> =91--enable-unsupported=92, but you=92re on your own. >> >> We found that Debian chose to pass =91--enable-unsupported=92, and indee= d >> that seems to be saner than providing a variant that does very little, >> but does it in a thread-safe way. > > What other effects does =93--enable-unsupported=94 have? I see that in > Fedora =93--enable-threadsafe=94 was removed in 2008 because it=92s > =93incompatible with --enable-cxx and --enable-fortran=94. =93--enable-unsupported=94 allows you to force a build that combines C++, Fortran, and thread-safety. If you don=92t pass that flag, you have to choose between thread-safety and C++/Fortran=B9. A tough choice! > Instead they seem to be building different flavours: one with > --enable-fortran, another with --enable-cxx, yet another with MPI and > --enable-parallel. Problem is, my colleagues have code that expects both C++ and thread-safety (as crazy as it might seem). They were using the Debian package until now and hadn=92t realized about this. > Do we have contact to the hdf5 developers to ask what the implications > of =93enable-unsupported=94 are? I think it=92s a warranty-void kind of flag: by passing it, the user asserts they understand they=92re using a configuration not =93officially supported=94 by the HDF Group, meaning that if it=92s buggy, we=92re on our own. Thoughts? Ludo=92. =B9 You would think it=92s an April fool=92s day prank, but it=92s not! We= =92re in May, at least in my timezone. From debbugs-submit-bounces@debbugs.gnu.org Fri May 10 11:28:02 2019 Received: (at 35666) by debbugs.gnu.org; 10 May 2019 15:28:02 +0000 Received: from localhost ([127.0.0.1]:38806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hP7RK-00034J-97 for submit@debbugs.gnu.org; Fri, 10 May 2019 11:28:02 -0400 Received: from smtp.hosts.co.uk ([85.233.160.19]:29386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hP7RI-00033y-52 for 35666@debbugs.gnu.org; Fri, 10 May 2019 11:28:00 -0400 Received: from [79.123.23.187] (helo=pancake.local) by smtp.hosts.co.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim) (envelope-from ) id 1hP7RB-0004Fh-91; Fri, 10 May 2019 16:27:54 +0100 Message-ID: <57ed425b87bca2f1fa72a936f3f8ca8caeadbb77.camel@tourbillion-technology.com> Subject: Re: [bug#35666] [PATCH 0/2] Build a thread-safe hdf5 library From: Paul Garlick To: Ludovic =?ISO-8859-1?Q?Court=E8s?= , Ricardo Wurmus Date: Fri, 10 May 2019 16:27:52 +0100 In-Reply-To: <87d0kq1mr2.fsf@gnu.org> References: <20190510095630.16695-1-ludo@gnu.org> <87imuisf05.fsf@elephly.net> <87d0kq1mr2.fsf@gnu.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 35666 Cc: bavier@cray.com, 35666@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Ludo and Ricardo, > Thoughts? > I notice in the Debian rules file [1] that the "--enable-threadsafe" flag is listed as one of the SERIAL_FLAGS. In the Guix case the package hdf5-parallel-openmpi inherits its configure flags from the hdf5 (serial) package. Will we also have to explicitly delete the "--enable-threadsafe" flag from the hdf5-parallel-openmpi definition? Best regards, Paul. [1] https://sources.debian.org/src/hdf5/1.10.4+repack-10/debian/rules/ From debbugs-submit-bounces@debbugs.gnu.org Tue May 14 03:28:22 2019 Received: (at 35666) by debbugs.gnu.org; 14 May 2019 07:28:22 +0000 Received: from localhost ([127.0.0.1]:47044 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQRrJ-0007XZ-NY for submit@debbugs.gnu.org; Tue, 14 May 2019 03:28:22 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:46810) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQRrG-0007XI-NO for 35666@debbugs.gnu.org; Tue, 14 May 2019 03:28:19 -0400 X-IronPort-AV: E=Sophos;i="5.60,467,1549926000"; d="scan'208";a="305911449" Received: from unknown (HELO ribbon) ([193.50.110.224]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/AES256-GCM-SHA384; 14 May 2019 09:28:11 +0200 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Eric Bavier Subject: Re: [bug#35666] [PATCH 0/2] Build a thread-safe hdf5 library References: <20190510095630.16695-1-ludo@gnu.org> <87imuisf05.fsf@elephly.net> <87d0kq1mr2.fsf@gnu.org> Date: Tue, 14 May 2019 09:28:11 +0200 In-Reply-To: (Eric Bavier's message of "Fri, 10 May 2019 15:09:25 +0000") Message-ID: <8736lh4hro.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 35666 Cc: Ricardo Wurmus , "35666@debbugs.gnu.org" <35666@debbugs.gnu.org>, "pgarlick@tourbillion-technology.com" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Hi Eric, Eric Bavier skribis: > I think this should be fine, though I've not heard of anyone who has > relied on this feature. The "unsupported" part here is that the posix > lock used for thread-safety is not hoisted into the higher-level API > calls. So if your colleague is using the C++ interface and expecting > thread-safety, they are out of luck. So the disclaimer is that only > the low-level C interface gains thread-safety, and the rest are no > better. I=E2=80=99m not sure I understand. Do you mean that, just because you use = the C++ API instead of the C API, the library is not thread-safe? They do see crashes vanish when using the library compiled with =E2=80=98--enable-threadsafe=E2=80=99, and reliably so. Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue May 14 06:21:23 2019 Received: (at 35666-done) by debbugs.gnu.org; 14 May 2019 10:21:24 +0000 Received: from localhost ([127.0.0.1]:47484 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQUYl-00080B-Jd for submit@debbugs.gnu.org; Tue, 14 May 2019 06:21:23 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43139) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQUYj-0007zw-Sz for 35666-done@debbugs.gnu.org; Tue, 14 May 2019 06:21:22 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33009) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQUYb-0002Li-Qe; Tue, 14 May 2019 06:21:15 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=47540 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hQUYY-000699-7a; Tue, 14 May 2019 06:21:10 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Paul Garlick Subject: Re: [bug#35666] [PATCH 0/2] Build a thread-safe hdf5 library References: <20190510095630.16695-1-ludo@gnu.org> <87imuisf05.fsf@elephly.net> <87d0kq1mr2.fsf@gnu.org> <57ed425b87bca2f1fa72a936f3f8ca8caeadbb77.camel@tourbillion-technology.com> Date: Tue, 14 May 2019 12:21:08 +0200 In-Reply-To: <57ed425b87bca2f1fa72a936f3f8ca8caeadbb77.camel@tourbillion-technology.com> (Paul Garlick's message of "Fri, 10 May 2019 16:27:52 +0100") Message-ID: <87k1et1gmj.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35666-done Cc: Ricardo Wurmus , bavier@cray.com, 35666-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Paul, Paul Garlick skribis: > I notice in the Debian rules file [1] that the "--enable-threadsafe" > flag is listed as one of the SERIAL_FLAGS. In the Guix case the > package hdf5-parallel-openmpi inherits its configure flags from the > hdf5 (serial) package. > > Will we also have to explicitly delete the "--enable-threadsafe" flag > from the hdf5-parallel-openmpi definition? Good point, I think so. I did that and pushed it as 549d15712fdc1f58ce0dd11117eb79535ec19f2c. Let me know if anything is amiss! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue May 14 08:03:33 2019 Received: (at 35666) by debbugs.gnu.org; 14 May 2019 12:03:33 +0000 Received: from localhost ([127.0.0.1]:47574 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQW9a-0004Sp-44 for submit@debbugs.gnu.org; Tue, 14 May 2019 08:03:33 -0400 Received: from sender4-of-o53.zoho.com ([136.143.188.53]:21315) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQW9T-0004SY-1x for 35666@debbugs.gnu.org; Tue, 14 May 2019 08:03:27 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1557835370; cv=none; d=zoho.com; s=zohoarc; b=Zo10JyDtbJOJdny5rBT+ikz+mgGG5fp0t6PxnhEya+v+Vwml4bGHHNr5apQgDWj3IGNKGoQkL8OjYS4h/cdUhxQqwmAsQC6o5AaboSFgwfHRHEvot4rpcQCeJByDnux7khcEIDDfmOAk501iOtHb89wz2pfurrLshp1F86ExkDk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1557835370; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=RczTiyxdEkej2v5dDDIgwGIwOpNF+Zmw4g4yrJ8BZSk=; b=C/6lgFk7YnuK1ux46MLl0PzasyFGhr/33vXP3BGEopPXmH82/20mcLK5a1XgLCTfLHMXHtlDHs2monlu2xE1G0p2aPUW6pkMNuCPDcAp2VlmpOeySg3P79VRih9+S+BF9rLx5UohIOFyxTiwaleI006mfs2xUuBm5K04tm/3JHU= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1557835370; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; l=660; bh=RczTiyxdEkej2v5dDDIgwGIwOpNF+Zmw4g4yrJ8BZSk=; b=OWpYClcsShLo/HvxrQbl3J8L9qdglor0Kz1tpeOI3+7BA+9DySa8zRANTog1Ozim 6+cDmEDTeMXvrZnnfbjQRF+k7/rfGrMcxU/3GreeEvL2ObWU9wXME9Jt1r1dCuNaXXu FX2hnHy5V6LF6kEVQ0d52EL9DovbBHTwKcD68FT0= Received: from localhost (141.80.218.143 [141.80.218.143]) by mx.zohomail.com with SMTPS id 1557835365671145.94069199054786; Tue, 14 May 2019 05:02:45 -0700 (PDT) References: <20190510095630.16695-1-ludo@gnu.org> <87imuisf05.fsf@elephly.net> <87d0kq1mr2.fsf@gnu.org> User-agent: mu4e 1.2.0; emacs 26.2 From: Ricardo Wurmus To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#35666] [PATCH 0/2] Build a thread-safe hdf5 library In-reply-to: <87d0kq1mr2.fsf@gnu.org> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Tue, 14 May 2019 14:02:41 +0200 Message-ID: <87a7fp8cri.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35666 Cc: bavier@cray.com, 35666@debbugs.gnu.org, pgarlick@tourbillion-technology.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Ludovic Court=C3=A8s writes: >> Do we have contact to the hdf5 developers to ask what the implications >> of =E2=80=9Cenable-unsupported=E2=80=9D are? > > I think it=E2=80=99s a warranty-void kind of flag: by passing it, the user > asserts they understand they=E2=80=99re using a configuration not =E2=80= =9Cofficially > supported=E2=80=9D by the HDF Group, meaning that if it=E2=80=99s buggy, = we=E2=80=99re on our > own. I don=E2=80=99t object to adding the option. It sounds like you confirmed = that it fixes serious problems in practise, so I think it=E2=80=99s a good idea = to enable it. -- Ricardo From debbugs-submit-bounces@debbugs.gnu.org Tue May 14 10:40:49 2019 Received: (at 35666) by debbugs.gnu.org; 14 May 2019 14:40:49 +0000 Received: from localhost ([127.0.0.1]:49581 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQYbp-0000P4-AA for submit@debbugs.gnu.org; Tue, 14 May 2019 10:40:49 -0400 Received: from esa2.cray.iphmx.com ([68.232.143.164]:55293) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQYbk-0000Ol-5T for 35666@debbugs.gnu.org; Tue, 14 May 2019 10:40:48 -0400 X-IronPort-AV: E=Sophos;i="5.60,469,1549929600"; d="scan'208";a="25681966" X-Cray-OBMMKR: 1433258124 25681966 Received: from mail-dm3nam03lp2053.outbound.protection.outlook.com (HELO NAM03-DM3-obe.outbound.protection.outlook.com) ([104.47.41.53]) by ob1.cray.iphmx.com with ESMTP/TLS/AES256-SHA256; 14 May 2019 15:40:36 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crayinc.onmicrosoft.com; s=selector1-cray-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5NZe5THstW0VKXOY0uO+sAxk1pNE36pd3T6OZaD4NFM=; b=gi6sNDlemQ11E85D8H/OxH7nQ3cugvXMIzhvHOvpu7oaDdlvxxPT7dKAX4gDo6Oz0hpeg8gi12+rYpw4ezUpy/Q4aHdsaJFd0PaZH3cZLk6rHN8KTjL13I4YTmN+rMrdCCS5ZUYf8e3t78kRgxlT9nXvwXqF3IObkPN5//n864Q= Received: from CY4PR1101MB2325.namprd11.prod.outlook.com (10.173.195.145) by CY4PR1101MB2071.namprd11.prod.outlook.com (10.172.77.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1878.25; Tue, 14 May 2019 14:40:35 +0000 Received: from CY4PR1101MB2325.namprd11.prod.outlook.com ([fe80::c1a7:d7c4:179d:dac8]) by CY4PR1101MB2325.namprd11.prod.outlook.com ([fe80::c1a7:d7c4:179d:dac8%5]) with mapi id 15.20.1878.024; Tue, 14 May 2019 14:40:35 +0000 From: Eric Bavier To: =?Windows-1252?Q?Ludovic_Court=E8s?= Subject: Re: [bug#35666] [PATCH 0/2] Build a thread-safe hdf5 library Thread-Topic: [bug#35666] [PATCH 0/2] Build a thread-safe hdf5 library Thread-Index: AQHVBxazSZMuW4Hz1k+ocl3x9CUKrqZkP5EAgAAU7bmAACCzXYAFydSOgAB3Z0U= Date: Tue, 14 May 2019 14:40:35 +0000 Message-ID: References: <20190510095630.16695-1-ludo@gnu.org> <87imuisf05.fsf@elephly.net> <87d0kq1mr2.fsf@gnu.org> , <8736lh4hro.fsf@gnu.org> In-Reply-To: <8736lh4hro.fsf@gnu.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=bavier@cray.com; x-originating-ip: [136.162.2.1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f31fe801-c7c2-4c46-201f-08d6d87a1ff1 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(2017052603328)(7193020); SRVR:CY4PR1101MB2071; x-ms-traffictypediagnostic: CY4PR1101MB2071: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-forefront-prvs: 0037FD6480 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(396003)(346002)(366004)(376002)(136003)(39850400004)(199004)(189003)(26005)(186003)(486006)(86362001)(446003)(11346002)(476003)(14444005)(5660300002)(66066001)(256004)(316002)(4326008)(7736002)(3846002)(6116002)(81166006)(25786009)(52536014)(305945005)(2906002)(8936002)(74316002)(66446008)(66946007)(64756008)(73956011)(76116006)(66556008)(66476007)(229853002)(7696005)(55016002)(9686003)(6436002)(14454004)(66574012)(53936002)(54906003)(76176011)(478600001)(6506007)(53546011)(102836004)(99286004)(6246003)(6916009)(71190400001)(81156014)(8676002)(71200400001)(68736007)(33656002); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR1101MB2071; H:CY4PR1101MB2325.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: H7Wj497EjUwjcfg3vNnDNHV+6S1KraVS6cxbyt9hBAsOU2IosQlPsu63vHriaxdke2aXv0WDIX2D5iFpqMj7MunzsPVFDife+cF1yAYOiclp/SOt39GvmmfnYGjQIa5esmA5f2pJDprFGS1dudRvto/vVYB1Ii8GBDtKeB0QJhDfLjuBk5vri8oZztHtj+TNINRsoSIBiiLKN/vNp2hM1Hg6wH8gi5MGMlQ2wNY09EfXkAX6I66yzzukEDzJC2wLPnQuoAQQxkikJ4LbZ89ttaWopoSXVUHuRczcnF3pr9MoDCK1Ej6LuQKcaw7p5O5IKEEchXRc7xfBmxW1OK5gtPYexLtGeVThL5A8D5CnJhrgGWA5Jf8nXneBceb31Xc6WpcL4FSFSBavxdTp4+ayLCIEgPkPcX8OASXMTBUxKbg= Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: cray.com X-MS-Exchange-CrossTenant-Network-Message-Id: f31fe801-c7c2-4c46-201f-08d6d87a1ff1 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 May 2019 14:40:35.1968 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: e7b8488a-c0cd-4614-aae1-996bfabec247 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1101MB2071 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35666 Cc: Ricardo Wurmus , "35666@debbugs.gnu.org" <35666@debbugs.gnu.org>, "pgarlick@tourbillion-technology.com" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > I=92m not sure I understand. Do you mean that, just because you use the > C++ API instead of the C API, the library is not thread-safe? The thread-safety of the C++ interface itself is not guaranteed/"supported"= . > They do see crashes vanish when using the library compiled with > =91--enable-threadsafe=92, and reliably so. Great. I'm not familiar enough with the C++ interface code to say which ar= eas might cause problems in a threaded context. It's likely that whatever = problems they were seeing before was not at the interface layer but deeper. Eric Bavier, Scientific Libraries, Cray Inc. ________________________________________ From: Ludovic Court=E8s Sent: Tuesday, May 14, 2019 02:28 To: Eric Bavier Cc: Ricardo Wurmus; 35666@debbugs.gnu.org; pgarlick@tourbillion-technology.= com Subject: Re: [bug#35666] [PATCH 0/2] Build a thread-safe hdf5 library Hi Eric, Eric Bavier skribis: > I think this should be fine, though I've not heard of anyone who has > relied on this feature. The "unsupported" part here is that the posix > lock used for thread-safety is not hoisted into the higher-level API > calls. So if your colleague is using the C++ interface and expecting > thread-safety, they are out of luck. So the disclaimer is that only > the low-level C interface gains thread-safety, and the rest are no > better. I=92m not sure I understand. Do you mean that, just because you use the C++ API instead of the C API, the library is not thread-safe? They do see crashes vanish when using the library compiled with =91--enable-threadsafe=92, and reliably so. Thanks, Ludo=92. From unknown Fri Aug 15 02:03:17 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 12 Jun 2019 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator