From owner-freebsd-apache@FreeBSD.ORG Tue Sep 2 20:41:33 2008 Return-Path: Delivered-To: apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1EC981065675 for ; Tue, 2 Sep 2008 20:41:33 +0000 (UTC) (envelope-from pgollucci@p6m7g8.com) Received: from exhub015-2.exch015.msoutlookonline.net (exhub015-2.exch015.msoutlookonline.net [207.5.72.94]) by mx1.freebsd.org (Postfix) with ESMTP id C7A368FC1E for ; Tue, 2 Sep 2008 20:41:32 +0000 (UTC) (envelope-from pgollucci@p6m7g8.com) Received: from philip.hq.rws (74.93.213.161) by smtpx15.msoutlookonline.net (207.5.72.103) with Microsoft SMTP Server (TLS) id 8.1.278.0; Tue, 2 Sep 2008 13:41:32 -0700 Message-ID: <48BDA4FA.3070909@p6m7g8.com> Date: Tue, 2 Sep 2008 16:41:30 -0400 From: "Philip M. Gollucci" Organization: P6 Web Applications Inc. User-Agent: Thunderbird 2.0.0.12 (X11/20080414) MIME-Version: 1.0 To: apache@freebsd.org Content-Type: message/rfc822; name="Re: /usr/bin/limits (WAS: Re: Apache.sh on current).eml" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="Re: /usr/bin/limits (WAS: Re: Apache.sh on current).eml" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: [Fwd: Re: /usr/bin/limits (WAS: Re: Apache.sh on current)] X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Sep 2008 20:41:33 -0000 Return-Path: Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by piccollo.p6m7g8.net (8.14.2/8.14.2) with ESMTP id m826pdLI009869 for ; Tue, 2 Sep 2008 02:51:39 -0400 (EDT) (envelope-from owner-freebsd-ports@freebsd.org) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 51F3E1795B5; Tue, 2 Sep 2008 06:51:28 +0000 (UTC) (envelope-from owner-freebsd-ports@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 53C8B106568F; Tue, 2 Sep 2008 06:51:27 +0000 (UTC) (envelope-from owner-freebsd-ports@freebsd.org) Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 96E04106569F; Tue, 2 Sep 2008 06:51:15 +0000 (UTC) (envelope-from Yuriy.Tsibizov@gfk.com) Received: from mx2.gfk.ru (mx2.gfk.ru [84.21.231.139]) by mx1.freebsd.org (Postfix) with ESMTP id B76E68FC17; Tue, 2 Sep 2008 06:51:14 +0000 (UTC) (envelope-from Yuriy.Tsibizov@gfk.com) Received: from ex.hhp.local by mx2.gfk.ru (MDaemon PRO v9.6.0) with ESMTP id md50001762409.msg; Tue, 02 Sep 2008 10:51:28 +0400 Received: from bootserv.hhp.local ([10.0.0.54]) by ex.hhp.local with Microsoft SMTPSVC(6.0.3790.1830); Tue, 2 Sep 2008 10:51:26 +0400 Date: Tue, 2 Sep 2008 10:52:45 +0400 (MSD) From: Yuriy Tsibizov X-X-Sender: chibis@atwork.home.local To: Ed Schouten In-Reply-To: <20080902063016.GK99951@hoeg.nl> Message-ID: <20080902104710.S1754@atwork.home.local> References: <200809011335.m81DZW8b006033@pozo.com> <200809011436.m81Eaq2v040141@pozo.com> <20080902095229.Y1605@atwork.home.local> <20080902063016.GK99951@hoeg.nl> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-OriginalArrivalTime: 02 Sep 2008 06:51:26.0991 (UTC) FILETIME=[524361F0:01C90CC8] X-Spam-Processed: mx2.gfk.ru, Tue, 02 Sep 2008 10:51:28 +0400 (not processed: message from valid local sender) X-MDRemoteIP: 10.0.0.30 X-Return-Path: Yuriy.Tsibizov@gfk.com X-Envelope-From: Yuriy.Tsibizov@gfk.com X-MDAV-Processed: mx2.gfk.ru, Tue, 02 Sep 2008 10:51:28 +0400 Cc: ports@freebsd.org, Yuriy Tsibizov , FreeBSD Current , Claus Guttesen Subject: Re: /usr/bin/limits (WAS: Re: Apache.sh on current) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: owner-freebsd-ports@freebsd.org Errors-To: owner-freebsd-ports@freebsd.org X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_PASS autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on piccollo.p6m7g8.net On Tue, 2 Sep 2008, Ed Schouten wrote: > * Yuriy Tsibizov wrote: >> (gdb) bt >> #0 0x00000000 in ?? () >> #1 0x0804937d in main (argc=3, argv=0xbfbfed44) >> at /usr/src/usr.bin/limits/limits.c:341 >> (gdb) l >> 341 val = resources[rcswhich].func(lc, resources[rcswhich].cap, limits[rcswhich].rlim_cur, limits[rcswhich].rlim_cur); >> 342 limits[rcswhich].rlim_cur = resources[rcswhich].func(lc, str, val, val); >> 343 /* maximum value overridden by resourcename or resourcename-max */ >> 344 sprintf(str, "%s-max", resources[rcswhich].cap); >> 345 val = resources[rcswhich].func(lc, resources[rcswhich].cap, limits[rcswhich].rlim_max, limits[rcswhich].rlim_max); >> 346 limits[rcswhich].rlim_max = resources[rcswhich].func(lc, str, val, val); >> 347 } >> 348 } >> 349 } >> 350 >> (gdb) p resources >> $1 = {{cap = 0x804adc2 "cputime", func = 0x8048c84 }, { >> cap = 0x804adca "filesize", func = 0x8048c34 }, { >> cap = 0x804add3 "datasize", func = 0x8048c34 }, { >> cap = 0x804addc "stacksize", func = 0x8048c34 }, { >> cap = 0x804ade6 "coredumpsize", func = 0x8048c34 },{ >> cap = 0x804adf3 "memoryuse", func = 0x8048c34 }, { >> cap = 0x804adfd "memorylocked", func = 0x8048c34 },{ >> cap = 0x804ae0a "maxproc", func = 0x8048c94 }, { >> cap = 0x804ae12 "openfiles", func = 0x8048c94 }, { >> cap = 0x804ae1c "sbsize", func = 0x8048c34 }, { >> cap = 0x804ae23 "vmemoryuse", func = 0x8048c34 }, { >> cap = 0x0, func = 0}} > > Looks like I introduced this regression when importing MPSAFE TTY. > limits(1) dies when RLIMIT_NLIMITS is increased, but the array in > limits.c isn't extended (seems to be quite fragile). > > Can you try the attached patch for limits(1)? Thanks! Will test it this evening, but patch iteslf looks correct. Yuriy. _______________________________________________ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"