Bug 314471

Summary: tcsh using incorrect block size with limits
Product: [Fedora] Fedora Reporter: Daniel Qarras <dqarras>
Component: tcshAssignee: Vitezslav Crhonek <vcrhonek>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 7   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-10-01 19:00:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Daniel Qarras 2007-10-01 18:44:24 UTC
On a Fedora 7 I have set following limits (only) on /etc/security/limits.conf:

*               soft    core            0
*               hard    core            32768

When I use tcsh I get this:

% limit -h core
coredumpsize 32768 kbytes

But with zsh I get this:

$ ulimit -Hc
65536

Reading the standards below it seems unambiguous that the correct block size
should be 512:

http://www.opengroup.org/onlinepubs/000095399/utilities/ulimit.html
http://www.opengroup.org/onlinepubs/009695399/functions/ulimit.html

FWIW, zsh and ksh are using 512 and bash and tcsh are using 1024. I think tcsh
should be fixed.

A similar bug against Bash is Bug 314461.

Comment 1 Daniel Qarras 2007-10-01 18:57:28 UTC
Actually, when reading /etc/security/limits.conf it says:

#<item> can be one of the following:
#        - core - limits the core file size (KB)

So tcsh is working correctly here, only bash is incorrect here.

Please close this one.