llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Loading a minidump takes a very long time

Open amccarth-google opened this issue 10 years ago • 3 comments

Bugzilla Link 27373
Version unspecified
OS Windows NT
CC @tlemo

Extended Description

Loading a minidump for a non-trivial application, like Chrome, takes a very long time. It appears that RegisterContext::InitializeNonZerothFrame causes the entire .text section (3.8 MB) to be disassembled twice.

amccarth-google avatar Apr 15 '16 20:04 amccarth-google

Ah, yes. Thanks for the tip.

LLDB can't find the debug info (through no fault of its own), so it's rummaging through the exports table in the PECOFF and getting a huge range for a tiny little method.

So perhaps this isn't a bug, but it's a pretty crummy experience. I'll ponder it over the weekend to see if there's something smarter we could do in this case.

amccarth-google avatar Apr 16 '16 01:04 amccarth-google

This sounds like a symbol problem where we think a symbol for an address is very very long. This often happens when symbol sizes are not capped by the max of the proposed symbol size or the end of the section that the symbol is contained in. To see the issue, figure out which address contains the large frame that is being disassembled, and then do a:

(lldb) image lookup --verbose --address

This will show the symbol or funciton that it thinks is contained in along with the symbol size.

llvmbot avatar Apr 15 '16 20:04 llvmbot

assigned to @amccarth-google

amccarth-google avatar Apr 15 '16 20:04 amccarth-google