Bug 133460
| Summary: | setrlimit/getrlimit should be per-process, not per-thread | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Roland McGrath <roland> | ||||||
| Component: | kernel | Assignee: | Roland McGrath <roland> | ||||||
| Status: | CLOSED NEXTRELEASE | QA Contact: | Brian Brock <bbrock> | ||||||
| Severity: | low | Docs Contact: | |||||||
| Priority: | medium | ||||||||
| Version: | rawhide | CC: | wtogami | ||||||
| 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: | 2005-01-03 08:31:46 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: | |||||||||
| Bug Depends On: | |||||||||
| Bug Blocks: | 142791 | ||||||||
| Attachments: |
|
||||||||
|
Description
Roland McGrath
2004-09-24 07:07:12 UTC
Created attachment 104249 [details]
test program for multithreaded behavior of setrlimit
gcc -g -o mt-rlimit mt-rlimit.c -lpthread
Run with some args, demonstrates the single-threaded case and dies with
SIGXFSZ.
Run with no args, demonstrates the multi-threaded case and only dies with
SIGXFSZ if the kernel is fixed.
Created attachment 104251 [details]
patch vs 2.6.9-rc2-bk9 to fix the behavior
I've submitted this patch upstream, waiting for feedback.
This patch has gone in upstream, after 2.6.9; hopefully in 2.6.10 release. 2.6.10 has this fixed. Only the RLIMIT_CPU behavior is not quite correct, everything else should be right now. |