debugging - Understanding the output of electric fence and gdb -


when debugging program terminates segfault, electric fence, in conjunction gdb, returns this:

"electricfence exiting: mprotect() failed: cannot allocate memory [thread 0xb0bd4b70 (lwp 5363) exited] program exited code 0377.

i thought electric fence more helpful. mean? how can interpret piece of information? there doesn't seem stack left can at, or @ least bt won't return anything.

any suggestion appreciated.

thanks!

you have run out of memory map areas. default known low when using debug allocators. can adjusted @ runtime via

echo 128000 > /proc/sys/vm/max_map_count 

or adding line /etc/sysctl.conf , rebooting:

vm.max_map_count = 128000 

the max_map_count number defaults 65530 , can increased high max_int if necessary.

for more information see:


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -