From owner-freebsd-current@FreeBSD.ORG Thu Nov 18 05:47:38 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 75F4616A4CE for ; Thu, 18 Nov 2004 05:47:38 +0000 (GMT) Received: from mail.mcneil.com (mcneil.com [24.199.45.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 29BFE43D53 for ; Thu, 18 Nov 2004 05:47:38 +0000 (GMT) (envelope-from sean@mcneil.com) Received: from localhost (localhost.mcneil.com [127.0.0.1]) by mail.mcneil.com (Postfix) with ESMTP id E360CF20AE; Wed, 17 Nov 2004 21:47:37 -0800 (PST) Received: from mail.mcneil.com ([127.0.0.1]) by localhost (server.mcneil.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 36126-06; Wed, 17 Nov 2004 21:47:36 -0800 (PST) Received: from mcneil.com (mcneil.com [24.199.45.54]) by mail.mcneil.com (Postfix) with ESMTP id 11EF6F1983; Wed, 17 Nov 2004 21:47:36 -0800 (PST) From: Sean McNeil To: Michael Johnson In-Reply-To: <25A791B2-3920-11D9-96CC-000A958C81C6@ahze.net> References: <1100657472.74795.2.camel@server.mcneil.com> <20041117102623.P25028@carver.gumbysoft.com> <1100725008.21333.2.camel@server.mcneil.com> <20041117183453.C29048@carver.gumbysoft.com> <1100753869.21798.74.camel@server.mcneil.com> <25A791B2-3920-11D9-96CC-000A958C81C6@ahze.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-NKMMcdICEJHXLOvR21oL" Date: Wed, 17 Nov 2004 21:47:35 -0800 Message-Id: <1100756855.21798.77.camel@server.mcneil.com> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 FreeBSD GNOME Team Port X-Virus-Scanned: by amavisd-new at mcneil.com cc: current@freebsd.org Subject: Re: Why won't slapd shutdown (kill -0)? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Nov 2004 05:47:38 -0000 --=-NKMMcdICEJHXLOvR21oL Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2004-11-18 at 00:10 -0500, Michael Johnson wrote: > On Nov 17, 2004, at 11:57 PM, Sean McNeil wrote: >=20 > > On Wed, 2004-11-17 at 18:36 -0800, Doug White wrote: > >> On Wed, 17 Nov 2004, Sean McNeil wrote: > >> > >>> On Wed, 2004-11-17 at 10:28 -0800, Doug White wrote: > >>>> On Tue, 16 Nov 2004, Sean McNeil wrote: > >>>> > >>>>> This has been happening for a long time with current and hasn't=20 > >>>>> been > >>>>> resolved. When I start up slapd, I cannot stop it without kill -9=20 > >>>>> ing > >>>>> it. It would appear stuck in kse and probably has something to do=20 > >>>>> with > >>>>> kill -0: > >>>> > >>>> Mind expanding on this? The backtrace looks normal for a pthread=20 > >>>> process. > >>>> kill -0 just tests signal delivery; the process is completely=20 > >>>> unaware that > >>>> the probe occured, though. The process may also be unkillable if=20 > >>>> its > >>>> stuck in some sort of I/O wait. > >>>> > >>>> Is the server busy when you signal it? > >>> > >>> Oh, OK. I didn't look at /usr/local/etc/rc.subr too closely. I have > >>> additional information, though.... > >>> > >>> It appears that all the threads are destroyed yet it is still in the > >>> thread processing loop. The process is no longer active at all. I=20 > >>> just > >>> had a similar problem happen with vlc where I closed it yet it is > >>> hanging in the same place as slapd with all the threads gone. > >> > >> Interesting... what scheduler are you using? > > > > 4BSD with PREEMPTION on. -CURRENT as of yesterday. This has been an > > issue for quite some time now, however. > > > >>> > >>> Here is the one from vlc: > >>> > >>> (gdb) bt full > >>> #0 _thr_sched_switch_unlocked (curthread=3D0x955000) at=20 > >>> pthread_md.h:226 > >> > >> I can't find a reference to this in that file. Can you run ldd=20 > >> against > >> your vlc binary? I('m curious what thread library it thinks its=20 > >> running. > > >=20 >=20 > Is this vlc 0.7.2 or 0.8.1? VLC media player 0.8.1 Janus built Nov 16 23:05 amd64/current machine. --=-NKMMcdICEJHXLOvR21oL Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBBnDd3yQsGN30uGE4RAu5gAJ9/7OlxWo1HNHUOAqCx7ltkHwpjkwCfXCFw SpS204qiTTzfZXEd+m6TSyE= =VRmI -----END PGP SIGNATURE----- --=-NKMMcdICEJHXLOvR21oL--