From owner-freebsd-stable@FreeBSD.ORG Wed Jul 14 21:14:53 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2781C1065679 for ; Wed, 14 Jul 2010 21:14:53 +0000 (UTC) (envelope-from reko.turja@liukuma.net) Received: from www.liukuma.net (www.liukuma.net [IPv6:2001:470:28:38a::1]) by mx1.freebsd.org (Postfix) with ESMTP id A13418FC0A for ; Wed, 14 Jul 2010 21:14:52 +0000 (UTC) Received: from www.liukuma.net (localhost [127.0.0.1]) by www.liukuma.net (Postfix) with ESMTP id AE47D1CC69; Thu, 15 Jul 2010 00:14:51 +0300 (EEST) X-DKIM: Sendmail DKIM Filter v2.8.3 www.liukuma.net AE47D1CC69 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=liukuma.net; s=liukudkim; t=1279142091; bh=vgYUKC2stKsphx5k+ThuB62rKPqPqcqHz7/sXKpwLQ0=; h=Message-ID:From:To:Cc:References:In-Reply-To:Subject:Date: MIME-Version:Content-Type:Content-Transfer-Encoding; b=f6HxRD5wxssuXPZU+JH0hRBvau+h9QMPtBQ2w5lydQnYsrUADsANFYdwRtYoP//z5 Dwzpz9KWf5W6v067QeefKwGQcZbiBDApY080bfmFaPWEuiEt9U41oy7J7eMeXz6G8c lfLmHm/y30S/8RUZU1tgRtVZgLt8oEuyEdqF4PqA= X-Virus-Scanned: amavisd-new at liukuma.net Received: from www.liukuma.net ([127.0.0.1]) by www.liukuma.net (www.liukuma.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id gGYAs91Ig1Aq; Thu, 15 Jul 2010 00:14:46 +0300 (EEST) Received: from rivendell (a91-155-174-194.elisa-laajakaista.fi [91.155.174.194]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) (Authenticated sender: ignatz@www.liukuma.net) by www.liukuma.net (Postfix) with ESMTPSA id 51E4C1CC67; Thu, 15 Jul 2010 00:14:44 +0300 (EEST) X-DKIM: Sendmail DKIM Filter v2.8.3 www.liukuma.net 51E4C1CC67 Message-ID: <008D0251AE4F4A2DBAA1369410565B61@rivendell> From: "Reko Turja" To: "Jeremy Chadwick" , "Henrik /KaarPoSoft" References: <4C3CC831.7040005@kaarposoft.dk><20100713210729.GA11943@icarus.home.lan> <0228E401B70A4023A6F86A2ADAE59EF9@rivendell> In-Reply-To: <0228E401B70A4023A6F86A2ADAE59EF9@rivendell> Date: Thu, 15 Jul 2010 00:14:58 +0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 14.0.8089.726 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8089.726 Cc: freebsd-stable@freebsd.org Subject: Re: openldap client GSSAPI authentication segfaults in fbsd8stablei386 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jul 2010 21:14:53 -0000 > I had similar issue with 8-RELEASE and cyrus-sasl2 with = cyrus-saslauthd linked against system kerberos. > > (uname -a xxx.xxx.xxx 8.0-RELEASE-p3 FreeBSD 8.0-RELEASE-p3 #1: Sat = Jun 12 00:39:22 EEST 2010=20 > root@xxx.xxx.xxx:/usr/obj/usr/src/sys/WWW i386) > > The problem manifested itself with pretty much the same backtrace when = using cyradm tool for administering cyrus=20 > mailboxes and due time constraints I solved my issue by removing all = the gssapi plugin libs from /usr/local/lib/sasl2,=20 > so my solution isn't really applicable in your case. After building perl, cyrus-sasl2 and userland/kernel with debug symbols I was able to get the following backtrace. #0 free (ptr=3D0x280871c0) at /usr/src/lib/libc/stdlib/malloc.c:3889 3889 arena_dalloc(chunk->arena, chunk, ptr); [New Thread 286ae140 (LWP 100273)] (gdb) bt #0 free (ptr=3D0x280871c0) at /usr/src/lib/libc/stdlib/malloc.c:3889 #1 0x2899ed32 in gss_release_buffer (minor_status=3D0xbfbfe4b8, = buffer=3D0x280871cc) at=20 /usr/src/lib/libgssapi/gss_release_buffer.c:41 #2 0x2899e6e2 in _gss_mg_error (m=3D0x28a86480, maj=3D851968, min=3D2) = at /usr/src/lib/libgssapi/gss_display_status.c:240 #3 0x2899afd9 in gss_init_sec_context (minor_status=3D0xbfbfe5a4, = initiator_cred_handle=3D0x0, context_handle=3D0x28630164, target_name=3D0x2861b380, input_mech_type=3D0x0, req_flags=3D58, = time_req=3D0, input_chan_bindings=3D0x0, input_token=3D0x0, actual_mech_type=3D0x0, output_token=3D0xbfbfe5a8, = ret_flags=3D0xbfbfe594, time_rec=3D0x0) at /usr/src/lib/libgssapi/gss_init_sec_context.c:156 #4 0x289936c9 in gssapi_client_mech_step (conn_context=3D0x28630160, = params=3D0x28a97080, serverin=3D0x0, serverinlen=3D0, prompt_need=3D0xbfbfe8b0, clientout=3D0xbfbfe8ac, = clientoutlen=3D0xbfbfe8a8, oparams=3D0x28a95860) at gssapi.c:1418 #5 0x285810f6 in sasl_client_step (conn=3D0x28a95000, serverin=3D0x0, = serverinlen=3D0, prompt_need=3D0xbfbfe8b0,=20 clientout=3D0xbfbfe8ac, clientoutlen=3D0xbfbfe8a8) at client.c:655 #6 0x28580ef7 in sasl_client_start (conn=3D0x28a95000, = mechlist=3D0x2861b360 "GSSAPI DIGEST-MD5 CRAM-MD5 ",=20 prompt_need=3D0xbfbfe8b0, clientout=3D0xbfbfe8ac, clientoutlen=3D0xbfbfe8a8, = mech=3D0xbfbfe8b8) at client.c:603 #7 0x2856a94c in imclient_authenticate () from = /usr/local/lib/perl5/site_perl/5.10.1/mach/auto/Cyrus/IMAP/IMAP.so #8 0x28566f5e in XS_Cyrus__IMAP__authenticate () from=20 /usr/local/lib/perl5/site_perl/5.10.1/mach/auto/Cyrus/IMAP/IMAP.so #9 0x281d8f30 in Perl_pp_entersub () at pp_hot.c:2888 #10 0x281878bc in Perl_runops_debug () at dump.c:1968 #11 0x280d80a9 in S_run_body (oldscope=3D1) at perl.c:2431 #12 0x280d7535 in perl_run (my_perl=3D0x28601100) at perl.c:2349 #13 0x08048930 in main (argc=3D6, argv=3D0xbfbfec44, env=3D0xbfbfec60) = at perlmain.c:117 I'm complete GDB-idjit though so any help in getting usable information from the following trace would be appreciated - I have the dump etc. stored away for further digging of course. -Reko=20