From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 761D21F55F for ; Thu, 14 Sep 2023 12:50:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1694695856; bh=Zmwpde77/MEidl9s7gxxGGSFaUQ+ZLlbFrakzsvy48E=; h=From:To:Subject:Date:From; b=3IKMK31/cCpaX7B4yuP/NdL5NDmwpLK6ACYgGsryuimphDwv8RwQ3vviZ7cr3FSXV wJIPy6CfoVIBoxuGhYpu56JMgCj/u2wjREPyz1+Hbbi0l0alLVNTtqEjYvcTDpL92F 3AUPkkC7WQbRY7qi2b1t705s1GL3851N9wcNfN9g= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] ds: Reset at END Date: Thu, 14 Sep 2023 12:50:56 +0000 Message-ID: <20230914125056.1898553-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: This seems to avoid some DBI teardown segfaults on OpenBSD 7.3; but there may be other places where something similar is necessary. --- lib/PublicInbox/DS.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/PublicInbox/DS.pm b/lib/PublicInbox/DS.pm index d47df491..919a4b67 100644 --- a/lib/PublicInbox/DS.pm +++ b/lib/PublicInbox/DS.pm @@ -55,6 +55,9 @@ our ( Reset(); +# clobber everything explicitly to avoid DESTROY ordering problems w/ DBI +END { Reset() } + ##################################################################### ### C L A S S M E T H O D S #####################################################################