Welcome! Log In Create A New Profile

Advanced

[PATCH 0 of 1] crash at src/os/unix/ngx_setproctitle.c:128

Markus Linnala
August 17, 2014 02:26PM
I got following crash,

(gdb) where
title=0x7f6d4bf6f750 "master process ../objs/nginx -p /tmp/nginx-test-T8yhrruZvl -c nginx.conf") at src/os/unix/ngx_setproctitle.c:128
at src/os/unix/ngx_process_cycle.c:144
(gdb) up
title=0x7f6d4bf6f750 "master process ../objs/nginx -p /tmp/nginx-test-T8yhrruZvl -c nginx.conf") at src/os/unix/ngx_setproctitle.c:128
128 ngx_memset(p, NGX_SETPROCTITLE_PAD, ngx_os_argv_last - (char *) p);
(gdb) print ngx_os_argv_last
$3 = 0x0

If ngx_init_setproctitle fails for example when ngx_alloc fails, then
ngx_setproctitle crashes because ngx_os_argv_last is NULL.

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH 0 of 1] crash at src/os/unix/ngx_setproctitle.c:128

Markus Linnala 595 August 17, 2014 02:26PM

[PATCH 1 of 1] fix crash with ngx_setproctitle

Markus Linnala 273 August 17, 2014 02:26PM

Re: [PATCH 1 of 1] fix crash with ngx_setproctitle

Maxim Dounin 329 August 17, 2014 03:06PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 171
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