DapperX / project-lemon

Automatically exported from code.google.com/p/project-lemon
0 stars 0 forks source link

Debian下,程序使用内存接近限制时的BUG #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
最近在debian下测试一道内存限制为8MB的题目。编写程序的使��
�了6至7MB左右的内存。

结果显示运行错误,错误信息为:
/home/fool/Code/tsinsen/D7025/temp/_0.0/tle: error while loading shared 
libraries: libc.so.6: failed to map segment from shared object: Cannot allocate 
memory 

当程序减少内存占用到限制下3MB以下时,或增加内存限制至10
MB时正常运行,无上面错误信息。

测试使用了SPJ,为python可执行文件。程序使用g++编译。

python版本:2.7.5
g++版本:g++ (Debian 4.8.1-9) 4.8.1
系统为Debian GNU/Linux jessie/sid

Original issue reported on code.google.com by lifei...@gmail.com on 12 Dec 2013 at 11:56