Welcome! Log In Create A New Profile

Advanced

Re: Crash in mail module during SMTP setup

Rob N ★
July 30, 2019 08:42AM
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.
0x00000000005562f2 in ngx_mail_smtp_resolve_name_handler (ctx=0x7bcaa40)
at src/mail/ngx_mail_smtp_handler.c:215
215 ngx_log_debug1(NGX_LOG_DEBUG_MAIL, c->log, 0,

(gdb) p *c
$14 = {data = 0x30, read = 0x111, write = 0xc2cfff0, fd = 263201712,
recv = 0xfb023c0, send = 0x0, recv_chain = 0xb0, send_chain = 0x350cf90,
listening = 0x0, sent = 55627856, log = 0x0, pool = 0x350cff0,
type = -1242759166, sockaddr = 0x0, socklen = 7, addr_text = {len = 0,
data = 0x2c4e8fc ""}, proxy_protocol_addr = {len = 0,
data = 0x54eb79 <ngx_mail_log_error> "UH\211\345H\203\354@H\211}\330H\211u\320H\211U\310H\213E\330H\213@@H\205\300tCH\213E\330H\213P@H\213u\310H\213E\320H\211\321\272\234\064z"}, proxy_protocol_port = 53344,
ssl = 0x484cb1 <ngx_syslog_writer>, udp = 0x2018d20,
local_sockaddr = 0x7a414a, local_socklen = 0, buffer = 0x33312e32322e3438,
queue = {prev = 0x3031312e36, next = 0x0}, number = 204275712,
requests = 139872032560632, buffered = 0, log_error = 0, timedout = 0,
error = 0, destroyed = 0, idle = 0, reusable = 0, close = 1, shared = 0,
sendfile = 1, sndlowat = 1, tcp_nodelay = 2, tcp_nopush = 0,
need_last_buf = 0}

(gdb) p *s
$15 = {signature = 155588656, connection = 0x350cf80, out = {len = 35,
data = 0x20ae3e0 "220 smtp.fastmail.com ESMTP ready\r\n250 smtp.fastmail.com\r\n250-smtp.fastmail.com\r\n250-PIPELINING\r\n250-SIZE 71000000\r\n250-ENHANCEDSTATUSCODES\r\n250-8BITMIME\r\n250-AUTH PLAIN LOGIN\r\n250 AUTH=PLAIN LOGIN\r\n2"...}, buffer = 0x0, ctx = 0xfb02470, main_conf = 0x2015218,
srv_conf = 0x202af60, resolver_ctx = 0x0, proxy = 0x0, mail_state = 0,
protocol = 2, blocked = 0, quit = 0, quoted = 0, backslash = 0,
no_sync_literal = 0, starttls = 0, esmtp = 0, auth_method = 0,
auth_wait = 0, login = {len = 0, data = 0x0}, passwd = {len = 0,
data = 0x0}, salt = {len = 0, data = 0x0}, tag = {len = 0, data = 0x0},
tagged_line = {len = 0, data = 0x0}, text = {len = 0, data = 0x0},
addr_text = 0x20b0768, host = {len = 20,
data = 0xfb024a8 "aldo-gw.g-service.ru"}, smtp_helo = {len = 0,
data = 0x0}, smtp_from = {len = 0, data = 0x0}, smtp_to = {len = 0,
data = 0x0}, cmd = {len = 0, data = 0x0}, command = 0, args = {elts = 0x0,
nelts = 0, size = 0, nalloc = 0, pool = 0x0}, login_attempt = 0,
state = 0, cmd_start = 0x0, arg_start = 0x0, arg_end = 0x0,
literal_len = 384}

> Any changes to nginx code and/or additional modules?

This small patch set (which we've had for years): https://github.com/fastmailops/nginx/commits/1.17.2-fastmail

Modules: lua(+luajit), headers_more, ndk, vts (though none of these do anything with the mail module (I know, they're in the same binary though)).

> Additionally, consider configuring debug logging. Given that it's
> slow gathering cores, normal debug logging might not be an option,
> though configuring large enough memory buffer might work, see
> here:

Working on this!

Rob N._______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Crash in mail module during SMTP setup

Rob N ★ July 29, 2019 01:04AM

Re: Crash in mail module during SMTP setup

Maxim Dounin July 29, 2019 02:28PM

Re: Crash in mail module during SMTP setup

Rob N ★ July 30, 2019 08:42AM

Re: Crash in mail module during SMTP setup

Maxim Dounin July 30, 2019 11:34AM

Re: Crash in mail module during SMTP setup

Maxim Dounin July 30, 2019 12:12PM

Re: Crash in mail module during SMTP setup

Rob N ★ July 31, 2019 07:34PM

Re: Crash in mail module during SMTP setup

Maxim Dounin August 01, 2019 07:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 190
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready