开发者

gdb: virtual memory exhausted

I am trying to debug an application using gdb on Linux. However, when loading symbols from the shared library I want to debug, gdb always fails with the error:

gdb/utils.c:904: internal error: virtual memo开发者_JAVA百科ry exhausted: can't allocate 5592 bytes.

uname shows unlimited for all parameters including vmemory. Any ideas on how to resolve this?


Try using :

ulimit -d unlimited

This will make virtual memory allocated to a user(usually few kb: do ulimit -d to know that value) to unlimited kb


What version of gdb are you using?

There was an old bug in gdb which could cause this problem:

http://sourceware.org/bugzilla/show_bug.cgi?id=9232

It however talks about memory block of much larger size than for what you are getting the error.

Also, do check up how much how much actual free space is available through top or free or vmstat.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜