Malformed packet with mariadb-server-10.0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
exim4 (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned | ||
mariadb-10.0 (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
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-
mariadb-server:
Installed: (none)
Candidate: 10.0.29-
Version table:
10.
500 http://
500 http://
500 http://
500 http://
10.0.24-7 500
500 http://
500 http://
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://
500 http://
100 /var/lib/
4.
500 http://
Description: Ubuntu 16.04.1 LTS
Release: 16.04
It appears that exim4 is using libmysqlclient.
The exim4 from 14.04 on other hand was using libmysqlclient.
strace of mariadb instance during the malformed packet moment:
[pid 27743] recvfrom(0, "\215\242\
[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\
[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-
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).
tags: | added: xenial |
affects: | mysql-5.7 (Ubuntu) → mariadb-10.1 (Ubuntu) |
Changed in mariadb-10.0 (Ubuntu): | |
status: | New → Confirmed |
affects: | mariadb-10.1 (Ubuntu) → mariadb-10.0 (Ubuntu) |
Changed in exim4 (Ubuntu): | |
status: | Confirmed → Won't Fix |
Status changed to 'Confirmed' because the bug affects multiple users.