-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Fix incomplete dumps generated by createdump #49468
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
Conversation
|
Tagging subscribers to this area: @tommcdon Issue DetailsThere are memory regions > 4GB in size that overflowed a 32bit size value. Changed to 64bit. Fixes issue: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1277488?src=WorkItemMention&src-action=artifact_link This also may be the cause of issue dotnet/diagnostics#1780
|
sdmaclea
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
z --> size_t
Learn something new every day
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
size should probably be declared above as size_t ... Otherwise
| size_t bytesToRead = std::min(size, sizeof(m_tempBuffer)); | |
| size_t bytesToRead = std::min((size_t)size, sizeof(m_tempBuffer)); |
2021-03-11T02:11:41.5645060Z /Users/runner/work/1/s/src/coreclr/debug/createdump/dumpwriter.cpp:212:38: error: no matching function for call to 'min'
2021-03-11T02:11:41.5744730Z size_t bytesToRead = std::min(size, sizeof(m_tempBuffer));
2021-03-11T02:11:41.5845290Z ^~~~~~~~
2021-03-11T02:11:41.5947840Z /Applications/Xcode_12.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:2560:1: note: candidate template ignored: deduced conflicting types for parameter '_Tp' ('unsigned long long' vs. 'unsigned long')
2021-03-11T02:11:41.6050380Z min(const _Tp& __a, const _Tp& __b)
2021-03-11T02:11:41.6152150Z ^
2021-03-11T02:11:41.6255530Z /Applications/Xcode_12.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:2571:1: note: candidate template ignored: could not match 'initializer_list<type-parameter-0-0>' against 'unsigned long long'
2021-03-11T02:11:41.6357920Z min(initializer_list<_Tp> __t, _Compare __comp)
2021-03-11T02:11:41.6460080Z ^
2021-03-11T02:11:41.6561170Z /Applications/Xcode_12.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:2551:1: note: candidate function template not viable: requires 3 arguments, but 2 were provided
2021-03-11T02:11:41.6662240Z min(const _Tp& __a, const _Tp& __b, _Compare __comp)
2021-03-11T02:11:41.6761820Z ^
2021-03-11T02:11:41.6863770Z /Applications/Xcode_12.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:2580:1: note: candidate function template not viable: requires single argument '__t', but 2 arguments were provided
2021-03-11T02:11:41.6993010Z min(initializer_list<_Tp> __t)
2021-03-11T02:11:41.7195180Z ^
2021-03-11T02:11:42.0217020Z 1 error generated.805ab0e to
2d8dbf2
Compare
|
Hello @mikem8361! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
The core dump generated for a app that has large GC heaps (>4GB) are don't contain all the memory needed in process. This is because of a 32bit size value overflow; changed to size_t. Multiple customers have reported this problem in 3.1 and 5.0. Issue: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1277488?src=WorkItemMention&src-action=artifact_link and dotnet/diagnostics#1780
) The core dump generated for a app that has large GC heaps (>4GB) are don't contain all the memory needed in process. This is because of a 32bit size value overflow; changed to size_t. Multiple customers have reported this problem in 3.1 and 5.0. Issue: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1277488?src=WorkItemMention&src-action=artifact_link and dotnet/diagnostics#1780
There are memory regions > 4GB in size that overflowed a 32bit size value. Changed to 64bit.
Fixes issue: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1277488?src=WorkItemMention&src-action=artifact_link
This also may be the cause of issue dotnet/diagnostics#1780