From grg@isabase.philol.msu.ru Tue Oct 26 03:24:56 1999
Return-Path: <grg@isabase.philol.msu.ru>
Received: from isabase.philol.msu.ru (isabase.philol.msu.ru [195.208.217.73])
	by hub.freebsd.org (Postfix) with ESMTP id 92F7C14DBA
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 26 Oct 1999 03:24:43 -0700 (PDT)
	(envelope-from grg@isabase.philol.msu.ru)
Received: (from grg@localhost)
	by isabase.philol.msu.ru (8.9.3/8.9.2) id OAA01997;
	Tue, 26 Oct 1999 14:24:29 +0400 (MSD)
	(envelope-from grg)
Message-Id: <199910261024.OAA01997@isabase.philol.msu.ru>
Date: Tue, 26 Oct 1999 14:24:29 +0400 (MSD)
From: Grigoriy Strokin <grg@isabase.philol.msu.ru>
Reply-To: grg@isabase.philol.msu.ru
To: FreeBSD-gnats-submit@freebsd.org
Subject: ulimit -c 0  and limits -c 0  no longer disable creating core dumps
X-Send-Pr-Version: 3.2

>Number:         14540
>Category:       kern
>Synopsis:       ulimit -c 0  and limits -c 0  no longer disable creating core dumps
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sef
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 26 03:30:00 PDT 1999
>Closed-Date:    Mon Nov 22 12:54:27 1999
>Last-Modified:  Mon Nov 22 12:55:12 PST 1999
>Originator:     Grigoriy Strokin
>Release:        FreeBSD 3.3-STABLE i386
>Organization:
Moscow University
>Environment:

	/bin/sh or bash 2.03.0(1) as login shell

>Description:

	In older versions of FreeBSD one might use ulimit -c 0 to
  disable creation of core files.
  Now neither ulimit -c 0  nor  limits -B -c 0  don't do what is expected:
  the core dumps are created, though of zero size.

   However, man limits says:
     example, if you wish to disable core dumps when starting up
     the usenet news system, but wish to set all other resource
     settings as well that apply to the 'news' account, you might
     use:

           eval `limits -U news -aBec 0`


>How-To-Repeat:

	ulimit -c 0; limits -B -c 0; cat; [press Ctrl-\]

Result: the file cat.core will be created.

>Fix:
	
	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->sef 
Responsible-Changed-By: jmas 
Responsible-Changed-When: Tue Oct 26 06:08:30 PDT 1999 
Responsible-Changed-Why:  
sef is the author of the new coredump() in kern_sig.c 
(v1.63; MFC in 1.53.2.4)

State-Changed-From-To: open->closed
State-Changed-By: sef
State-Changed-When: Mon Nov 22 12:54:27 1999
State-Changed-Why:
Version 1.53.2.6 of src/sys/kern/kern_sig.c has the fix in -stable.

>Unformatted:
