This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/12232] setrlimit interferes with malloc
- From: "bkorb at gnu dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Thu, 18 Nov 2010 20:14:41 +0000
- Subject: [Bug libc/12232] setrlimit interferes with malloc
- Auto-submitted: auto-generated
- References: <bug-12232-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=12232
Bruce Korb <bkorb at gnu dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WORKSFORME |
--- Comment #2 from Bruce Korb <bkorb at gnu dot org> 2010-11-18 20:14:25 UTC ---
You did not read this very well. I know rlimits are enforced
in the kernel. The problem is that malloc() works correctly
when you use it before calling setrlimit and fails otherwise.
You have some responsibility for ensuring that you are correctly
using the interface before blowing this off. Malloc should not
fail when you call setrlimit to 10,000,000 before the first call,
whether the fault lies with your code or the kernel.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.