microsoft / microsoft/CLRInstrumentationEngine

RawProfilerHook bug with DynaTrace - Process crashes.

Open
#203 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Dynatrace
Dominant language
C++
Stars
102
Forks
52
Avg merge
13h 11m
Merged PRs (30d)
6

Description

Download DynaTrace OneAgent and set the following environment variables in Registry:

Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WAS

COR_ENABLE_PROFILING=1
COR_PROFILER={324F817A-7420-4E6D-B3C1-143FBED6D855}
COR_PROFILER_PATH_64=C:\Program Files\Microsoft CLR Instrumentation Engine\Proxy\v1\InstrumentationEngine.ProfilerProxy_x64.dll
MicrosoftInstrumentationEngine_RawProfilerHook={B7038F67-52FC-4DA2-AB02-969B3C1EDA03}
MicrosoftInstrumentationEngine_RawProfilerHookPath_64=C:\Program Files (x86)\dynatrace\oneagent\agent\lib64\oneagentloader.dll
MicrosoftInstrumentationEngine_DebugWait=1
InstrumentationEngineProxy_UseDebug=1
InstrumentationEngineProxy_UsePreview=1

Test Process

  • Visit http://localhost
  • Attach Debugger to w3wp.exe
  • Process eventually crashes with the following information:
Module AspNetInitClrHostFailureModule
Notification BeginRequest
Handler ExtensionlessUrlHandler-Integrated-4.0
ErrorCode 0x80131534 (COR_E_TYPEINITIALIZATION)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the crash using the listed DynaTrace registry settings, IIS, localhost, and a debugger attached to w3wp.exe. Investigate the reported AspNetInitClrHostFailureModule and COR_E_TYPEINITIALIZATION failure; no source file or test is identified in the issue. Done means the same request no longer causes the worker process to crash.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
devtools, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.