Summary
We’ve observed an segfault issue impacting customers using the following ingress controller image:mcr.microsoft.com/oss/v2/ingress-nginx/controller:v1.13.9
Problem
- Intermittent request failures
- Frequent crashes of nginx ingress worker processes
- Kernel logs showing repeated segfaults:
kernel: nginx[4143235]: segfault at 7 ip 00007feb5b80845b sp 00007ffde8362200 error 4 in liboneagentnginx.so
Root cause (likely)
This image is part of AKS Application Routing add-on (managed NGINX ingress by Microsoft)
- It uses a patched/custom nginx binary. This image is part of AKS Application Routing add-on (managed NGINX ingress by Microsoft)
- Dynatrace NGINX code module (liboneagentnginx.so) relies on fixed assumptions about nginx internals.
- Due to this binary mismatch, instrumentation can lead to segfaults in nginx processes.
- Microsoft: Azure Kubernetes Service (AKS) managed NGINX ingress with the application routing add-on - Azure Kubernetes Service | Microsoft Learn
Important notes
- AKS App Routing is fully managed, so:
- Pod/deployment-level changes are restricted
- Forced runtime instrumentation is NOT possible
Resolution
Disable OneAgent injection for ingress pods/namespace
For cloudNativeFullStack / applicationMonitoring:
- Use annotations mentioned in Docs: Configure monitoring for namespaces and pods — Dynatrace Docs
For classicFullStack
- Use container monitoring rules to exclude the process - https://docs.dynatrace.com/docs/shortlink/container-monitoring-rules
Disabling injection successfully stops crashes and restores stability.
What’s next
- Link to Azure Github Issue - App routing: Dynatrace incompatibility with ingress-nginx 1.13.9 · Issue #5796 · Azure/AKS · GitHub
- This is currently the only supported workaround.
- In case of any other patched NGINX, please follow document
- Please open a support ticket incase of any issues/concerns along OneAgent Support archive.