| Summary: | [RFE] Avoid exhausting resources when building a program with a large .bss section | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | J.H.M. Dassen (Ray) <rdassen> | ||||
| Component: | binutils | Assignee: | Nick Clifton <nickc> | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | qe-baseos-tools-bugs | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 6.1 | CC: | awiggins, jan.kratochvil, law, rbinkhor, spoyarek | ||||
| Target Milestone: | rc | Keywords: | FutureFeature, Triaged | ||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Enhancement | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2012-04-17 21:23:20 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Bug Depends On: | |||||||
| Bug Blocks: | 607248, 756082 | ||||||
| Attachments: |
|
||||||
|
Description
J.H.M. Dassen (Ray)
2011-03-28 10:13:44 UTC
Created attachment 491541 [details]
Sample program that demonstrates the problem
Here is a simple test case that shows the problem. To demonstrate the issue, set MEM to something larger than the total avail memory of the system (so that a malloc() call of that size will fail), and compile with:
gcc gcc_test.c -o gcc_test -lm -lc -Dx86_64 -fPIC -m64 -O
Then, set MEM to something smaller than avail memory (so that malloc will succeed), but still very large, and compile again. On RHEL 6, the second compile should take a very long time, and gcc can be observed to be consuming an amount of memory equal to MEM GB.
It was conditionally nakd some time ago due to engineering capacity. I can't see any way it's going to make 6.3. I'll go ahead and turn the cond_nak into a full nak and put it on the 6.4 queue. Marking as duplicate of 809616, which is a public bug. 809616 is scheduled to be resolved for RHEL 6.3. *** This bug has been marked as a duplicate of bug 809616 *** |