From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15518 invoked by alias); 29 Dec 2003 23:33:41 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 15502 invoked from network); 29 Dec 2003 23:33:41 -0000 Received: from unknown (HELO palrel11.hp.com) (156.153.255.246) by sources.redhat.com with SMTP; 29 Dec 2003 23:33:41 -0000 Received: from hplms2.hpl.hp.com (hplms2.hpl.hp.com [15.0.152.33]) by palrel11.hp.com (Postfix) with ESMTP id 5053A1C02843; Mon, 29 Dec 2003 15:33:40 -0800 (PST) Received: from napali.hpl.hp.com (napali.hpl.hp.com [15.4.89.123]) by hplms2.hpl.hp.com (8.12.10/8.12.10/HPL-PA Hub) with ESMTP id hBTNXdkI000661; Mon, 29 Dec 2003 15:33:39 -0800 (PST) Received: from napali.hpl.hp.com (napali [127.0.0.1]) by napali.hpl.hp.com (8.12.9/8.12.9/Debian-5) with ESMTP id hBTNXdVR018944; Mon, 29 Dec 2003 15:33:39 -0800 Received: (from davidm@localhost) by napali.hpl.hp.com (8.12.9/8.12.9/Debian-5) id hBTNXcJL018940; Mon, 29 Dec 2003 15:33:38 -0800 From: David Mosberger MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16368.47570.884107.787815@napali.hpl.hp.com> Date: Mon, 29 Dec 2003 23:33:00 -0000 To: Roland McGrath Cc: davidm@hpl.hp.com, Ulrich Drepper , libc-hacker@sources.redhat.com Subject: Re: Emacs dired problem triggered by NPTL-enabled glibc In-Reply-To: <200312232307.hBNN7cfb003209@magilla.sf.frob.com> References: <16353.6124.238859.232329@napali.hpl.hp.com> <200312232307.hBNN7cfb003209@magilla.sf.frob.com> Reply-To: davidm@hpl.hp.com X-URL: http://www.hpl.hp.com/personal/David_Mosberger/ X-SW-Source: 2003-12/txt/msg00100.txt.bz2 >>>>> On Tue, 23 Dec 2003 15:07:38 -0800, Roland McGrath said: >> Thanks, but I must still be missing something. setrlimit() is >> perfectly happy to set a non-page-size-aligned limit, so I don't >> understand how the code in init.c could succeed if Emacs were to >> set a limit that's greater than PTHREAD_STACK_MIN, but not >> page-aligned. Roland> You are correct. I've added a test case that creates the Roland> same situation (just by doing "ulimit -s 1023" before Roland> running a test binary). It hits the assert as well. Roland> (Production builds won't see this since they define NDEBUG.) Roland> I made the initializer round the value taken from getrlimit Roland> up to page size. Sounds great. Thanks! --david