Re: Crash in mail module during SMTP setup

2019-08-01 Thread Maxim Dounin
Hello! On Thu, Aug 01, 2019 at 09:32:20AM +1000, Rob N ★ wrote: > On Wed, 31 Jul 2019, at 2:11 AM, Maxim Dounin wrote: > > > I think I see the problem - when using SMTP with SSL and > > > resolver, read events might be enabled during address > > > resolving, leading to duplicate > > > ngx_mail

Re: Crash in mail module during SMTP setup

2019-07-31 Thread Rob N ★
On Wed, 31 Jul 2019, at 2:11 AM, Maxim Dounin wrote: > > I think I see the problem - when using SMTP with SSL and resolver, > > read events might be enabled during address resolving, leading to > > duplicate ngx_mail_ssl_handshake_handler() calls if something > > arrives from the client, and dup

Re: Crash in mail module during SMTP setup

2019-07-30 Thread Maxim Dounin
Hello! On Tue, Jul 30, 2019 at 06:32:43PM +0300, Maxim Dounin wrote: > Hello! > > On Tue, Jul 30, 2019 at 10:39:56PM +1000, Rob N ★ wrote: > > > On Tue, 30 Jul 2019, at 4:26 AM, Maxim Dounin wrote: > > > Looking at "p *c" and "p *s" might be also interesting. > > > > Program received signal SI

Re: Crash in mail module during SMTP setup

2019-07-30 Thread Maxim Dounin
Hello! On Tue, Jul 30, 2019 at 10:39:56PM +1000, Rob N ★ wrote: > On Tue, 30 Jul 2019, at 4:26 AM, Maxim Dounin wrote: > > Looking at "p *c" and "p *s" might be also interesting. > > Program received signal SIGSEGV, Segmentation fault. > 0x005562f2 in ngx_mail_smtp_resolve_name_handler (

Re: Crash in mail module during SMTP setup

2019-07-30 Thread Rob N ★
On Tue, 30 Jul 2019, at 4:26 AM, Maxim Dounin wrote: > Looking at "p *c" and "p *s" might be also interesting. Program received signal SIGSEGV, Segmentation fault. 0x005562f2 in ngx_mail_smtp_resolve_name_handler (ctx=0x7bcaa40) at src/mail/ngx_mail_smtp_handler.c:215 215 ngx_log_debug1(N

Re: Crash in mail module during SMTP setup

2019-07-29 Thread Maxim Dounin
Hello! On Mon, Jul 29, 2019 at 03:03:09PM +1000, Rob N ★ wrote: > I'm using the mail module for IMAP/POP/SMTP proxying (at > Fastmail). Lately (last few weeks) we've heard reports of > connections dropping (particularly IMAP IDLE) but it wasn't > until this morning I understood the source of i

Crash in mail module during SMTP setup

2019-07-28 Thread Rob N ★
I'm using the mail module for IMAP/POP/SMTP proxying (at Fastmail). Lately (last few weeks) we've heard reports of connections dropping (particularly IMAP IDLE) but it wasn't until this morning I understood the source of it: nginx is segfaulting. I haven't got a direct reproduction, but I find