This is the mail archive of the libc-alpha@sources.redhat.com 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]

Re: memory allocation magic numbers in glibc


Franz Sirl <Franz.Sirl-kernel@lauterbach.com> writes in libc-alpha@sourceware.cygnus.com:

 ...
> So it is quite clear that after a while the area between 
> 0x08000000..0x10000000 is stuffed with shared libs and malloc() returns 
> ENOMEM then and the testcase fails.

> I guess on alpha something similar happens.

Here are the memory maps I got from the little test code I posted
yesterday.  Normal execution:

000000011fffc000-0000000120000000 rwxp ffffffffffffe000 00:00 0
0000000120000000-0000000120002000 r-xp 0000000000000000 08:04 176162     /tmp/mtest0
0000000120100000-0000000120102000 rwxp 0000000000000000 08:04 176162     /tmp/mtest0
0000000120102000-00000002189d4000 rwxp 0000000000000000 00:00 0
0000020000000000-0000020000022000 r-xp 0000000000000000 08:04 110616     /lib/ld-2.1.93.so
0000020000022000-0000020000026000 rw-p 0000000000000000 00:00 0
0000020000120000-0000020000122000 rwxp 0000000000020000 08:04 110616     /lib/ld-2.1.93.so
0000020000122000-000002000027c000 r-xp 0000000000000000 08:04 110641     /lib/libc-2.1.93.so
000002000027c000-0000020000372000 ---p 000000000015a000 08:04 110641     /lib/libc-2.1.93.so
0000020000372000-000002000038a000 rwxp 0000000000150000 08:04 110641     /lib/libc-2.1.93.so
000002000038a000-0000020000390000 rwxp 0000000000000000 00:00 0
0000020000390000-0000020040b90000 rw-p 0000000000000000 00:00 0


Execution via /lib/ld-linux.so.2:
000000011fffc000-0000000120000000 rwxp ffffffffffffe000 00:00 0
0000000120000000-0000000120002000 r-xp 0000000000000000 08:04 176162     /tmp/mtest0
0000000120100000-0000000120102000 rwxp 0000000000000000 08:04 176162     /tmp/mtest0
0000020000000000-0000020000004000 rw-p 0000000000000000 00:00 0
0000020000010000-000002000016a000 r-xp 0000000000000000 08:04 110641     /lib/libc-2.1.93.so
000002000016a000-0000020000260000 ---p 000000000015a000 08:04 110641     /lib/libc-2.1.93.so
0000020000260000-0000020000278000 rwxp 0000000000150000 08:04 110641     /lib/libc-2.1.93.so
0000020000278000-000002000027e000 rwxp 0000000000000000 00:00 0
000002000027e000-0000020000f98000 rw-p 0000000000000000 00:00 0
0000020001000000-0000020001022000 r-xp 0000000000000000 08:04 110616     /lib/ld-2.1.93.so
0000020001120000-0000020001122000 rwxp 0000000000020000 08:04 110616     /lib/ld-2.1.93.so
0000020001122000-0000020001124000 rwxp 0000000000000000 00:00 0
0000020001124000-0000020040c0a000 rw-p 0000000000000000 00:00 0


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