-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
segfault due to opentracing #2222
Comments
@rnburn can you help with this? |
Yep. Will take a look. |
@trnl thank you for the detailed report. |
On another cluster, I can't reproduce it, and the only difference which I noticed is the:
|
@rnburn , maybe I can provide some additional information? |
I looked into this and I couldn't find any nginx documentation that says you can't modify headers_in like this line of the code does, but I inquired on nginx-devel to see if there's anything I'm missing. Something like a smaller isolated example that reproduces the problem or a core dump could help to narrow the problem down. |
@rnburn any update on this? |
Hey @aledbf - I have plans to put in a fix based off of this answer I got on the nginx mailing list: |
@aledbf - I put in opentracing-contrib/nginx-opentracing#37 with a fix for this. The fix required doing some reorganization of the module. I removed the vendor-specific modules in favor of loading in the tracer's dynamically with I can put in a PR to update ingress-nginx to do this. I think this approach should work better for you since you can use an embedded YAML configuration for the tracer without having any code to worry about handling a tracer's specific options. |
@rnburn what's the format of the new json configuration for zipkin |
It's got a schema file for the configuration: https://github.com/rnburn/zipkin-cpp-opentracing/blob/master/zipkin_opentracing/tracer_configuration.schema.json |
@trnl can you test |
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see https://kubernetes.io/docs/tasks/debug-application-cluster/troubleshooting/.):
no
What keywords did you search in NGINX Ingress controller issues before filing this one? (If you have found any duplicates, you should instead reply there.):
nginx, opentracing, zipkin, segfault
Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT
NGINX Ingress controller version: 0.10.2
Kubernetes version (use
kubectl version
):Environment:
uname -a
):Docker, Kubernetes
nginx-ingress resource limits
nginx-ingress configmap values
What happened:
worker process exiting due to segfault
What you expected to happen:
no segfaults, no worker restarts
How to reproduce it (as minimally and precisely as possible):
Happens almost every 2 seconds
Anything else we need to know:
After analysis of the coredump it's visible that the issue in the opentracing insert_header block:
The text was updated successfully, but these errors were encountered: