Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Jun 24, 2015 · 0 comments
Open

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

GoogleCodeExporter opened this issue Jun 24, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

最近在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 [email protected] on 12 Dec 2013 at 11:56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant