зеркало из https://github.com/github/ruby.git
Treat NULL reference case [Bug #13566]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
9cf7985893
Коммит
0c0f75b798
|
@ -475,8 +475,8 @@ darwin_sigtramp:
|
||||||
unw_set_reg(&cursor, UNW_X86_64_R14, uctx->uc_mcontext->__ss.__r14);
|
unw_set_reg(&cursor, UNW_X86_64_R14, uctx->uc_mcontext->__ss.__r14);
|
||||||
unw_set_reg(&cursor, UNW_X86_64_R15, uctx->uc_mcontext->__ss.__r15);
|
unw_set_reg(&cursor, UNW_X86_64_R15, uctx->uc_mcontext->__ss.__r15);
|
||||||
ip = uctx->uc_mcontext->__ss.__rip;
|
ip = uctx->uc_mcontext->__ss.__rip;
|
||||||
if (((char*)ip)[-2] == 0x0f && ((char*)ip)[-1] == 5) {
|
if (!ip || (((char*)ip)[-2] == 0x0f && ((char*)ip)[-1] == 5)) {
|
||||||
/* signal received in syscall */
|
/* NULL reference or signal received in syscall */
|
||||||
trace[n++] = (void *)ip;
|
trace[n++] = (void *)ip;
|
||||||
ip = *(unw_word_t*)uctx->uc_mcontext->__ss.__rsp;
|
ip = *(unw_word_t*)uctx->uc_mcontext->__ss.__rsp;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче