docker-nginx: Segfault during requests with 1.25.2 - LUA issue
Environment
- most recent image (nginx 1.25.2) from 17 Oct
- using nginx:mainline-bookworm
Bug
When building our image including ndk/lua/brotli with 1.25.2 as baseline, most of our XHR calls return an empty response with an crash / coredump.
Details
To be more of a help, i tried to get the core dump. I have it, but i miss the symbols (starting with nginx-debug). I could not find any hints/docs how it is intended to get the symbols for gdb backtrace so i could share any more useful information here.
Can someone hint me to the docs or explain how to get the symbols (without recompiling nginx myself)?
About this issue
- Original URL
- State: closed
- Created 8 months ago
- Comments: 39
If you are in mood and want to add something to the docs on how to get core dumps up and running, those are the complete docs - happy to share those.
Setting up for core-dump stacktrace support
On you host running docker
On the container
Now on the container, start nginx-debug
Reproduce your crash and then open the core-dump with (replace the XXXX)
Specials / Optional for custom modules
If you are using addition/custom modules, you need to adjust the installation of those to include the symbols too, so if those symbols show up in your stackrace, they can be resolved too. For this add this below this line https://github.com/nginxinc/docker-nginx/blob/master/modules/Dockerfile#L78
Hey @EugenMayer - thanks for checking in. The current ETA is mid-January I think, but it can slip a couple weeks further too.
There is no ETA as of now…
Thanks for the tests!
So what i have now is
and it works! Using the original lua/ndk modules (not your patched ones), i get empty responses with the segfault all over the place.
So indeed, your build fixes it!
Correct. Well, provided I’m right about the patch and if it will fix the issue for you (but if it works with 1.25.1 this should be true).