Repository navigation
nixos/nginx: don't disable IPC - #360008
Conversation
This also disables the memfd_create syscall which is required for certain regex's when using pcre2. see NixOS#355989 (comment)
RossComputerGuy
left a comment
There was a problem hiding this comment.
Why not make this an option rather than the built in behavior?
|
I can't reproduce this error? |
Because the debugging experience is very poor and without the prior knowledge of debugging a similar issue 2 years ago in gitea where pcre2 was used in git grep I wouldn't have known what to do and just reverted the pcre change. So technically any module using nginx can trigger this and then nginx will just crash repeatably on start up. We could write an option which states: if nginx is crashing with this dmesg line and this syscall number you need to flip this but that would be user experience from hell. Also any future change in nginx regex handling or in pcre2 can make this required. I think the jit function is causing this and whenever it is triggered, things will just crash.
You need to have a location which presumably uses complex regexs. |
Didn't find a suitable variant. |
This reverts commit 861b05c. See NixOS#355989 & NixOS#360008. This needs more testing and polish.
I currently lack the time to further A/B test this against all my services to nail it down to a specific regex. |
|
Bump fyi @emilazy |
|
We also had this issue on one of our webservers when upgrading to 24.11. This is a hard to debug breakage, so we should merge and backport this ASAP. |
|
Successfully created backport PR for |
|
Do we have a test that will catch this in the future? |
|
No, because isolating which exact regex out of my config caused the issue was out of my available time. |
This also disables the memfd_create syscall which is required for certain regex's when using pcre2.
see #355989 (comment)
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.