[debian-mysql] Bug#1154898: Bug#1154898: libmariadb3: query fails with Lost connection when option file sets max_allowed_packet
Aaron Boeker
aaron at maplecube.net
Mon Nov 23 11:58:14 GMT 2026
Hello Otto,
As far as I can tell, the issue exists in unstable with libmariadb3
1:11.8.9+ds-4.
I ran the reproducer on debian:sid, with mariadb-server, libmariadb-dev
and gcc. Identical schema, identical ~/.my.cnf with max_allowed_packet =
16M under [client]. The connection with the option group read fails with
errno 2013 on the first query, while the same query without the option
group read succeeds.
This might be distinct from the CONC-821 addressing (different
interface?) as the failing path here is plain mysql_real_query plus
mysql_store_result, and the trigger is the client side
max_allowed_packet loaded via MYSQL_READ_DEFAULT_GROUP.
#####################
Repro script results:
#####################
trixie, libmariadb3 1:11.8.9+ds-0+deb13u1, server 11.8.9 Debian:
with option file: opts=1 → query failed: errno=2013 Lost connection...
without option file: opts=1 → ok: 1 row(s)
sid, libmariadb3 1:11.8.9+ds-4, server 11.8.9 Debian:
with option file: opts=1 → query failed: errno=2013 Lost connection...
without option file: opts=1 → ok: 1 row(s)
###########################
repro steps on debian:sid
###########################
printf '[client]\nmax_allowed_packet = 16M\n' > rh16.my.cnf
mkdir -p rh16 && cp rh16.my.cnf rh16/.my.cnf
for d in trixie sid; do
docker rm -f $d-mdb 2>/dev/null
docker run -d --name $d-mdb debian:$d sleep infinity
docker exec $d-mdb apt-get update -qq
docker exec -e DEBIAN_FRONTEND=noninteractive $d-mdb \
apt-get install -y -qq mariadb-server libmariadb-dev gcc mariadb-client
docker exec $d-mdb service mariadb start; sleep 3
docker cp setup.sql $d-mdb:/tmp/ && docker cp repro.c $d-mdb:/tmp/
docker exec -i $d-mdb mariadb < setup.sql
docker cp rh16.my.cnf $d-mdb:/tmp/rh16/.my.cnf
docker exec $d-mdb bash -c 'gcc -O0 -o /tmp/repro /tmp/repro.c
$(mariadb_config --cflags --libs)'
echo "=== $d: with option file"
docker exec -w /tmp -e HOME=/tmp/rh16 $d-mdb ./repro repro repro-pass
reprodb user22 at example.org
echo "=== $d: without option file"
docker exec -w /tmp -e HOME=/nonexistent $d-mdb ./repro repro
repro-pass reprodb user22 at example.org
docker exec $d-mdb dpkg -l libmariadb3 | tail -1
done
On 2026-11-23 1:41 a.m., Otto Kekäläinen wrote:
> Hi,
>
> This is related to this item in the changelog
> (https://tracker.debian.org/media/packages/m/mariadb/changelog-111.8.9ds-0deb13u1):
>
> * Backport upstream patch to fix CONC-821 (Closes: #1139473, #1141671,
> #1144671)
>
> The above was referenced in the (likely AI generated bug report) text
> but I wonder why none of the original reporters had any follow-up and
> why we haven't received any bug reports on this in Debian
> unstable/testing in all these months since 1:11.8.9+ds-2 was uploaded.
>
> Can you (manually, not AI) run your reproducer on a Debian unstable
> machine/container and tell me if the issue is actually reproducible
> there too? Or if it really only affects this 1:11.8.9+ds-0+deb13u1
> version?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-mysql-maint/attachments/20261123/d906d7b4/attachment.htm>
More information about the pkg-mysql-maint
mailing list