Segfault when calling hphpd_break() with no debugger attached
commit075926978e54d4b06306c7eb10cd48879f56c683
authorMike Magruder <mikemag@fb.com>
Thu, 16 May 2013 17:20:21 +0000 (16 10:20 -0700)
committerSara Golemon <sgolemon@fb.com>
Mon, 20 May 2013 20:52:26 +0000 (20 13:52 -0700)
treeebaf697434f7982519de564762f93a113c78fce8
parent99fcd4295e1d5f7ad27b639979b60b0cbe22a446
Segfault when calling hphpd_break() with no debugger attached

A call to hphpd_break() with no debugger attached, from a command-line run (no request), with debugging enabled (not normally true, but can be true if you use something besides cli.hdf), will segfault every time. Simple fix for a high hit-count crash.
hphp/runtime/eval/debugger/debugger.cpp