From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Mar 14 19:20:02 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 979081065671 for ; Fri, 14 Mar 2008 19:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 788BA8FC26 for ; Fri, 14 Mar 2008 19:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m2EJK2g3045807 for ; Fri, 14 Mar 2008 19:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m2EJK2BY045806; Fri, 14 Mar 2008 19:20:02 GMT (envelope-from gnats) Resent-Date: Fri, 14 Mar 2008 19:20:02 GMT Resent-Message-Id: <200803141920.m2EJK2BY045806@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, Patrick Cheung Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1ADBC1065678 for ; Fri, 14 Mar 2008 19:18:08 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 0CEC48FC16 for ; Fri, 14 Mar 2008 19:18:08 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m2EJElbu033180 for ; Fri, 14 Mar 2008 19:14:47 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m2EJEl42033179; Fri, 14 Mar 2008 19:14:47 GMT (envelope-from nobody) Message-Id: <200803141914.m2EJEl42033179@www.freebsd.org> Date: Fri, 14 Mar 2008 19:14:47 GMT From: Patrick Cheung To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/121711: dns/opendd segmentation fault on 7.0-RELEASE when compiled with SSL X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Mar 2008 19:20:02 -0000 >Number: 121711 >Category: ports >Synopsis: dns/opendd segmentation fault on 7.0-RELEASE when compiled with SSL >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: Fri Mar 14 19:20:02 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Patrick Cheung >Release: 7.0-RELEASE >Organization: >Environment: FreeBSD machine 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: When the port is built with USE_SOCKET_SSL, OpenDD has segmentation fault under 7.0-RELEASE when started. $ opendd -c /usr/local/etc/opendd/opendd.conf -v -- running OpenDD 0.7.8 in normal mode drop_privileges() : setgid to nogroup (gid 65533) drop_privileges() : setuid to nobody (uid 65534) main() : getting my ip address : dyndns() : Setting SSL trust certificate store to /usr/local/etc/opendd/opendd.pem Segmentation fault The problem doesn't exist in 6.2-RELEASE. >How-To-Repeat: 1. Build and install dns/opendd from the port collection. (Build with USE_SOCKET_SSL during config). 2. Modify /usr/local/etc/opendd/opendd.conf and change the following parameters: use_ssl = 1 runasdaemon = 0 iface = 3. Run the opendd program by running $ opendd -c /usr/local/etc/opendd/opendd.conf -v >Fix: After some digging, it appears the segmentation fault occurred just before calling SSL_CTX_load_verify_locations(): include/socket.c(527): if (!SSL_CTX_load_verify_locations(new_socket->ctx, pathstore, NULL)) { Immediate before the above line executes, (new_socket->ctx==NULL) is true. Calling, SSL_load_error_strings(); ERR_print_errors_fp(stderr); just before the above line will output the following just before segmentation fault, 11038:error:140A90A1:SSL routines:SSL_CTX_new:library has no ciphers:/usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/ssl_lib.c:1424: Have no idea what the problem is apart from the above. >Release-Note: >Audit-Trail: >Unformatted: