<!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' > rh16.my.cnf<br>
    mkdir -p rh16 && cp rh16.my.cnf rh16/.my.cnf<br>
    <br>
    for d in trixie sid; do<br>
      docker rm -f $d-mdb 2>/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/ && docker cp repro.c
    $d-mdb:/tmp/<br>
      docker exec -i $d-mdb mariadb < 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>