-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TTD HeapAnalysis error, and crash #247
Comments
Thanks for the report and the dump. The issue here is you are debugging a 32-bit trace which causes the 32-bit engine to be used. Then you are asking for a large amount of data through dx -r1 @$cursession.TTD.Data.Heap() and the process runs out of memory. You can tell windbg to use the 64-bit engine instead: windbg -debugarch amd64 -z <path\to\your\trace.run> The reason we match the debugger engine bitness to the bitness of the recorded process is some debugger extensions (i.e. the CLR-related extensions) expect the bitness to match. The 64-bit TTD replay engine itself can open a trace for any architecture without issue. So, provided you don't run into debugger extension issues the above command should work for you. |
@KenSykes I took a look at this when investigating 0vercl0k/windbg-scripts#5 and my understanding was that somehow the Let me know if we're missing anything! Cheers |
Thanks, that makes sense. I only addressed the crashing part of your report, will look at changing this script as you suggest. |
Haha, .. and I only looked at the Cheers |
I was unable to repro this but made the change suggested above. Here is my copy of the file, can you verify it fixes the issue? Need to rename to .js and .scriptunload / .scriptload this one. |
I've attached a
Thank you! Cheers |
This fix has been checked in and will be available in next public release, hopefully sometime in January. |
Awesome, thank you Ken! Cheers |
Hi,
When working with a TTD trace, i encounter this error:
`
0:000> dx -r1 @$cursession.TTD.Data.Heap()
@$cursession.TTD.Data.Heap()
[0x0] : Error: 64 bit value loses precision on conversion to number [at HeapAnalysis (line 157 col 60)]
[0x1] : Error: 64 bit value loses precision on conversion to number [at HeapAnalysis (line 157 col 60)]
[0x2] : Error: 64 bit value loses precision on conversion to number [at HeapAnalysis (line 157 col 60)]
[0x3] : Error: 64 bit value loses precision on conversion to number [at HeapAnalysis (line 157 col 60)]
[0x4] : Error: 64 bit value loses precision on conversion to number [at HeapAnalysis (line 157 col 60)]
`
With PageHeap enabled for enghost.exe, it leads to a crash.
Attached crashdump:
EngHost.exe.47612.dmp
The text was updated successfully, but these errors were encountered: