Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Feb 2014 10:23:20 GMT
From:      Lutz Rabing <lutz.rabing@omc.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/186509: mysql client core dumps in name resolution
Message-ID:  <201402061023.s16ANK2O005135@oldred.freebsd.org>
Resent-Message-ID: <201402061030.s16AU0ti022943@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         186509
>Category:       ports
>Synopsis:       mysql client core dumps in name resolution
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 06 10:30:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Lutz Rabing
>Release:        FreeBSD 10.0-STABLE amd64
>Organization:
OMCnet Internet Service GmbH
>Environment:
FreeBSD XXX 10.0-STABLE FreeBSD 10.0-STABLE #0 r261095: Mon Jan 27 09:44:50 CET 2014     root@XXX:/usr/obj/usr/src/sys/OMC  amd64
>Description:
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 ?? ()
>How-To-Repeat:
Just connect to a mysql server via network:

 mysql -h <hostname>

and you get the coredump.
>Fix:
?

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402061023.s16ANK2O005135>