Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Fixes issue #21485 and #21484 #21526

Merged
merged 1 commit into from
Dec 13, 2018
Merged

Fixes issue #21485 and #21484 #21526

merged 1 commit into from
Dec 13, 2018

Conversation

mikem8361
Copy link
Member

Issue #21485: fix EnumProcessModules hPseudoCurrentProcess bug.

Added handle reference.

Issue #21484: createdump segfaults with ASP.NET app

The problem is the ClrDataModule Request faulted on a dynamic module
getting the file layout flag.

Fixed the Request code not get the file layout and in the crash dump
code skip any dynamic modules.

Issue #21485: fix EnumProcessModules hPseudoCurrentProcess bug.

Added handle reference.

Issue #21484: createdump segfaults with ASP.NET app

The problem is the ClrDataModule Request faulted on a dynamic module
getting the file layout flag.

Fixed the Request code not get the file layout and in the crash dump
code skip any dynamic modules.
@mikem8361 mikem8361 added this to the 3.0 milestone Dec 13, 2018
@mikem8361 mikem8361 self-assigned this Dec 13, 2018
// Can not get the file layout for a dynamic module
if (!outGMD->IsDynamic)
{
outGMD->IsFileLayout = pPEFile->GetLoaded()->IsFlat();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Initialize to something valid on the else path so that it is not garbage?

@@ -708,6 +708,17 @@ CrashInfo::EnumerateManagedModules(IXCLRDataProcess* pClrDataProcess)
break;
}

// Skip any dynamic modules. The Request call below on some DACs crashes on dynamic modules.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we understand the impact of skipping the dynamic modules? Are there other things that will start failing downstream when we have no data for dynamic modules?

@mikem8361
Copy link
Member Author

mikem8361 commented Dec 13, 2018 via email

@mikem8361
Copy link
Member Author

mikem8361 commented Dec 13, 2018 via email

Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@mikem8361 mikem8361 merged commit a6403ba into dotnet:master Dec 13, 2018
@mikem8361 mikem8361 deleted the enummod branch December 13, 2018 23:37
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…eclr#21526)

Issue dotnet/coreclr#21485: fix EnumProcessModules hPseudoCurrentProcess bug.

Added handle reference.

Issue dotnet/coreclr#21484: createdump segfaults with ASP.NET app

The problem is the ClrDataModule Request faulted on a dynamic module
getting the file layout flag.

Fixed the Request code not get the file layout and in the crash dump
code skip any dynamic modules.

Commit migrated from dotnet/coreclr@a6403ba
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants