From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Feb 6 10:30:00 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C84DB8AD for ; Thu, 6 Feb 2014 10:30:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A03D4102F for ; Thu, 6 Feb 2014 10:30:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s16AU0XZ022944 for ; Thu, 6 Feb 2014 10:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s16AU0ti022943; Thu, 6 Feb 2014 10:30:00 GMT (envelope-from gnats) Resent-Date: Thu, 6 Feb 2014 10:30:00 GMT Resent-Message-Id: <201402061030.s16AU0ti022943@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Lutz Rabing Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 756E62A5 for ; Thu, 6 Feb 2014 10:23:21 +0000 (UTC) Received: from oldred.freebsd.org (oldred.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5EEA31FAF for ; Thu, 6 Feb 2014 10:23:21 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id s16ANKqQ005141 for ; Thu, 6 Feb 2014 10:23:20 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id s16ANK2O005135; Thu, 6 Feb 2014 10:23:20 GMT (envelope-from nobody) Message-Id: <201402061023.s16ANK2O005135@oldred.freebsd.org> Date: Thu, 6 Feb 2014 10:23:20 GMT From: Lutz Rabing To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/186509: mysql client core dumps in name resolution X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Feb 2014 10:30:00 -0000 >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 and you get the coredump. >Fix: ? >Release-Note: >Audit-Trail: >Unformatted: