Debugging Sharp Runtime

Diagnose component selection, exceptions, platform failures, concurrency and native memory errors.

DevelopmentSource 6d429559

Classify first

SymptomFirst question
Configure failureUnknown component, missing external dependency or Android parent target?
Header missingIs the owning component linked, or is a private header leaking?
Link failureIs an implementation dependency declared with correct visibility?
Test failureBehavior defect or unavailable host facility?
Crash/use-after-freeWhich native owner or callback outlived its target?
Race/deadlockWhat cancellation/join/lock order is documented?

Useful tools

  • Component boundary validator and selective fixtures
  • GoogleTest filters on the owning executable
  • ASan/UBSan for native memory and undefined behavior
  • TSan for shared state where the toolchain supports it
  • Debugger breakpoints on specific Sharp Runtime exception construction
  • CMake target/property inspection rather than global include hacks

Network tests

Record permissions, namespace/container restrictions, DNS state, ping_group_range and interface files. An environment-limited result and an implementation defect require different fixes.