Public bug reported:

When trying to connect with exim4-daemon-heavy (out of official 16.04
repository) to mariadb-server-10.0 (also out of official 16.04
repository) the following error occurs:

"MYSQL connection failed: Malformed packet"

The packages in questions are:

Package: mariadb-server
Version: 10.0.29-0ubuntu0.16.04.1

mariadb-server:
  Installed: (none)
  Candidate: 10.0.29-0ubuntu0.16.04.1
  Version table:
     10.0.29-0ubuntu0.16.04.1 500
        500 http://nz.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 
Packages
        500 http://nz.archive.ubuntu.com/ubuntu xenial-updates/universe i386 
Packages
        500 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 
Packages
        500 http://security.ubuntu.com/ubuntu xenial-security/universe i386 
Packages
     10.0.24-7 500
        500 http://nz.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        500 http://nz.archive.ubuntu.com/ubuntu xenial/universe i386 Packages

Package: exim4-daemon-heavy
Version: 4.86.2-2ubuntu2.1

exim4-daemon-heavy:
  Installed: 4.86.2-2ubuntu2.1
  Candidate: 4.86.2-2ubuntu2.1
  Version table:
 *** 4.86.2-2ubuntu2.1 500
        500 http://nz.archive.ubuntu.com/ubuntu xenial-updates/main amd64 
Packages
        500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 
Packages
        100 /var/lib/dpkg/status
     4.86.2-2ubuntu2 500
        500 http://nz.archive.ubuntu.com/ubuntu xenial/main amd64 Packages


Description:    Ubuntu 16.04.1 LTS
Release:        16.04


It appears that exim4 is using libmysqlclient.so.20, which is not compatible 
with mariadb-10.0.
The exim4 from 14.04 on other hand was using libmysqlclient.so.18, which could 
be replaced by libmariadbclient18 from mariadb repository. There is no such 
equivalent for libmysqlclient20.

strace of mariadb instance during the malformed packet moment:
[pid 27743] recvfrom(0, 
"\215\242\276\1\0\0\0@\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0acs\0\24\33\272\343E^LN\260\201\350s<F\352\36\301\343\2#5mail\0mysql_native_password\0R\3_os\5Linux\f_client_name\10libmysql\4_pid\0042375\17_client_version\0065.7.17\t_platform\6x86_64",
 167, MSG_DONTWAIT, NULL, NULL) = 167
[pid 27743] sendto(0, "\1\0\0\2\376", 5, MSG_DONTWAIT, NULL, 0) = 5

strace of mariadb instance during connection from 14.04 version of exim4 (no 
malformed packet):
[pid 27743] recvfrom(0, "\205\246? 
\0\0\0\1!\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0acs\0\24\226\266\337\245\374\207,\236&\322\32\334Z\34K\0\305\35n?mysql_native_password\0q\3_os\20debian-linux-gnu\f_client_name\10libmysql\4_pid\0042390\17_client_version\00710.0.29\t_platform\6x86_64\fprogram_name\5mysql",
 193, MSG_DONTWAIT, NULL, NULL) = 193
[pid 27743] sendto(0, "\1\0\0\2\376", 5, MSG_DONTWAIT, NULL, 0) = 5

It appears that sendto(0, "\1\0\0\2\376"...  triggers malformed packet.


This scenario can also be replicated using mysql-client 
(5.7.17-0ubuntu0.16.04.1):

ERROR 2027 (HY000): Malformed packet

I am not sure if it is a problem with mariadb-server-10.0 or actually with 
mysql 5.7 libraries...
I used exim as an example of affected software where it cannot be used with 
mariadb-server-10.0 (being an alternative for mysql).

** Affects: exim4 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: malformed-packet

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1660503

Title:
  Malformed packet with mariadb-server-10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/exim4/+bug/1660503/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to