nmap causes MySQL crash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Galera |
Fix Released
|
High
|
Teemu Ollakka | ||
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Basic info:
# uname -a
Linux 2.6.32-
# rpm -qa | grep -i percona
percona-
Percona-
percona-
Percona-
Percona-
Percona-
Percona-
I can quite reliably crash MySQL by running 'nmap' against the server running it, but only as a non-root user. If I run nmap as root, all's well. I think the difference lies in how nmap scans ports when run as root vs. non-root. Some strace output:
as root, it uses "sendto()":
sendto(3, "E\0\0,
as non-root, it uses "connect()":
connect(3, {sa_family=AF_INET, sin_port=
(I don't know that it's the connection to port 4567 that is the culprit; just used those lines from strace output as examples).
MySQL dies like so:
terminate called after throwing an instance of 'boost:
what(): Transport endpoint is not connected
22:47:10 UTC - mysqld got signal 6 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.
Please help us make Percona Server better by reporting any
bugs at http://
key_buffer_
read_buffer_
max_used_
max_threads=2002
thread_count=9
connection_count=9
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 0 thread_stack 0x40000
/usr/sbin/
/usr/sbin/
/lib64/
/lib64/
/lib64/
/usr/lib64/
/usr/lib64/
/usr/lib64/
/usr/lib64/
/usr/lib64/
/usr/lib64/
/usr/lib64/
/usr/lib64/
/usr/lib64/
/usr/lib64/
/usr/lib64/
/usr/lib64/
/usr/lib64/
/usr/lib64/
/lib64/
/lib64/
You may download the Percona Server operations manual by visiting
http://
in the manual which will help you identify the cause of the crash.
130524 15:47:10 mysqld_safe Number of processes running now: 0
130524 15:47:10 mysqld_safe WSREP: not restarting wsrep node automatically
130524 15:47:10 mysqld_safe mysqld from pid file /mnt/ssd/
I saw this discussion of a very similar problem on the "Percona discussions" google group, but I'm not sure an actual bug was ever submitted - a search on this site didn't find anything, but I apologize if this ends up being a duplicate.
https:/
Thanks!
description: | updated |
affects: | percona-server → percona-xtradb-cluster |
Changed in galera: | |
assignee: | nobody → Teemu Ollakka (teemu-ollakka) |
importance: | Undecided → High |
milestone: | none → 23.2.6 |
status: | New → Confirmed |
Changed in percona-xtradb-cluster: | |
milestone: | none → 5.5.31-24.8 |
Changed in galera: | |
status: | Confirmed → In Progress |
Changed in percona-xtradb-cluster: | |
status: | Confirmed → Fix Released |
Changed in galera: | |
status: | Fix Committed → Fix Released |
Seems to be related to https:/ /bugs.launchpad .net/percona- xtradb- cluster/ +bug/1153727 .. you can follow updates in both places.