Segfault in ngx_http_syslog

SplitIce mat999 at gmail.com
Tue Jan 29 11:24:57 UTC 2013


Found a segfault in the ngx_http_syslog module.

I dont have the contact details for any of the ngsru team that developed it
so I am posting it in the mailing list in the hope a few are members.

Occurs when error_page is used, tested on a 504 error with config similar to

@e504 {
proxy_pass ...;
}

error_page 504 @e504;

Backtrace:
#0  0x080f2ac7 in ngx_http_syslog_error_handler (log=0x8cf4608,
    p=0xbfbae8b8 "\b\353\272\277L<\265\b\346", p_len=1960)
    at /var/x4b/nginx-syslog-module/ngx_http_syslog_module.c:489
489         ngx_http_syslog_common_handler(
(gdb) backtrace full
#0  0x080f2ac7 in ngx_http_syslog_error_handler (log=0x8cf4608,
    p=0xbfbae8b8 "\b\353\272\277L<\265\b\346", p_len=1960)
    at /var/x4b/nginx-syslog-module/ngx_http_syslog_module.c:489
No locals.
#1  0x080f2aea in ngx_http_syslog_error_handler (log=0x0, p=0xa <Address
0xa out of bounds>,
    p_len=3206221928) at
/var/x4b/nginx-syslog-module/ngx_http_syslog_module.c:494
No locals.
#2  0x080f2aea in ngx_http_syslog_error_handler (log=0xb7bc7380,
p=0xb7bc6ff4 "|-\024",
    p_len=3206222780) at
/var/x4b/nginx-syslog-module/ngx_http_syslog_module.c:494
No locals.
#3  0x00000000 in ?? ()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20130129/a2ee2834/attachment-0001.html>


More information about the nginx-devel mailing list