Your message dated Tue, 01 Sep 2020 13:19:49 +0000
with message-id <[email protected]>
and subject line Bug#966633: fixed in mariadb-10.3 1:10.3.24-2
has caused the Debian Bug report #966633,
regarding libmariadb3: In Perl, doing a ping() after a disconnect() causes a
segfault using DBD::mysql
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.)
--
966633: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=966633
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libmariadb3
Version: 1:10.3.22-0+deb10u1
Severity: important
Tags: patch
Hi,
The issue is described at https://github.com/perl5-dbi/DBD-mysql/issues/306
The following Perl script segfaults quite regularly:
use Test::More;
use DBI;
my $dbname = 'mysql';
my $user = 'user';
my $password = 'password';
chomp $password;
my $dbh = DBI->connect("dbi:mysql:$dbname;host=localhost",$user, $password,
{ mysql_auto_reconnect => 0 });
$dbh->disconnect();
ok( ! $dbh->ping(), 'dbh is disconnected and did not segv');
done_testing();
The problem is that mysql_close frees a couple of objects, but does not
set the pointer to those objects to NULL. The ping() call references
freed memory and behavior is undefined.
The patch below fixes the problem.
Regards,
Dianne.
===================================================================
--- mariadb-10.3-10.3.22.orig/libmariadb/libmariadb/mariadb_lib.c
+++ mariadb-10.3-10.3.22/libmariadb/libmariadb/mariadb_lib.c
@@ -2000,6 +2000,8 @@ mysql_close(MYSQL *mysql)
if (mysql->extension)
free(mysql->extension);
+ mysql->net.extension = NULL;
+ mysql->extension = NULL;
mysql->net.pvio= 0;
if (mysql->free_me)
free(mysql);
===================================================================
-- System Information:
Debian Release: 10.4
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.7.11 (SMP w/12 CPU cores)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)
--- End Message ---
--- Begin Message ---
Source: mariadb-10.3
Source-Version: 1:10.3.24-2
Done: =?utf-8?b?T3R0byBLZWvDpGzDpGluZW4=?= <[email protected]>
We believe that the bug you reported is fixed in the latest version of
mariadb-10.3, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Otto Kekäläinen <[email protected]> (supplier of updated mariadb-10.3 package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Tue, 01 Sep 2020 12:07:19 +0300
Source: mariadb-10.3
Binary: libmariadb-dev libmariadbclient-dev libmariadb-dev-compat libmariadb3
libmariadbd19 libmariadbd-dev mariadb-common mariadb-client-core-10.3
mariadb-client-10.3 mariadb-server-core-10.3 mariadb-server-10.3 mariadb-server
mariadb-client mariadb-backup mariadb-plugin-connect mariadb-plugin-rocksdb
mariadb-plugin-oqgraph mariadb-plugin-tokudb mariadb-plugin-mroonga
mariadb-plugin-spider mariadb-plugin-gssapi-server mariadb-plugin-gssapi-client
mariadb-plugin-cracklib-password-check mariadb-test mariadb-test-data
Architecture: source
Version: 1:10.3.24-2
Distribution: unstable
Urgency: medium
Maintainer: Debian MySQL Maintainers <[email protected]>
Changed-By: Otto Kekäläinen <[email protected]>
Description:
libmariadb-dev - MariaDB database development files
libmariadb-dev-compat - MariaDB Connector/C, compatibility symlinks
libmariadb3 - MariaDB database client library
libmariadbclient-dev - MariaDB database development files (transitional
package)
libmariadbd-dev - MariaDB embedded database, development files
libmariadbd19 - MariaDB embedded database, shared library
mariadb-backup - Backup tool for MariaDB server
mariadb-client - MariaDB database client (metapackage depending on the latest
vers
mariadb-client-10.3 - MariaDB database client binaries
mariadb-client-core-10.3 - MariaDB database core client binaries
mariadb-common - MariaDB common metapackage
mariadb-plugin-connect - Connect storage engine for MariaDB
mariadb-plugin-cracklib-password-check - CrackLib Password Validation Plugin
for MariaDB
mariadb-plugin-gssapi-client - GSSAPI authentication plugin for MariaDB client
mariadb-plugin-gssapi-server - GSSAPI authentication plugin for MariaDB server
mariadb-plugin-mroonga - Mroonga storage engine for MariaDB
mariadb-plugin-oqgraph - OQGraph storage engine for MariaDB
mariadb-plugin-rocksdb - RocksDB storage engine for MariaDB
mariadb-plugin-spider - Spider storage engine for MariaDB
mariadb-plugin-tokudb - TokuDB storage engine for MariaDB
mariadb-server - MariaDB database server (metapackage depending on the latest
vers
mariadb-server-10.3 - MariaDB database server binaries
mariadb-server-core-10.3 - MariaDB database core server files
mariadb-test - MariaDB database regression test suite
mariadb-test-data - MariaDB database regression test suite - data files
Closes: 966633
Changes:
mariadb-10.3 (1:10.3.24-2) unstable; urgency=medium
.
* Include MariaDB client plugin caching_sha2_password
* Fix Perl script segfaults by backporting patch (Closes: #966633)
Checksums-Sha1:
e4add01119a8d017c7612b3914090b782e531f0b 4772 mariadb-10.3_10.3.24-2.dsc
f4295ec2fa8306b2bb5b382b775cdeaa5ffaf4e3 218176
mariadb-10.3_10.3.24-2.debian.tar.xz
e8a3dd34071c0a72790b7bbbe136f328efd67ec2 9295
mariadb-10.3_10.3.24-2_source.buildinfo
Checksums-Sha256:
3452696ebe2d91908394534ea2f32f1fd41a72b49c8b44c48ce433b7b3c74104 4772
mariadb-10.3_10.3.24-2.dsc
7070a7df6571eb5cdf9811d0a35197e6358ec351c3bf086be13a97cb8d459279 218176
mariadb-10.3_10.3.24-2.debian.tar.xz
24c30e44522c23ce83e5c8ceeb683fb1bca0cf78f3c4a6b4676a471cf8b270f2 9295
mariadb-10.3_10.3.24-2_source.buildinfo
Files:
be5427c79c1d18cd8f5997f1eb07aa81 4772 database optional
mariadb-10.3_10.3.24-2.dsc
2429ffa2e5ed641c6f4e6e8be195aa07 218176 database optional
mariadb-10.3_10.3.24-2.debian.tar.xz
d53c59014be97658db0815fbcc596e48 9295 database optional
mariadb-10.3_10.3.24-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEmbRSsR88dMO0U+RvvthEn87o2ogFAl9OEAQACgkQvthEn87o
2ojePw//XnVYIr1EALF1iuGDHawrrjmn8VXvtKZWcOJgJzGD7URznHV0YBb7Bg5v
zHtwmrCN5TlAh6nP+q5rsMJdaNns+8p3imZXJbQY0IwWQPe1KpeAbtsWn5voDJ9c
8kQtOmbck8bmFzeXDkJXle/Un3UZSBFqww1Q4jeaY4hxiVyINPMxFe3JYXeMa9zf
YFJotUBn+4YWAd7GcLPfKYnxQ8BJZNiiOXePAtbXdRRzXOY4F0n0WNTKqGjmtXCf
CliddXEXsOGOFJ9O3S8G4i0fQy/gnmcn+hIxmLlikyANnzNoIB/Q5tk54qvVFiDK
1oAyMOxkJ+iv8ikd84EBAVVVFbA5M0Kvo+ShlAtmRII0U9zLvZ6GscJTVaKwMrO4
IZ1A+InOrOUvPbRmOS3YsJ0hvA+Ssxac64ZfZ8+BdiWf2gqc3HHL+UUGROtR/xgj
u0ZRA34fnEG0SIjJGAoojxyU5Nq1bNU3Kl1YAMXmC1WY/Vl4qsMlkNGiEimATQuH
kXR5z9H60+qf5cANTek4/l+tJ61pZ6LX0pO13ls81hsW5U7s0UoBiJ3QQC/TAiMg
3Stv2HV7IrU5g1sIFGyX1FZJCnAk9TC/meUE04CC4fJjlR48jwl6qdiyrijMaDgj
cbloytkh+5LAJGgDTiUbp2QQI08PKGUanz5HnuPGRLXVjiLy4WM=
=A79H
-----END PGP SIGNATURE-----
--- End Message ---