Re: [exim] stuck exim processes

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Patrik Peng
Datum:  
To: exim-users
Betreff: Re: [exim] stuck exim processes
On 09.03.22 22:22, Michael Tratz via Exim-users wrote:

> I have added the following patch:
>
> diff --git a/src/src/transports/smtp.c b/src/src/transports/smtp.c
> index 6a979a243..f97b0c625 100644
> --- a/src/src/transports/smtp.c
> +++ b/src/src/transports/smtp.c
> @@ -4800,7 +4800,11 @@ if (sx->send_quit || tcw_done && !tcw)
>   # ifdef EXIM_TCP_CORK
>       (void) setsockopt(sx->cctx.sock, IPPROTO_TCP, EXIM_TCP_CORK, US &on, sizeof(on));
>   # endif
> -    tls_close(sx->cctx.tls_ctx, TLS_SHUTDOWN_WAIT);
> +    if (sx->send_tlsclose)
> +      {
> +      tls_close(sx->cctx.tls_ctx, TLS_SHUTDOWN_WAIT);
> +      sx->send_tlsclose = FALSE;
> +      }
>       sx->cctx.tls_ctx = NULL;
>       }
>   #endif
>
> Exim has been running for about a week using this patch and I haven't experienced any issues. I don’t know if that is the correct fix or if there is a better way. But I hope it helps in figuring out the root cause of the issue.


We tried your patch on one of our hosts and the processes stopped
getting stuck. But soon we noticed an increased amount of SIGSEGVs:

exim-mxout[66312]: 2022-03-17 08:30:22 1nTkGT-000FnX-IU SIGSEGV (maybe attempt to write to immutable memory)
exim-mxout[67963]: 2022-03-17 08:32:29 1nTcjF-00099k-J7 SIGSEGV (maybe attempt to write to immutable memory)
exim-mxout[85715]: 2022-03-17 08:48:58 1nTkGT-000FnX-IU SIGSEGV (maybe attempt to write to immutable memory)
exim-mxout[87038]: 2022-03-17 08:50:02 1nTcjF-00099k-J7 SIGSEGV (maybe attempt to write to immutable memory)