[pkg-cryptsetup-devel] Bug#963721: Bug#963721: libcryptsetup12 v2:2.3.3-1 seems to be breaking libssl somehow

Christian Weeks cpw at weeksfamily.ca
Fri Jun 26 16:40:31 BST 2020


Attached is the output of the various console commands, as well
as the backtrace from the broken launcher with the new lib.

Note that I am installing both amd64 and i386 versions. I do not
have cryptsetup even installed on this machine, I think this lib
is coming in from a dependency in gnome disks.

There is one key difference: in the older version, there is an
explicit libssl in the linker, but in the new version, there 
is not, even though it is somehow still being loaded.

Perhaps another lib is pulling a differing version somehow, and
this lib is stamping on it?

Thanks!

On Fri, 2020-06-26 at 17:23 +0200, Guilhem Moulin wrote:
> Control: tag -1 moreinfo
> 
> Hi Christian,
> 
> On Thu, 25 Jun 2020 at 21:58:43 -0400, Christian Weeks wrote:
> > I installed the newest version of libcryptsetup12.
> 
> Unfortunately you appeared to file this bug using Buster's
> libcryptsetup12 so the metada doesn't describe the buggy environment
> (Version: 2:2.1.0-5+deb10u2).  Please show the output of `apt upgrade
> libcryptsetup12` that yields the buggy environment.  (I.e., you don't
> encounter the bug before the command but do after the upgrade.)  The
> output of
> 
>     ldd /lib/*-linux-gnu/libcryptsetup.so.12.6.0 /sbin/cryptsetup
> 
> and
> 
>     dpkg-query -l "*cryptsetup*"
> 
> before *and* after the upgrade might be helpful too.
> 
> > Suddenly, minecraft would not run! 
> > Backtraces in gdb indicate that something is broken in SSL.
> 
> Care to share said backtrace also?
> 
> cheers
-------------- next part --------------
/lib/i386-linux-gnu/libcryptsetup.so.12.4.0:
	linux-gate.so.1 (0xf7f31000)
	libuuid.so.1 => /lib/i386-linux-gnu/libuuid.so.1 (0xf7e83000)
	libdevmapper.so.1.02.1 => /lib/i386-linux-gnu/libdevmapper.so.1.02.1 (0xf7e1e000)
	libssl.so.1.1 => /lib/i386-linux-gnu/libssl.so.1.1 (0xf7d87000)
	libcrypto.so.1.1 => /lib/i386-linux-gnu/libcrypto.so.1.1 (0xf7ac4000)
	libargon2.so.1 => /lib/i386-linux-gnu/libargon2.so.1 (0xf7ab6000)
	librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xf7aac000)
	libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf7aa6000)
	libjson-c.so.3 => /lib/i386-linux-gnu/libjson-c.so.3 (0xf7a99000)
	libblkid.so.1 => /lib/i386-linux-gnu/libblkid.so.1 (0xf7a3e000)
	libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf785a000)
	/lib/ld-linux.so.2 (0xf7f33000)
	libselinux.so.1 => /lib/i386-linux-gnu/libselinux.so.1 (0xf782b000)
	libudev.so.1 => /lib/i386-linux-gnu/libudev.so.1 (0xf77ff000)
	libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf76fb000)
	libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf76d9000)
	libpcre2-8.so.0 => /lib/i386-linux-gnu/libpcre2-8.so.0 (0xf7642000)
/lib/x86_64-linux-gnu/libcryptsetup.so.12.4.0:
	linux-vdso.so.1 (0x00007ffefefa0000)
	libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f8855e44000)
	libdevmapper.so.1.02.1 => /lib/x86_64-linux-gnu/libdevmapper.so.1.02.1 (0x00007f8855dd8000)
	libssl.so.1.1 => /lib/x86_64-linux-gnu/libssl.so.1.1 (0x00007f8855d46000)
	libcrypto.so.1.1 => /lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007f8855a5a000)
	libargon2.so.1 => /lib/x86_64-linux-gnu/libargon2.so.1 (0x00007f8855a50000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f8855a45000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f8855a3e000)
	libjson-c.so.3 => /lib/x86_64-linux-gnu/libjson-c.so.3 (0x00007f8855a31000)
	libblkid.so.1 => /lib/x86_64-linux-gnu/libblkid.so.1 (0x00007f88559e0000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f885581d000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f8855eda000)
	libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007f88557f2000)
	libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007f88557c6000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f885567f000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f885565e000)
	libpcre2-8.so.0 => /lib/x86_64-linux-gnu/libpcre2-8.so.0 (0x00007f88555ce000)
/sbin/cryptsetup:
ldd: /sbin/cryptsetup: No such file or directory

dpkg-query -l "*cryptsetup*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                  Version           Architecture Description
+++-=====================-=================-============-========================================
un  cryptsetup-initramfs  <none>            <none>       (no description available)
ii  libcryptsetup12:amd64 2:2.1.0-5+deb10u2 amd64        disk encryption support - shared library
ii  libcryptsetup12:i386  2:2.1.0-5+deb10u2 i386         disk encryption support - shared library


sudo apt install libcryptsetup12 libcryptsetup12:i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libavresample-dev libjs-jquery-ui libjson-c3:i386 libplacebo43 libpostproc-dev libqhull7deb1 libre2-6 libsrt1 sshpass
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
  libcryptsetup12 libcryptsetup12:i386
2 upgraded, 0 newly installed, 0 to remove and 37 not upgraded.
Need to get 0 B/504 kB of archives.
After this operation, 262 kB of additional disk space will be used.
Reading changelogs... Done
(Reading database ... 334894 files and directories currently installed.)
Preparing to unpack .../libcryptsetup12_2%3a2.3.3-1_amd64.deb ...
De-configuring libcryptsetup12:i386 (2:2.1.0-5+deb10u2) ...
Unpacking libcryptsetup12:amd64 (2:2.3.3-1) over (2:2.1.0-5+deb10u2) ...
Preparing to unpack .../libcryptsetup12_2%3a2.3.3-1_i386.deb ...
Unpacking libcryptsetup12:i386 (2:2.3.3-1) over (2:2.1.0-5+deb10u2) ...
Setting up libcryptsetup12:amd64 (2:2.3.3-1) ...
Setting up libcryptsetup12:i386 (2:2.3.3-1) ...
Processing triggers for libc-bin (2.30-8) ...
Scanning processes...                                                                                                                                                               
Scanning candidates...                                                                                                                                                              
Scanning processor microcode...                                                                                                                                                     
Scanning linux images...                                                                                                                                                            

Running kernel seems to be up-to-date.

The processor microcode seems to be up-to-date.

Restarting services...
 systemctl restart accounts-daemon.service colord.service cups-browsed.service fwupd.service packagekit.service polkit.service switcheroo-control.service systemd-journald.service systemd-timesyncd.service udisks2.service upower.service
Service restarts being deferred:
 systemctl restart ModemManager.service
 systemctl restart NetworkManager.service
 systemctl restart dbus.service
 systemctl restart gdm.service
 systemctl restart gdm3.service
 systemctl restart systemd-logind.service
 systemctl restart unattended-upgrades.service

No containers need to be restarted.

User sessions running outdated binaries:
 cpw @ session #2: gdm-session-wor[2588], gdm-x-session[2692], gnome-keyring-d[2629], ibus-daemon[2826], ibus-x11[2838]
 cpw @ user manager service: chrome-sandbox[39521,495681,521557], chromium[521541,521556,521558,521560,521582], DiscordPTB[39518,39522,39550], evolution[544782], firefox[517227],
  gnome-session-b[2930], gnome-shell[2959], gvfsd[2649], idea.sh[543008], java[543051], slack[495678,495682,495715], systemd[2592]
 Debian-gdm @ user manager service: systemd[1204]



>>> bt
#0  __GI___pthread_rwlock_wrlock (rwlock=0x0) at pthread_rwlock_wrlock.c:27
#1  0x00007ffff5b4e129 in CRYPTO_THREAD_write_lock () at ./liblauncher.so
#2  0x00007fffea0cec85 in OBJ_NAME_add () at /lib/x86_64-linux-gnu/libcrypto.so.1.1
#3  0x00007fffe9d49bc4 in  () at /lib/x86_64-linux-gnu/libssl.so.1.1
#4  0x00007ffff7f8617f in __pthread_once_slow (once_control=0x7fffe9da5928, init_routine=0x7fffe9d49a70) at pthread_once.c:116
#5  0x00007fffea12a6d9 in CRYPTO_THREAD_run_once () at /lib/x86_64-linux-gnu/libcrypto.so.1.1
#6  0x00007fffe9d49d43 in OPENSSL_init_ssl () at /lib/x86_64-linux-gnu/libssl.so.1.1
#7  0x00007fffe9d4da7e in SSL_CTX_new () at /lib/x86_64-linux-gnu/libssl.so.1.1
#8  0x00007fffe9e95eee in  () at /lib/x86_64-linux-gnu/libcurl.so.4
#9  0x00007fffe9e9791f in  () at /lib/x86_64-linux-gnu/libcurl.so.4
#10 0x00007fffe9e9874b in  () at /lib/x86_64-linux-gnu/libcurl.so.4
#11 0x00007fffe9e446b2 in  () at /lib/x86_64-linux-gnu/libcurl.so.4
#12 0x00007fffe9e460d3 in  () at /lib/x86_64-linux-gnu/libcurl.so.4
#13 0x00007fffe9e6682d in  () at /lib/x86_64-linux-gnu/libcurl.so.4
#14 0x00007fffe9e678c1 in curl_multi_perform () at /lib/x86_64-linux-gnu/libcurl.so.4
#15 0x00007ffff5972e7b in  () at ./liblauncher.so
#16 0x00007ffff7e76eee in  () at /lib/x86_64-linux-gnu/libstdc++.so.6
#17 0x00007ffff7f7df27 in start_thread (arg=<optimized out>) at pthread_create.c:479
#18 0x00007ffff7cc831f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95


/lib/i386-linux-gnu/libcryptsetup.so.12.6.0:
	linux-gate.so.1 (0xf7f93000)
	libuuid.so.1 => /lib/i386-linux-gnu/libuuid.so.1 (0xf7ec3000)
	libdevmapper.so.1.02.1 => /lib/i386-linux-gnu/libdevmapper.so.1.02.1 (0xf7e5e000)
	libcrypto.so.1.1 => /lib/i386-linux-gnu/libcrypto.so.1.1 (0xf7b9b000)
	libargon2.so.1 => /lib/i386-linux-gnu/libargon2.so.1 (0xf7b8d000)
	libjson-c.so.4 => /lib/i386-linux-gnu/libjson-c.so.4 (0xf7b7b000)
	libblkid.so.1 => /lib/i386-linux-gnu/libblkid.so.1 (0xf7b20000)
	libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf793c000)
	/lib/ld-linux.so.2 (0xf7f95000)
	libselinux.so.1 => /lib/i386-linux-gnu/libselinux.so.1 (0xf790f000)
	libudev.so.1 => /lib/i386-linux-gnu/libudev.so.1 (0xf78e3000)
	libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf77df000)
	libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf77bb000)
	libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf77b5000)
	libpcre2-8.so.0 => /lib/i386-linux-gnu/libpcre2-8.so.0 (0xf771e000)
/lib/x86_64-linux-gnu/libcryptsetup.so.12.6.0:
	linux-vdso.so.1 (0x00007ffd333be000)
	libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007fdf2345a000)
	libdevmapper.so.1.02.1 => /lib/x86_64-linux-gnu/libdevmapper.so.1.02.1 (0x00007fdf233ee000)
	libcrypto.so.1.1 => /lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007fdf23102000)
	libargon2.so.1 => /lib/x86_64-linux-gnu/libargon2.so.1 (0x00007fdf230f8000)
	libjson-c.so.4 => /lib/x86_64-linux-gnu/libjson-c.so.4 (0x00007fdf230e6000)
	libblkid.so.1 => /lib/x86_64-linux-gnu/libblkid.so.1 (0x00007fdf23095000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fdf22ed0000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fdf2350c000)
	libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007fdf22ea5000)
	libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007fdf22e79000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fdf22d34000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fdf22d13000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fdf22d0e000)
	libpcre2-8.so.0 => /lib/x86_64-linux-gnu/libpcre2-8.so.0 (0x00007fdf22c7c000)
/sbin/cryptsetup:
ldd: /sbin/cryptsetup: No such file or directory

dpkg-query -l "*cryptsetup*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                  Version      Architecture Description
+++-=====================-============-============-========================================
un  cryptsetup-initramfs  <none>       <none>       (no description available)
ii  libcryptsetup12:amd64 2:2.3.3-1    amd64        disk encryption support - shared library
ii  libcryptsetup12:i386  2:2.3.3-1    i386         disk encryption support - shared library


sudo apt install libcryptsetup12=2:2.1.0-5+deb10u2 libcryptsetup12:i386=2:2.1.0-5+deb10u2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libavresample-dev libjs-jquery-ui libjson-c4:i386 libplacebo43 libpostproc-dev libqhull7deb1 libre2-6 libsrt1 sshpass
Use 'sudo apt autoremove' to remove them.
The following packages will be DOWNGRADED:
  libcryptsetup12 libcryptsetup12:i386
0 upgraded, 0 newly installed, 2 downgraded, 0 to remove and 37 not upgraded.
Need to get 404 kB of archives.
After this operation, 262 kB disk space will be freed.
Do you want to continue? [Y/n] 
Get:1 http://debian.mirror.rafal.ca/debian buster/main i386 libcryptsetup12 i386 2:2.1.0-5+deb10u2 [211 kB]
Get:2 http://debian.mirror.rafal.ca/debian buster/main amd64 libcryptsetup12 amd64 2:2.1.0-5+deb10u2 [193 kB]
Fetched 404 kB in 0s (1,083 kB/s)        
dpkg: warning: downgrading libcryptsetup12:amd64 from 2:2.3.3-1 to 2:2.1.0-5+deb10u2
(Reading database ... 334894 files and directories currently installed.)
Preparing to unpack .../libcryptsetup12_2%3a2.1.0-5+deb10u2_amd64.deb ...
De-configuring libcryptsetup12:i386 (2:2.3.3-1) ...
Unpacking libcryptsetup12:amd64 (2:2.1.0-5+deb10u2) over (2:2.3.3-1) ...
dpkg: warning: downgrading libcryptsetup12:i386 from 2:2.3.3-1 to 2:2.1.0-5+deb10u2
Preparing to unpack .../libcryptsetup12_2%3a2.1.0-5+deb10u2_i386.deb ...
Unpacking libcryptsetup12:i386 (2:2.1.0-5+deb10u2) over (2:2.3.3-1) ...
Setting up libcryptsetup12:amd64 (2:2.1.0-5+deb10u2) ...
Setting up libcryptsetup12:i386 (2:2.1.0-5+deb10u2) ...
Processing triggers for libc-bin (2.30-8) ...
Scanning processes...                                                                                                                                                               
Scanning candidates...                                                                                                                                                              
Scanning processor microcode...                                                                                                                                                     
Scanning linux images...                                                                                                                                                            

Running kernel seems to be up-to-date.

The processor microcode seems to be up-to-date.

Restarting services...
 systemctl restart accounts-daemon.service colord.service cups-browsed.service fwupd.service packagekit.service polkit.service switcheroo-control.service systemd-journald.service systemd-timesyncd.service udisks2.service upower.service
Service restarts being deferred:
 systemctl restart ModemManager.service
 systemctl restart NetworkManager.service
 systemctl restart dbus.service
 systemctl restart gdm.service
 systemctl restart gdm3.service
 systemctl restart systemd-logind.service
 systemctl restart unattended-upgrades.service

No containers need to be restarted.

User sessions running outdated binaries:
 cpw @ session #2: gdm-session-wor[2588], gdm-x-session[2692], gnome-keyring-d[2629], ibus-daemon[2826], ibus-x11[2838]
 cpw @ user manager service: chrome-sandbox[39521,495681,521557], chromium[521541,521556,521558,521560,521582], DiscordPTB[39518,39522,39550], evolution[544782], firefox[517227],
  gnome-session-b[2930], gnome-shell[2959], gvfsd[2649], idea.sh[543008], java[543051], slack[495678,495682,495715], systemd[2592]
 Debian-gdm @ user manager service: systemd[1204]




More information about the pkg-cryptsetup-devel mailing list