Understanding the output of electric fence and gdb

♀尐吖头ヾ 提交于 2019-12-05 04:36:11
Curtis P

You have probably run out of memory map areas. The default is known to be low when using debug allocators. This can be adjusted at runtime via

echo 128000 > /proc/sys/vm/max_map_count

or by adding this line to /etc/sysctl.conf and rebooting:

vm.max_map_count = 128000

The max_map_count number defaults to 65530 and can be increased as high as MAX_INT if necessary.

For more information see:

The output of ElectricFence simply means that it ran out of memory and can't help you.

ElectricFence imposes extremely high memory overhead, especially for programs with lots of small heap allocations.

If you are on Linux, try Valgrind instead.

Also note, that your first step for a program that dies with SIGSEGV should not be running it with ElectricFence; rather you should run the program under debugger and see where it crashes.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!