nginx segfault

Max N. Boyarov m.boyarov at
Tue Dec 20 18:14:22 MSK 2005

Доброго времени суток.

такой сегфолт появляется если просто отсутствуют конфигурационные файлы

`--> gdb ./nginx
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...
(gdb) set args -t
(gdb) break main
Breakpoint 1 at 0x8049b73: file src/core/nginx.c, line 181.
(gdb) run
Starting program: /home/zotrix/build/nginx-0.3.16/objs/nginx -t

Breakpoint 1, main (argc=2, argv=0xbfbfe650) at src/core/nginx.c:181
181         ngx_debug_init();
(gdb) n


236         for (i = 0; ngx_modules[i]; i++) {
(gdb) n
237             ngx_modules[i]->index = ngx_max_module++;
(gdb) n
236         for (i = 0; ngx_modules[i]; i++) {
(gdb) n
240         cycle = ngx_init_cycle(&init_cycle);
(gdb) n

Program received signal SIGSEGV, Segmentation fault.
n0x08056fdd in ngx_conf_log_error (level=1, cf=0xbfbfe4f0, err=2, fmt=0x8092be8 "open() \"%s\" failed")
    at src/core/ngx_conf_file.c:814
814         ngx_log_error(level, cf->log, 0, "%s in %s:%ui",
(gdb) n

Program terminated with signal SIGSEGV, Segmentation fault.

// Max N. Boyarov
// 2:450/262 @ FidoNet
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
URL: <>

More information about the nginx-ru mailing list