Your message dated Tue, 9 Aug 2022 11:57:37 +0200
with message-id <[email protected]>
and subject line Re: Bug#1009379: pgloader: Reload libcrypto for OpenSSL 3
support
has caused the Debian Bug report #1009379,
regarding pgloader: Reload libcrypto for OpenSSL 3 support
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1009379: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1009379
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: pgloader
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu jammy ubuntu-patch
Dear Maintainer,
When running pgloader with OpenSSL 3, the binary file run triggers the
debugger after failing to load the first libcrypto option from cl+ssl.
In Ubuntu, the attached patch was applied to achieve the following:
* d/p/force-libcrypto-reload.patch: force reloading cl+ssl::libcrypto.
(LP: #1968594)
Thanks for considering the patch.
*** /tmp/tmpmjaadg0o/pgloader_3.6.3-1ubuntu1.debdiff
diff -Nru pgloader-3.6.3/debian/patches/force-libcrypto-reload.patch
pgloader-3.6.3/debian/patches/force-libcrypto-reload.patch
--- pgloader-3.6.3/debian/patches/force-libcrypto-reload.patch 1969-12-31
21:00:00.000000000 -0300
+++ pgloader-3.6.3/debian/patches/force-libcrypto-reload.patch 2022-04-12
14:44:38.000000000 -0300
@@ -0,0 +1,34 @@
+From 25e72cf986321d19f79db6b0046f642aded6ea7c Mon Sep 17 00:00:00 2001
+From: Athos Ribeiro <[email protected]>
+Date: Tue, 12 Apr 2022 14:57:58 -0300
+Subject: [PATCH] Force libcrypto reload in src/hooks.lisp
+
+cl+ssl::libcrypto is also read at startup. If not properly closed in the
+hooks, together with libssl, libcrypto will be loaded at startup and if
+the first cl+ssl file alternative fails, the debugger is invoked.
+
+* Fixes #1370
+
+Bug: https://github.com/dimitri/pgloader/issues/1370
+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/pgloader/+bug/1968594
+Forwarded: https://github.com/dimitri/pgloader/pull/1372
+Last-Update: 2022-04-12
+---
+ src/hooks.lisp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/hooks.lisp b/src/hooks.lisp
+index c8cf1bc..ccebfad 100644
+--- a/src/hooks.lisp
++++ b/src/hooks.lisp
+@@ -24,6 +24,7 @@
+ "Close Foreign libs in use by pgloader at application save time."
+ (let (#+sbcl (sb-ext:*muffled-warnings* 'style-warning))
+ (mapc #'cffi:close-foreign-library '(cl+ssl::libssl
++ cl+ssl::libcrypto
+ mssql::sybdb))))
+
+ (defun open-foreign-libs ()
+--
+2.34.1
+
diff -Nru pgloader-3.6.3/debian/patches/series
pgloader-3.6.3/debian/patches/series
--- pgloader-3.6.3/debian/patches/series 2021-12-09 09:55:15.000000000
-0300
+++ pgloader-3.6.3/debian/patches/series 2022-04-12 14:43:18.000000000
-0300
@@ -1 +1,2 @@
#bionic-theme-options
+force-libcrypto-reload.patch
-- System Information:
Debian Release: bookworm/sid
APT prefers jammy
APT policy: (500, 'jammy')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.15.0-25-generic (SMP w/16 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
--
Athos Ribeiro
--- End Message ---
--- Begin Message ---
Version: 3.6.4-1
Re: Athos Ribeiro
> * d/p/force-libcrypto-reload.patch: force reloading cl+ssl::libcrypto.
> (LP: #1968594)
Hi,
this was already applied in pgloader 3.6.4.
Christoph
--- End Message ---