Fix symbolizing of OOM stack when text is mapped huge
commit154ca0e1a483947767c2e57e92d12a450c309c7b
authorBert Maher <bertrand@fb.com>
Tue, 7 Oct 2014 18:39:44 +0000 (7 11:39 -0700)
committerhhvm-bot <hhvm-bot@fb.com>
Tue, 7 Oct 2014 19:00:27 +0000 (7 12:00 -0700)
tree0e305973534f910d1773d960dc17e1c0228cf8fe
parent04dc88be72c01f51b3a148392c4b1e370ec3e93f
Fix symbolizing of OOM stack when text is mapped huge

Summary: When we map out part of .text and re-map it with huge pages, we lose
the address range -> filename mapping in /proc/self/maps, which
folly::symbolizer uses to figure out which file to search for symbols.  This
adds a pass to symbolize using /proc/self/exe, assuming no relocation.

Reviewed By: @markw65

Differential Revision: D1580689
hphp/runtime/base/memory-manager.cpp
hphp/runtime/base/stack-logger.cpp [new file with mode: 0644]
hphp/runtime/base/stack-logger.h [new file with mode: 0644]