unofficial mirror of meta@public-inbox.org
 help / color / mirror / Atom feed
* [PATCH] ds: Reset at END
@ 2023-09-14 12:50 Eric Wong
  2023-09-14 13:02 ` [PATCH 2/1] test_common: call DS->Reset instead of cleanup_task Eric Wong
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Wong @ 2023-09-14 12:50 UTC (permalink / raw)
  To: meta

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
 #####################################################################

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-09-14 20:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-14 12:50 [PATCH] ds: Reset at END Eric Wong
2023-09-14 13:02 ` [PATCH 2/1] test_common: call DS->Reset instead of cleanup_task Eric Wong
2023-09-14 20:52   ` [PATCHv2 2/1] test_common: eliminate call to non-existent cleanup_task Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).