From owner-freebsd-i386@FreeBSD.ORG Wed Jul 7 13:10:04 2010 Return-Path: Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3AC831065675 for ; Wed, 7 Jul 2010 13:10:04 +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 F3D6F8FC21 for ; Wed, 7 Jul 2010 13:10:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o67DA3tu052820 for ; Wed, 7 Jul 2010 13:10:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o67DA3LX052819; Wed, 7 Jul 2010 13:10:03 GMT (envelope-from gnats) Resent-Date: Wed, 7 Jul 2010 13:10:03 GMT Resent-Message-Id: <201007071310.o67DA3LX052819@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Gabor HALASZ Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9231B1065670 for ; Wed, 7 Jul 2010 13:09:14 +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 690588FC08 for ; Wed, 7 Jul 2010 13:09:14 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o67D9DE4044166 for ; Wed, 7 Jul 2010 13:09:13 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o67D9DvV044153; Wed, 7 Jul 2010 13:09:13 GMT (envelope-from nobody) Message-Id: <201007071309.o67D9DvV044153@www.freebsd.org> Date: Wed, 7 Jul 2010 13:09:13 GMT From: Gabor HALASZ To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: i386/148425: openldap24-sasl-client segfaults on i386 X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jul 2010 13:10:05 -0000 >Number: 148425 >Category: i386 >Synopsis: openldap24-sasl-client segfaults on i386 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jul 07 13:10:03 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Gabor HALASZ >Release: 8.0-RELEASE >Organization: >Environment: FreeBSD FreeBSD8-x86.nns.hu 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC 2009 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: All ldap client application segfaults on i386 if gssapi authentication used and no ticket in ticket cache. FreeBSD8-x86# klist klist: No ticket file: /tmp/krb5cc_0 FreeBSD8-x86# ldapwhoami SASL/GSSAPI authentication started Segmentation fault (core dumped) FreeBSD8-x86# kinit root@NNS.HU's Password: FreeBSD8-x86# klist Credentials cache: FILE:/tmp/krb5cc_0 Principal: root@NNS.HU Issued Expires Principal Jul 7 15:03:40 Jul 8 01:03:40 krbtgt/NNS.HU@NNS.HU FreeBSD8-x86# ldapwhoami SASL/GSSAPI authentication started SASL username: root@NNS.HU SASL SSF: 56 SASL data security layer installed. dn:cn=root,ou=users,dc=nns,dc=hu The backtrace: (gdb) bt #0 0x2831c5c7 in free () from /lib/libc.so.7 #1 0x2850db42 in gss_release_buffer () from /usr/lib/libgssapi.so.10 #2 0x2850d512 in gss_release_name () from /usr/lib/libgssapi.so.10 #3 0x28509e69 in gss_init_sec_context () from /usr/lib/libgssapi.so.10 #4 0x28501a0f in gssapi_client_mech_step () from /usr/local/lib/sasl2/libgssapiv2.so.2 #5 0x280e94b1 in sasl_client_step () from /usr/local/lib/libsasl2.so.2 #6 0x2843f200 in ?? () #7 0x00000000 in ?? () #8 0x00000000 in ?? () #9 0xbfbfe998 in ?? () #10 0xbfbfe984 in ?? () #11 0xbfbfe994 in ?? () #12 0x2845e860 in ?? () #13 0x280e93fe in sasl_client_step () from /usr/local/lib/libsasl2.so.2 #14 0xbfbfe8d8 in ?? () #15 0x280ea135 in sasl_client_start () from /usr/local/lib/libsasl2.so.2 #16 0x00000000 in ?? () #17 0x00000000 in ?? () #18 0xbfbfe998 in ?? () #19 0xbfbfe984 in ?? () #20 0xbfbfe994 in ?? () #21 0xda4e6958 in ?? () #22 0x283abad8 in ?? () from /lib/libc.so.7 #23 0x00000000 in ?? () #24 0x283ab730 in __stderrp () from /lib/libc.so.7 #25 0xbfbfe8a8 in ?? () #26 0x2838c114 in vfprintf () from /lib/libc.so.7 Previous frame inner to this frame (corrupt stack?) On amd64 with same configuration the ldap clients are produces the corresponding sasl error message: FreeBSD8-x64# klist klist: No ticket file: /tmp/krb5cc_0 FreeBSD8-x64# ldapwhoami SASL/GSSAPI authentication started ldap_sasl_interactive_bind_s: Local error (-2) additional info: SASL(-1): generic failure: GSSAPI Error: Miscellaneous failure (see text) (unknown mech-code 2 for mech unknown) >How-To-Repeat: Install FreeBSD8, build and install openldap24-sasl-client with sasl support (WITH_SASL=true) from port, configure it, and try to use it. >Fix: >Release-Note: >Audit-Trail: >Unformatted: