From owner-freebsd-i386@FreeBSD.ORG Mon Jul 17 15:00:33 2006 Return-Path: X-Original-To: freebsd-i386@hub.freebsd.org Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4CF5516A4E5 for ; Mon, 17 Jul 2006 15:00:33 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 60B6C43D53 for ; Mon, 17 Jul 2006 15:00:32 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k6HF0Wfa094428 for ; Mon, 17 Jul 2006 15:00:32 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k6HF0Wu1094427; Mon, 17 Jul 2006 15:00:32 GMT (envelope-from gnats) Resent-Date: Mon, 17 Jul 2006 15:00:32 GMT Resent-Message-Id: <200607171500.k6HF0Wu1094427@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, kost Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B08516A4DF for ; Mon, 17 Jul 2006 14:55:02 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id D200A43D45 for ; Mon, 17 Jul 2006 14:55:01 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k6HEt1fe017103 for ; Mon, 17 Jul 2006 14:55:01 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k6HEt1I0017102; Mon, 17 Jul 2006 14:55:01 GMT (envelope-from nobody) Message-Id: <200607171455.k6HEt1I0017102@www.freebsd.org> Date: Mon, 17 Jul 2006 14:55:01 GMT From: kost To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: i386/100439: Possible wrong setrlimit() handling X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2006 15:00:33 -0000 >Number: 100439 >Category: i386 >Synopsis: Possible wrong setrlimit() handling >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jul 17 15:00:31 GMT 2006 >Closed-Date: >Last-Modified: >Originator: kost >Release: FreeBSD 6.1-RELEASE-p2 >Organization: RopNet >Environment: FreeBSD www4.ropnet.ru 6.1-RELEASE-p2 FreeBSD 6.1-RELEASE-p2 #1: Mon Jun 26 23:56:29 MSD 2006 mar@www4.ropnet.ru:/usr/obj/usr/src/sys/WWW4 i386 >Description: I've got a wrapper written in C. It sets some limits on other scripts, which started in this wrapper. Program makes syscall setrlimit() with RLIMIT_CPU, RLIMIT_NPROC limitations and than starts some perl script like this: #!/usr/bin/perl while(1){;} This program eats CPU and dies after few seconds depending on RLIMIT_CPU parameter. There is no problem - everything correct. But there is no string in log files about process killing. I expect the following string in logs: pid 32429 (perl5.8.7), uid 0, was killed: exceeded maximum CPU limit but it's empty. Talking about RLIMIT_NPROC limit - everything Ok. I've tested this script on old 5.2.1-RELEASE FreeBSD... there was no questions... everything Ok too. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: