This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/12232] setrlimit interferes with malloc


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]