http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59733
--- Comment #15 from Kostya Serebryany <kcc at gcc dot gnu.org> --- This looks very weird: 602001200000-602001210000 rw-p 00000000 00:00 0 602001210000-602001220000 rw-p 00000000 00:00 0 We have two adjacent mappings with the same perms which are not merged by the kernel into one. This is not what I typically see on my linux. Is this some kind of modified kernel config or something? If your kernel behaves this way no winder that mmap eventually fails.