Quantcast
Channel: Python extension for WinDbg
Viewing all articles
Browse latest Browse all 1625

Commented Issue: [0.3.x] Windbg crashes when debugging system reboots (kernel debugging) [13439]

$
0
0
Environment:
windbg 6.2.9200.16384 AMD64
PYKD 0.3.0.18

Reproduce:
C:\Users\igorl>type C:\test.py
``` Python
from pykd import *

try:
while True:
print "break"
s = dbgCommand(".reload;kb")
dprint(s)
go()
except:
print "process terminated"
```

```
.load pykd.pyd
!py C:\test.py
```

Reboot dubugging system

Result:

```
windbg crash:
Сигнатура проблемы:
Имя события проблемы: BEX64
Имя приложения: windbg.exe
Версия приложения: 6.2.9200.16384
Отметка времени приложения: 50109b72
Имя модуля с ошибкой: pykd.pyd_unloaded
Версия модуля с ошибкой: 0.0.0.0
Отметка времени модуля с ошибкой: 54c0998e
Смещение исключения: 000007fef2779bba
Код исключения: c0000005
Данные исключения: 0000000000000008
Версия ОС: 6.1.7601.2.1.0.256.4
Код языка: 1049
Дополнительные сведения 1: 2264
Дополнительные сведения 2: 2264db07e74365624c50317d7b856ae9
Дополнительные сведения 3: 3226
Дополнительные сведения 4: 32264daa7b3152ff69876ab387e7523f
```
Comments: ** Comment from web user: EreTIk **

```
0:001> g
Child-SP RetAddr Call Site
00000000`02e8c3e8 00000000`58d739d1 pykd!DebugExtensionUninitialize [d:\projects\pykd-0.3\kdlibcpp\source\windbg\windbg.cpp @ 241]
00000000`02e8c3f0 00000000`58d7514d dbgeng!ExtensionInfo::Unload+0x91
00000000`02e8c420 00000000`58cd054f dbgeng!ExtensionInfo::UnloadAll+0x3d
00000000`02e8c460 00000000`58e96bd5 dbgeng!DiscardedTargets+0xf
00000000`02e8c4a0 00000000`58e9af38 dbgeng!TargetInfo::DebuggeeReset+0x145
00000000`02e8c4e0 00000000`58d5ec76 dbgeng!ConnLiveKernelTargetInfo::DebuggeeReset+0xc8
00000000`02e8c530 00000000`58d5dd45 dbgeng!ConnLiveKernelTargetInfo::ProcessStateChange+0x656
00000000`02e8c8c0 00000000`58cda7d1 dbgeng!ConnLiveKernelTargetInfo::WaitForEvent+0x125
00000000`02e8c910 00000000`58cdaca9 dbgeng!WaitForAnyTarget+0xa1
00000000`02e8c970 00000000`58cdaf8e dbgeng!RawWaitForEvent+0x359
00000000`02e8c9f0 000007fe`eb7d5bba dbgeng!DebugClient::WaitForEvent+0xce
00000000`02e8ca30 000007fe`eb7d60b7 pykd!kdlib::waitForEvent+0x14a [d:\projects\pykd-0.3\kdlibcpp\source\win\dbgeng.cpp @ 92]
00000000`02e8cc30 000007fe`eb7d1f2f pykd!kdlib::targetChangeStatus+0xc7 [d:\projects\pykd-0.3\kdlibcpp\source\win\dbgeng.cpp @ 613]
00000000`02e8ccd0 000007fe`eb7b013e pykd!kdlib::targetGo+0x1f [d:\projects\pykd-0.3\kdlibcpp\source\win\dbgeng.cpp @ 619]
00000000`02e8cd00 000007fe`eb6e3319 pykd!pykd::targetGo+0x2e [d:\projects\pykd-0.3\pykd\pydbgeng.h @ 290]
00000000`02e8cd50 000007fe`eb74ade0 pykd!boost::python::detail::invoke<boost::python::to_python_value<enum kdlib::ExecutionStatus const & __ptr64>,enum kdlib::ExecutionStatus (__cdecl*)(void)>+0x29 [d:\projects\pykd-0.3\packages\boost.1.55.0.16\lib\native\include\boost\python\detail\invoke.hpp @ 75]
00000000`02e8cd90 000007fe`eb73b203 pykd!boost::python::detail::caller_arity<0>::impl<enum kdlib::ExecutionStatus (__cdecl*)(void),boost::python::default_call_policies,boost::mpl::vector1<enum kdlib::ExecutionStatus> >::operator()+0x90 [d:\projects\pykd-0.3\packages\boost.1.55.0.16\lib\native\include\boost\python\detail\caller.hpp @ 223]
00000000`02e8cdf0 000007fe`eb8b1e1f pykd!boost::python::objects::caller_py_function_impl<boost::python::detail::caller<enum kdlib::ExecutionStatus (__cdecl*)(void),boost::python::default_call_policies,boost::mpl::vector1<enum kdlib::ExecutionStatus> > >::operator()+0x43 [d:\projects\pykd-0.3\packages\boost.1.55.0.16\lib\native\include\boost\python\object\py_function.hpp @ 39]
00000000`02e8ce20 000007fe`eb8ae006 pykd!boost::python::objects::py_function::operator()+0x3f [c:\sources\boost_1_55_0\boost\python\object\py_function.hpp @ 144]
00000000`02e8ce60 000007fe`eb8b1d79 pykd!boost::python::objects::function::call+0x4d6 [c:\sources\boost_1_55_0\libs\python\src\object\function.cpp @ 226]
00000000`02e8cfb0 000007fe`eb8b1f70 pykd!boost::python::objects::`anonymous namespace'::bind_return::operator()+0x29 [c:\sources\boost_1_55_0\libs\python\src\object\function.cpp @ 585]
00000000`02e8cfe0 000007fe`eb879bc2 pykd!boost::detail::function::void_function_ref_invoker0<boost::python::objects::`anonymous namespace'::bind_return,void>::invoke+0x20 [c:\sources\boost_1_55_0\boost\function\function_template.hpp @ 189]
00000000`02e8d020 000007fe`eb87936b pykd!boost::function0<void>::operator()+0x72 [c:\sources\boost_1_55_0\boost\function\function_template.hpp @ 768]
00000000`02e8d090 000007fe`eb758d45 pykd!boost::python::detail::exception_handler::operator()+0x3b [c:\sources\boost_1_55_0\libs\python\src\errors.cpp @ 75]
00000000`02e8d0c0 000007fe`eb69f038 pykd!boost::python::detail::translate_exception<kdlib::DbgException,void (__cdecl*)(kdlib::DbgException const & __ptr64)>::operator()+0x45 [d:\projects\pykd-0.3\packages\boost.1.55.0.16\lib\native\include\boost\python\detail\translate_exception.hpp @ 48]
00000000`02e8d120 000007fe`eb69eb88 pykd!boost::_bi::list3<boost::arg<1>,boost::arg<2>,boost::_bi::value<void (__cdecl*)(kdlib::DbgException const & __ptr64)> >::operator()<bool,boost::python::detail::translate_exception<kdlib::DbgException,void (__cdecl*)(kdlib::DbgException const & __ptr64)>,boost::_bi::list2<boost::python::detail::exception_handler const & __ptr64,boost::function0<void> const & __ptr64> >+0x98 [d:\projects\pykd-0.3\packages\boost.1.55.0.16\lib\native\include\boost\bind\bind.hpp @ 383]
00000000`02e8d170 000007fe`eb78e2ac pykd!boost::_bi::bind_t<bool,boost::python::detail::translate_exception<kdlib::DbgException,void (__cdecl*)(kdlib::DbgException const & __ptr64)>,boost::_bi::list3<boost::arg<1>,boost::arg<2>,boost::_bi::value<void (__cdecl*)(kdlib::DbgException const & __ptr64)> > >::operator()<boost::python::detail::exception_handler,boost::function0<void> >+0x78 [d:\projects\pykd-0.3\packages\boost.1.55.0.16\lib\native\include\boost\bind\bind_template.hpp @ 103]
00000000`02e8d1e0 000007fe`eb879c59 pykd!boost::detail::function::function_obj_invoker2<boost::_bi::bind_t<bool,boost::python::detail::translate_exception<kdlib::DbgException,void (__cdecl*)(kdlib::DbgException const & __ptr64)>,boost::_bi::list3<boost::arg<1>,boost::arg<2>,boost::_bi::value<void (__cdecl*)(kdlib::DbgException const & __ptr64)> > >,bool,boost::python::detail::exception_handler const & __ptr64,boost::function0<void> const & __ptr64>::invoke+0x5c [d:\projects\pykd-0.3\packages\boost.1.55.0.16\lib\native\include\boost\function\function_template.hpp @ 133]
00000000`02e8d220 000007fe`eb87a045 pykd!boost::function2<bool,boost::python::detail::exception_handler const & __ptr64,boost::function0<void> const & __ptr64>::operator()+0x89 [c:\sources\boost_1_55_0\boost\function\function_template.hpp @ 768]
00000000`02e8d290 000007fe`eb8791fd pykd!boost::python::detail::exception_handler::handle+0x25 [c:\sources\boost_1_55_0\boost\python\detail\exception_handler.hpp @ 42]
00000000`02e8d2c0 000007fe`eb8b0af1 pykd!boost::python::handle_exception_impl+0x2d [c:\sources\boost_1_55_0\libs\python\src\errors.cpp @ 24]
00000000`02e8d320 000007fe`eb8af439 pykd!boost::python::handle_exception<boost::python::objects::`anonymous namespace'::bind_return>+0x41 [c:\sources\boost_1_55_0\boost\python\errors.hpp @ 30]
00000000`02e8d390 00000000`1e08c4a5 pykd!function_call+0x69 [c:\sources\boost_1_55_0\libs\python\src\object\function.cpp @ 627]
00000000`02e8d430 00000000`1e1126fb python27!PyObject_Call+0x65
00000000`02e8d460 00000000`1e112faa python27!PyEval_GetGlobals+0x13b
00000000`02e8d4a0 00000000`1e1166d4 python27!PyEval_GetGlobals+0x9ea
00000000`02e8d500 00000000`1e117ed2 python27!PyEval_EvalFrameEx+0x36c4
00000000`02e8d5f0 00000000`1e117f69 python27!PyEval_EvalCodeEx+0x7e2
00000000`02e8d6a0 00000000`1e1445fa python27!PyEval_EvalCode+0x29
00000000`02e8d700 00000000`1e1458ea python27!PyErr_Display+0x40a
00000000`02e8d730 000007fe`eb8b57af python27!PyRun_FileExFlags+0xaa
00000000`02e8d790 000007fe`eb7c171f pykd!boost::python::exec_file+0x28f [c:\sources\boost_1_55_0\libs\python\src\exec.cpp @ 102]
00000000`02e8d900 000007fe`eb7c2b7d pykd!PykdExt::py+0x93f [d:\projects\pykd-0.3\pykd\windbgext.cpp @ 182]
00000000`02e8ddb0 00000000`58d74052 pykd!py+0xbd [d:\projects\pykd-0.3\pykd\windbgext.cpp @ 86]
00000000`02e8de60 00000000`58d742db dbgeng!ExtensionInfo::CallA+0x362
00000000`02e8df10 00000000`58d743c4 dbgeng!ExtensionInfo::Call+0x16b
00000000`02e8e0e0 00000000`58d7286d dbgeng!ExtensionInfo::CallAny+0xa4
00000000`02e8e130 00000000`58dc9481 dbgeng!ParseBangCmd+0x70d
00000000`02e8e610 00000000`58dcaae0 dbgeng!ProcessCommands+0x571
00000000`02e8e720 00000000`58cd7134 dbgeng!ProcessCommandsAndCatch+0x20
00000000`02e8e770 00000000`58cd7420 dbgeng!Execute+0x2b4
00000000`02e8ec30 00000001`3f233beb dbgeng!DebugClient::ExecuteWide+0x90
00000000`02e8ec90 00000001`3f2342eb windbg!ProcessCommand+0x19b
00000000`02e8edd0 00000001`3f236d35 windbg!ProcessEngineCommands+0xcb
00000000`02e8fe40 00000000`770259ed windbg!EngineLoop+0x3e5
00000000`02e8fe80 00000000`7725c541 kernel32!BaseThreadInitThunk+0xd
00000000`02e8feb0 00000000`00000000 ntdll!RtlUserThreadStart+0x1d
Evaluate expression: 5148 = 00000000`0000141c
pykd!DebugExtensionUninitialize:
000007fe`eb803350 4057 push rdi
```


Viewing all articles
Browse latest Browse all 1625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>