标签:style http color io os ar strong 文件 sp
calls split you maps like crazy, see also /proc/$pid/maps.
eg. change your second test program to include something like:
查看 max_map_count值:
more /proc/sys/vm/max_map_countvm.max_map_count=128000直接写到/etc/sysctl.conf中,
sysctl -p或者直接执行
echo 128000 > /proc/sys/vm/max_map_countOK 到这里问题就解决了。总结一下原因:
mprotect() failed: Cannot allocate memory
标签:style http color io os ar strong 文件 sp
原文地址:http://blog.csdn.net/smileteo/article/details/39961025