Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jul 2010 00:14:58 +0300
From:      "Reko Turja" <reko.turja@liukuma.net>
To:        "Jeremy Chadwick" <freebsd@jdc.parodius.com>, "Henrik /KaarPoSoft" <henrik@kaarposoft.dk>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: openldap client GSSAPI authentication segfaults in fbsd8stablei386
Message-ID:  <008D0251AE4F4A2DBAA1369410565B61@rivendell>
In-Reply-To: <0228E401B70A4023A6F86A2ADAE59EF9@rivendell>
References:  <4C3CC831.7040005@kaarposoft.dk><20100713210729.GA11943@icarus.home.lan> <0228E401B70A4023A6F86A2ADAE59EF9@rivendell>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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




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