🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #5733

Bug#1154898: [debian-mysql] Bug#1154898: libmariadb3: query fails with Lost connection when option file sets max_allowed_packet

#5733
From: Aaron Boeker
Date: Mon, 23 Nov 2026 12:10
185 lines
9967 bytes
This is a multi-part message in MIME format.
--------------UdTtcjnbnZdvI5JMCK3LR72t
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

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@example.org
   echo "=== $d: without option file"
   docker exec -w /tmp -e HOME=/nonexistent $d-mdb ./repro repro 
repro-pass reprodb user22@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?

--------------UdTtcjnbnZdvI5JMCK3LR72t
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hello Otto,<br>
    <br>
    As far as I can tell, the issue exists in unstable with libmariadb3
    1:11.8.9+ds-4.
    <div style="font-family: sans-serif;">
      <p>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. </p>
      <p>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. </p>
    </div>
    <br>
    #####################<br>
    Repro script results:<br>
    #####################<br>
    trixie, libmariadb3 1:11.8.9+ds-0+deb13u1, server 11.8.9 Debian:<br>
      with option file:   opts=1 → query failed: errno=2013 Lost
    connection...<br>
      without option file: opts=1 → ok: 1 row(s)<br>
    <br>
    sid,   libmariadb3 1:11.8.9+ds-4,          server 11.8.9 Debian:<br>
      with option file:   opts=1 → query failed: errno=2013 Lost
    connection...<br>
      without option file: opts=1 → ok: 1 row(s)<br>
    <br>
    <br>
    ###########################<br>
    repro steps on debian:sid<br>
    ###########################<br>
    printf '[client]\nmax_allowed_packet = 16M\n' &gt; rh16.my.cnf<br>
    mkdir -p rh16 &amp;&amp; cp rh16.my.cnf rh16/.my.cnf<br>
    <br>
    for d in trixie sid; do<br>
      docker rm -f $d-mdb 2&gt;/dev/null<br>
      docker run -d --name $d-mdb debian:$d sleep infinity<br>
      docker exec $d-mdb apt-get update -qq<br>
      docker exec -e DEBIAN_FRONTEND=noninteractive $d-mdb \<br>
        apt-get install -y -qq mariadb-server libmariadb-dev gcc
    mariadb-client<br>
      docker exec $d-mdb service mariadb start; sleep 3<br>
      docker cp setup.sql $d-mdb:/tmp/ &amp;&amp; docker cp repro.c
    $d-mdb:/tmp/<br>
      docker exec -i $d-mdb mariadb &lt; setup.sql<br>
      docker cp rh16.my.cnf $d-mdb:/tmp/rh16/.my.cnf<br>
      docker exec $d-mdb bash -c 'gcc -O0 -o /tmp/repro /tmp/repro.c
    $(mariadb_config --cflags --libs)'<br>
      echo "=== $d: with option file"<br>
      docker exec -w /tmp -e HOME=/tmp/rh16 $d-mdb ./repro repro
    repro-pass reprodb <a class="moz-txt-link-abbreviated" href="mailto:user22@example.org">user22@example.org</a><br>
      echo "=== $d: without option file"<br>
      docker exec -w /tmp -e HOME=/nonexistent $d-mdb ./repro repro
    repro-pass reprodb <a class="moz-txt-link-abbreviated" href="mailto:user22@example.org">user22@example.org</a><br>
      docker exec $d-mdb dpkg -l libmariadb3 | tail -1<br>
    done<br>
    <br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 2026-11-23 1:41 a.m., Otto
      Kekäläinen wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAOU6tACX2vDV91biysw+Z+aq4O5gjyb658iPu1Bde=FnjVUeyg@mail.gmail.com">
      <pre wrap="" class="moz-quote-pre">Hi,

This is related to this item in the changelog
(<a class="moz-txt-link-freetext" href="https://tracker.debian.org/media/packages/m/mariadb/changelog-111.8.9ds-0deb13u1">https://tracker.debian.org/media/packages/m/mariadb/changelog-111.8.9ds-0deb13u1</a>):

  * 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?
</pre>
    </blockquote>
    <br>
  </body>
</html>

--------------UdTtcjnbnZdvI5JMCK3LR72t--
Technical Details
Message-ID: <O2B1T-dFj8-11@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!news.nntp4.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <O2n8B-dxCt-25@gated-at.bofh.it> <O2v6a-dBUY-3@gated-at.bofh.it> <O2n8B-dxCt-25@gated-at.bofh.it> <O2v6a-dBUY-3@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!news.nntp4.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Aaron Boeker <aaron@maplecube.net>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1154898: [debian-mysql] Bug#1154898: libmariadb3: query fails with Lost connection when option file sets max_allowed_packet
Date: Mon, 23 Nov 2026 13:10:01 +0100
Message-ID: <O2B1T-dFj8-11@gated-at.bofh.it>
References: <O2n8B-dxCt-25@gated-at.bofh.it> <O2v6a-dBUY-3@gated-at.bofh.it> <O2n8B-dxCt-25@gated-at.bofh.it> <O2v6a-dBUY-3@gated-at.bofh.it>
X-Original-To: 1154898@bugs.debian.org
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Mon Nov 23 12:05:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.45
Reply-To: Aaron Boeker <aaron@maplecube.net>, 1154898@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: pkg-mysql-maint@lists.alioth.debian.org
X-Debian-Pr-Message: followup 1154898
X-Debian-Pr-Package: libmariadb3
X-Debian-Pr-Source: mariadb, mariadb-10.2, mariadb-10.3, mariadb-10.4, mariadb-10.5, mariadb-10.6, mariadb-connector-c
Content-Type: multipart/alternative;
 boundary="------------UdTtcjnbnZdvI5JMCK3LR72t"
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-CA
X-Greylist: delayed 341 seconds by postgrey-1.37 at buxtehude; Mon, 23 Nov 2026 12:04:00 UTC
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2004411
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 185
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Mon, 23 Nov 2026 07:58:14 -0400
X-Original-Message-ID: <80c75867-bbd4-4635-ad7e-db573f047476@maplecube.net>
X-Original-References: <c5dad01a-ffbb-46d0-9b02-d21cdd253225@maplecube.net> <CAOU6tACX2vDV91biysw+Z+aq4O5gjyb658iPu1Bde=FnjVUeyg@mail.gmail.com> <c5dad01a-ffbb-46d0-9b02-d21cdd253225@maplecube.net> <CAOU6tACX2vDV91biysw+Z+aq4O5gjyb658iPu1Bde=FnjVUeyg@mail.gmail.com>