mysql client (5.1.73) connections to localhost or hosts given as ip address
work. however, when you supply a hostname you get a "Segmentation fault (core dumped)".
The system is running bind99-9.9.5 and resolv.conf revers to localhost as nameserver. Nameresolution works without problems. Another FBSD10 system with the default resolver shows the same behavior.
# gdb mysql mysql.core
Core was generated by `mysql'.
Program terminated with signal 11, Segmentation fault.
(gdb) bt
#0 0x0000000801da1713 in gethostent () from /lib/libc.so.7
#1 0x0000000801d9ff2f in nsdispatch () from /lib/libc.so.7
#2 0x0000000801d9e89f in gethostbyname_r () from /lib/libc.so.7
#3 0x0000000801d9e5e4 in gethostbyname_r () from /lib/libc.so.7
#4 0x0000000800cfd410 in mysql_real_connect () from /usr/local/lib/mysql/libmysqlclient.so.16
#5 0x00000000004047da in ?? ()
#6 0x0000000000404069 in ?? ()
#7 0x0000000000403adf in ?? ()
#8 0x0000000800631000 in ?? ()
#9 0x0000000000000000 in ?? ()
Fix:
?
How-To-Repeat: Just connect to a mysql server via network:
mysql -h <hostname>
and you get the coredump.