dotnet / dotnet/diagnostics

Container Config - document seccomp profile needed to ensure .NET apps run

Open
#3,445 16 comments 1 reaction 1 assignee Claimed by @mikem8361 View on GitHub
documentation enhancement
Dominant language
C++
Stars
1.3k
Forks
404
Avg merge
2d 3h
Merged PRs (30d)
38

Description

### Description

I am seeing the following problem when trying to dump the memory using the dotnet-monitor tool:

`{"status":400,"detail":"Write dump failed - HRESULT: 0x00000000."}`

After investigating a bit, and running `./usr/share/dotnet/shared/Microsoft.NETCore.App/6.0.9/createdump -d -v -n 1`, I get:

```
[createdump] ffffffffff600000 - ffffffffff601000 (000001) 0000000000000000 --x-p- 21 [vsyscall]
[createdump] EnumerateElfInfo: phdr 0x562aef77e040 phnum 12
[createdump] ReadProcessMemory FAILED, addr: 0000562aef77e040, size: 56, ERRNO 38: Function not implemented
[createdump] ERROR: ReadMemory(0x562aef77e040, 38) phdr FAILED
[createdump] Target process is alive
```

May you please suggest what are the known requirements for the dump to work?

### Configuration

Kubernetes

Linux 5.15.48-flatcar #1 SMP Tue Jun 21 05:55:04 -00 2022 x86_64 GNU/Linux

:/$ dotnet --info

global.json file:
Not found

Host:
Version: 6.0.9
Architecture: x64
Commit: 163a63591c

.NET SDKs installed:
No SDKs were found.

.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.9 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.9 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.