Bug 106708
Summary: | LTC4859-Problem with malloc() | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 3 | Reporter: | Bill Goodrich <billgo> |
Component: | glibc | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED NOTABUG | QA Contact: | Brian Brock <bbrock> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 3.0 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | s390 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2003-10-09 20:31:37 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
Bill Goodrich
2003-10-09 19:41:10 UTC
Why you expect something else? s390 has 31bit addressing, so total virtual address space is 2GB. asm-s390/processor.h:#define TASK_SIZE (0x80000000) asm-s390/processor.h:#define TASK_UNMAPPED_BASE (TASK_SIZE / 2) TASK_UNMAPPED_BASE is where mmap with NULL first argument starts to allocate memory. You have tried dynamically linked program, which means by the time when you run malloc you already have ld.so, libc.so and maybe a few other pages alread mapped at 0x40000000 .. (0x40000000 + a few MB) So there is no longer contiguous 2GB of memory. If you link your program statically, you should be able to use up to 1.9GB of memory in one chunk, otherwise you can allocate that much memory just in smaller chunks. ------ Additional Comments From billgo.com 2003-28-10 17:29 ------- subject--:Subject: [Bug 106708] LTC4859-Problem with malloc() ------ Additional Comments From billgo.com 2003-28-10 17:29 ------- subject--:Subject: [Bug 106708] LTC4859-Problem with malloc() ------ Additional Comments From billgo.com 2003-28-10 17:29 ------- subject--:Subject: [Bug 106708] LTC4859-Problem with malloc() ------ Additional Comments From billgo.com 2003-28-10 17:29 ------- subject--:Subject: [Bug 106708] LTC4859-Problem with malloc() ------ Additional Comments From billgo.com 2003-28-10 17:29 ------- subject--:Subject: [Bug 106708] LTC4859-Problem with malloc() ------ Additional Comments From billgo.com 2003-28-10 17:29 ------- subject--:Subject: [Bug 106708] LTC4859-Problem with malloc() ------ Additional Comments From billgo.com 2003-28-10 17:29 ------- subject--:Subject: [Bug 106708] LTC4859-Problem with malloc() ------ Additional Comments From billgo.com 2003-28-10 17:29 ------- subject--:Subject: [Bug 106708] LTC4859-Problem with malloc() ------ Additional Comments From billgo.com 2003-28-10 17:29 ------- subject--:Subject: [Bug 106708] LTC4859-Problem with malloc() ------ Additional Comments From billgo.com 2003-28-10 17:29 ------- subject--:Subject: [Bug 106708] LTC4859-Problem with malloc() ------ Additional Comments From billgo.com 2003-28-10 17:29 ------- subject--:Subject: [Bug 106708] LTC4859-Problem with malloc() ------ Additional Comments From billgo.com 2003-28-10 17:29 ------- subject--:Subject: [Bug 106708] LTC4859-Problem with malloc() |