From owner-freebsd-threads@FreeBSD.ORG Thu Feb 2 22:31:50 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 153EF16A420; Thu, 2 Feb 2006 22:31:50 +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 8A03743D46; Thu, 2 Feb 2006 22:31:49 +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 ; Thu, 2 Feb 2006 22:31:49 +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="=-9drQt/UkP/MpPR8K2lAJ" Received: from paul.mtl.distributel.net by 10.14.61.70; 02 Feb 2006 17:34:30 -0500 In-Reply-To: Content-class: urn:content-classes:message Date: Thu, 2 Feb 2006 17:34:30 -0500 Message-ID: <1138919670.45596.16.camel@paul> X-MS-Has-Attach: yes X-MS-TNEF-Correlator: Thread-Topic: pthread malloc and abort() (Was: libthr question) thread-index: AcYoSHTikyXUITU4RQGUHnngvHvRvQ== References: From: "Paul Khavkine" To: "Daniel Eischen" Cc: freebsd-threads@freebsd.org Subject: Re: pthread malloc and abort() (Was: 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: Thu, 02 Feb 2006 22:31:50 -0000 --=-9drQt/UkP/MpPR8K2lAJ Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2006-02-01 at 14:10 -0500, Daniel Eischen wrote: > On Wed, 1 Feb 2006, Paul Khavkine wrote: >=20 > > > > Hi Daniel. > > > > > > I tried running the application with Electric Fence and this is what i > > get: > > > > ElectricFence Exiting: mmap() failed: Cannot allocate memory >=20 > I've no clue. ulimits? >=20 Hi. I had no luck setting up ElectricFence. Now my question is, the application dies with either free() or realloc() errors and sig Abort. However it does not produce a core dump, even when i run it in gdb, gdb either dies itself with sig abort or says something like "abort, process went away". Is this normal, it seems that it SHOULD produce a core file. Btw, the program is compiled with libpthread. OS version is: 5.4-RELEASE-p6 SMP Hardware is: DL360 G4 dual Xeon 3Ghz, 2G memory, 2x36G U320 drives in RAID1 config. This does not happend when running a UP kernel, only SMP. Any pointers on why this is happening ? Paul --=-9drQt/UkP/MpPR8K2lAJ 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) iQCVAwUAQ+KI9vkjFY05CfyYAQLMqAP/Xz3MFh46WMARS6rRhT2i52YRnZ9dYCTt j4QtwaDpD3KCUrawyeGWAMDdhPtVnZ635k0ztqVy+KLzGWOmUz1tA6U38QjPGTTb cogexxPtH128CXvRbaa+5lsoimL5nt9IXp7Yeyb70pfuckHZNlqpFKq+viIDn4Yi 0uM2t453aBU= =bzP7 -----END PGP SIGNATURE----- --=-9drQt/UkP/MpPR8K2lAJ--