This is the mail archive of the libc-help@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] |
(...)
mmap(NULL, 4896, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS, -1, 0) =
0x7f5fd97df000
mprotect(0x7f5fd97df000, 4096, PROT_NONE) = -1 ENOMEM (Cannot allocate memory)
Have you checked available memory on your system ? Or user limit ?
You test program is going to allocate 79 + 1 pages for bm 1 + 1 for each double arrays (x 40000)
So in the end your program is allocating 80080 pages, so about 312MBytes.
It not that big for a 64bits system.
afaics in gdb, the mprotect fails at i=32756. it's near to 2^15. maybe some kernel data structures are full?
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |