Skip to content

Instantly share code, notes, and snippets.

@krk
Created October 25, 2016 07:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krk/0e67caee226d7cce54003502aeeae91c to your computer and use it in GitHub Desktop.
Save krk/0e67caee226d7cce54003502aeeae91c to your computer and use it in GitHub Desktop.
CPU hog in mshtml!CHtmPre::ScanForTagUsingSecondScanAttributeLogic ?
0:035> kvn
# ChildEBP RetAddr Args to Child
00 2bfbf724 59da3591 2bfbf7a0 2bfbf7a8 00000000 mshtml!CHtmPre::ParseLineFeed+0x5 (FPO: [Non-Fpo])
01 2bfbf744 59b2b4e3 2bfbf7a0 2bfbf7a8 315df08a mshtml!CHtmPre::ScanForTagUsingSecondScanAttributeLogic+0x12e (FPO: [Non-Fpo])
02 2bfbf7b0 597e2e50 00010000 2bc06900 2bb78480 mshtml!`TextInput::TextInputLogging::Instance'::`2'::`dynamic atexit destructor for 'wrapper''+0x9edb3
03 2bfbf7d8 5985cee2 2bc06900 00000000 2bb78480 mshtml!CHtmPre::Exec+0x1f0 (FPO: [Non-Fpo])
04 2bfbf804 5985c8f4 2bfbf828 5985c770 2bb78480 mshtml!CHtmPre::Run+0x92 (FPO: [0,5,4])
05 2bfbf820 5985f72d 5985f6c0 5985f6c0 2bb78480 mshtml!CDwnTaskExec::ThreadExec+0x184 (FPO: [Non-Fpo])
06 2bfbf838 745562c4 2bb78480 745562a0 931f6730 mshtml!CExecFT::StaticThreadProc+0x6d (FPO: [Non-Fpo])
07 2bfbf84c 76f30609 2bb78480 8182d0a1 00000000 kernel32!BaseThreadInitThunk+0x24 (FPO: [Non-Fpo])
08 2bfbf894 76f305d4 ffffffff 76f5253f 00000000 ntdll!__RtlUserThreadStart+0x2f (FPO: [SEH])
09 2bfbf8a4 00000000 5985f6c0 2bb78480 00000000 ntdll!_RtlUserThreadStart+0x1b (FPO: [Non-Fpo])
0:035> !runaway
User Mode Time
Thread Time
35:1b78 0 days 0:01:19.984
0:d8 0 days 0:00:13.734
69:42f8 0 days 0:00:01.640
55:41b8 0 days 0:00:01.250
...
@krk
Copy link
Author

krk commented Jul 24, 2017

Exists in mshtml 11.0.15063.413 as:

0:036> kvn
 # ChildEBP RetAddr  Args to Child              
00 2190fe8c 53529d3f 2190fee8 2190fef0 2f19a6e2 mshtml!CHtmPre::ScanForTagUsingSecondScanAttributeLogic+0x125 (FPO: [Non-Fpo])
01 2190fef8 53156784 00010000 214f3f00 214b8480 mshtml!`CBackgroundInfo::Property<CBackgroundImage>'::`7'::`dynamic atexit destructor for 'fieldDefaultValue''+0x267ef
02 2190ff20 530f9e62 214f3f00 2190ff54 214b8480 mshtml!CHtmPre::Exec+0x1f4 (FPO: [Non-Fpo])
03 2190ff4c 530f9907 2190ff70 530f9800 214b8480 mshtml!CHtmPre::Run+0x92 (FPO: [0,5,4])
04 2190ff68 530f89cd 530f8960 530f8960 214b8480 mshtml!CDwnTaskExec::ThreadExec+0x107 (FPO: [Non-Fpo])
05 2190ff80 75308744 214b8480 75308720 01a2e984 mshtml!CExecFT::StaticThreadProc+0x6d (FPO: [Non-Fpo])
06 2190ff94 775c587d 214b8480 18fd50d4 00000000 KERNEL32!BaseThreadInitThunk+0x24 (FPO: [Non-Fpo])
07 2190ffdc 775c584d ffffffff 775e6329 00000000 ntdll!__RtlUserThreadStart+0x2f (FPO: [SEH])
08 2190ffec 00000000 530f8960 214b8480 00000000 ntdll!_RtlUserThreadStart+0x1b (FPO: [Non-Fpo])

@krk
Copy link
Author

krk commented Jul 24, 2017

Also:

0:038> kvn
 # ChildEBP RetAddr  Args to Child              
00 2bd2fe6c 5382eb48 2bd2fee8 2bd2fef0 00000000 mshtml!CHtmPre::ParseLineFeed+0x91 (FPO: [Non-Fpo])
01 2bd2fe8c 53529d3f 2bd2fee8 2bd2fef0 328957da mshtml!CHtmPre::ScanForTagUsingSecondScanAttributeLogic+0x12e (FPO: [Non-Fpo])
02 2bd2fef8 53156784 00010000 2ba86f00 2ba48480 mshtml!`CBackgroundInfo::Property<CBackgroundImage>'::`7'::`dynamic atexit destructor for 'fieldDefaultValue''+0x267ef
03 2bd2ff20 530f9e62 2ba86f00 2bd2ff54 2ba48480 mshtml!CHtmPre::Exec+0x1f4 (FPO: [Non-Fpo])
04 2bd2ff4c 530f9907 2bd2ff70 530f9800 2ba48480 mshtml!CHtmPre::Run+0x92 (FPO: [0,5,4])
05 2bd2ff68 530f89cd 530f8960 530f8960 2ba48480 mshtml!CDwnTaskExec::ThreadExec+0x107 (FPO: [Non-Fpo])
06 2bd2ff80 75308744 2ba48480 75308720 da6b5776 mshtml!CExecFT::StaticThreadProc+0x6d (FPO: [Non-Fpo])
07 2bd2ff94 775c587d 2ba48480 9e11aa83 00000000 KERNEL32!BaseThreadInitThunk+0x24 (FPO: [Non-Fpo])
08 2bd2ffdc 775c584d ffffffff 775e6351 00000000 ntdll!__RtlUserThreadStart+0x2f (FPO: [SEH])
09 2bd2ffec 00000000 530f8960 2ba48480 00000000 ntdll!_RtlUserThreadStart+0x1b (FPO: [Non-Fpo])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment