From owner-freebsd-threads@FreeBSD.ORG Tue Jan 31 20:58:31 2006 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F0BC616A420 for ; Tue, 31 Jan 2006 20:58:31 +0000 (GMT) (envelope-from paul.khavkine@distributel.ca) Received: from ottexbe01.corp.distributel.ca (ottexbe01.corp.distributel.ca [206.80.252.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B63643D45 for ; Tue, 31 Jan 2006 20:58:31 +0000 (GMT) (envelope-from paul.khavkine@distributel.ca) Received: from 10.14.61.42 ([10.14.61.42]) by ottexbe01.corp.distributel.ca ([192.168.16.70]) via Exchange Front-End Server 10.14.61.70 ([10.14.61.70]) with Microsoft Exchange Server HTTP-DAV ; Tue, 31 Jan 2006 20:58:31 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-y1EEhy+mzDMAfUxiLTa6" Received: from paul.mtl.distributel.net by 10.14.61.70; 31 Jan 2006 16:01:03 -0500 Content-class: urn:content-classes:message Date: Tue, 31 Jan 2006 16:01:02 -0500 Message-ID: <1138741262.45596.5.camel@paul> X-MS-Has-Attach: yes X-MS-TNEF-Correlator: Thread-Topic: libthr question thread-index: AcYmqRd+HhGGLM3TSvCy+52Eg/8AGw== From: "Paul Khavkine" To: Subject: libthr question X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2006 20:58:32 -0000 --=-y1EEhy+mzDMAfUxiLTa6 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi guys. I'm having a weird problem. I have an application (FreeRADIUS) that seems to behave very strangly: 1) Compiled against libpthread it simply crashed during a stress test. Always with Signal 6, mostly with "free(): chunk is already free" error. 2) Compiled against libthr, after processing a certain number of requests, the process simply hangs and stops responding. When it does that all threads that were active stay running. When i do top i see ALOT of threads in "lthr" state, and a few in "umtx" state, like this: 72201 root 96 0 5708K 3968K lthr 1 0:01 0.00% 0.00% radiusd 72201 root 96 0 5708K 3968K lthr 0 0:01 0.00% 0.00% radiusd 72201 root 96 0 5708K 3968K umtx 1 0:01 0.00% 0.00% radiusd 72201 root 96 0 5708K 3968K umtx 0 0:01 0.00% 0.00% radiusd 72201 root 96 0 5708K 3968K lthr 0 0:01 0.00% 0.00% radiusd 72201 root 96 0 5708K 3968K lthr 1 0:01 0.00% 0.00% radiusd Any pointers on hoe to debug it ? Where to start ? Thanx Paul --=-y1EEhy+mzDMAfUxiLTa6 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iQCVAwUAQ9/QDvkjFY05CfyYAQKO/AP/VvtY7Ahb97nWu0Y1TD5FocpVBNjIlV8l diU6I2S3DJ6Ho4Qy5MljkFCbAYHCOAf1VDkzkCfSDvOb/hSqhqB92x/0GlJBmQ7y jGooHPom7rbQffiwYGkMhizG7W7SZTgrOXWbIToM29NrdKhBUDQpKZ3CDEq6Z6NR JqxFr8zWvKk= =+6YG -----END PGP SIGNATURE----- --=-y1EEhy+mzDMAfUxiLTa6--