<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Package: libmariadbclient18<br>Version: 10.1.38-0+deb9u1<br>Severity: normal<br><br>Dear Maintainer,<br><br>we started receive errors on "LOAD DATA LOCAL INFILE" queries from<br>DBD::mysql when we upgraded libmariadbclient18 from 10.1.37 to 10.1.38<br><br>$ ./<a href="http://test.pl">test.pl</a> <br>DBD::mysql::db do failed: Malformed packet at ./<a href="http://test.pl">test.pl</a> line 27.<br><br>here is the script to reproduce the bug<br>$ cat <a href="http://test.pl">test.pl</a> <br>-----------------------------<br>#!/usr/bin/env perl<br># vim: ts=8 sw=4 sts=4 et<br>#<br><br>use strict;<br>use DBI;<br><br>my $dbh = DBI->connect(<br>    "dbi:mysql:test:db-host",<br>    "user", "password",<br>    { RaiseError => 1, PrintError => 0 }<br>);<br><br>my $file = '/tmp/file.test';<br>open my $out, '>', $file;<br>print $out "1|2\n";<br>close $out;<br><br>$dbh->do('DROP TABLE IF EXISTS table_name');<br>$dbh->do(<<SQL);<br>    CREATE TABLE `table_name` (<br>        `a` int(2),<br>        `b` int(2)<br>    ) ENGINE=InnoDB CHARSET=latin1<br>SQL<br><br>$dbh->do(<<SQL);<br>    LOAD DATA LOCAL INFILE '$file'<br>    INTO TABLE test.table_name<br>    FIELDS TERMINATED BY '|' (a, b)<br>SQL<br>-----------------------------<br>if we downgrade back to 10.1.37 it works as expected.<br><br>$ sudo apt install libmariadbclient18:amd64=10.1.37-0+deb9u1<br>Reading package lists... Done<br>Building dependency tree       <br>Reading state information... Done<br>The following packages will be DOWNGRADED:<br>  libmariadbclient18<br>0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.<br>Need to get 783 kB of archives.<br>After this operation, 7,168 B disk space will be freed.<br>Do you want to continue? [Y/n] <br>Get:1 <a href="http://security.debian.org">http://security.debian.org</a> stretch/updates/main amd64 libmariadbclient18 amd64 10.1.37-0+deb9u1 [783 kB]<br>Fetched 783 kB in 0s (1,110 kB/s)            <br>dpkg: warning: downgrading libmariadbclient18:amd64 from 10.1.38-0+deb9u1 to 10.1.37-0+deb9u1<br>(Reading database ... 68269 files and directories currently installed.)<br>Preparing to unpack .../libmariadbclient18_10.1.37-0+deb9u1_amd64.deb ...<br>Unpacking libmariadbclient18:amd64 (10.1.37-0+deb9u1) over (10.1.38-0+deb9u1) ...<br>Setting up libmariadbclient18:amd64 (10.1.37-0+deb9u1) ...<br>Processing triggers for libc-bin (2.24-11+deb9u4) ...<br>$ ./<a href="http://test.pl">test.pl</a> <br>$ <br><br>-- System Information:<br>Debian Release: 9.9<br>  APT prefers stable-updates<br>  APT policy: (500, 'stable-updates'), (500, 'stable')<br>Architecture: amd64 (x86_64)<br><br>Kernel: Linux 4.9.0-8-amd64 (SMP w/8 CPU cores)<br>Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)<br>Shell: /bin/sh linked to /bin/dash<br>Init: systemd (via /run/systemd/system)<br><br>Versions of packages libmariadbclient18 depends on:<br>ii  libc6         2.24-11+deb9u4<br>ii  libstdc++6    6.3.0-18+deb9u1<br>ii  mysql-common  5.8+1.0.2<br>ii  zlib1g        1:1.2.8.dfsg-5<br><br>libmariadbclient18 recommends no packages.<br><br>libmariadbclient18 suggests no packages.<br><br>-- no debconf information<br></div></div>