nginx-0.8.53 segfault

Maxim Dounin mdounin at mdounin.ru
Fri Jan 14 14:54:26 MSK 2011


Hello!

On Fri, Jan 14, 2011 at 12:35:24AM +0100, Maxim C. wrote:

> tried to compile nginx on a same system with the same configure and gcc 
> options (added -ggdb option). hope it will be enought:

nginx should automatically construct CFLAGS with appropriate debug 
options (-g for gcc) unless you have non-empty CFLAGS environment 
variable defined when running ./configure script.

Using -ggdb should be ok too.

> # gdb /usr/sbin/nginx /var/spool/nginx/cores/core

[...]

> Reading symbols from /usr/sbin/nginx...(no debugging symbols 
> found)...done.

Looks like binary is still strip'ed.

> (gdb) bt
> #0  0x080aaca8 in ngx_http_file_cache_update ()
> #1  0x0809f213 in ngx_http_upstream_process_request ()
> #2  0x0809f054 in ngx_http_upstream_process_upstream ()
> #3  0x0809e701 in ngx_http_upstream_send_response ()
> #4  0x0809cf89 in ngx_http_upstream_process_header ()
> #5  0x0809ba4a in ngx_http_upstream_handler ()
> #6  0x08069fe5 in ngx_event_process_posted ()
> #7  0x08068319 in ngx_process_events_and_timers ()
> #8  0x08073177 in ngx_worker_process_cycle ()
> #9  0x0807063d in ngx_spawn_process ()
> #10 0x08072d57 in ngx_reap_children ()
> #11 0x08071e06 in ngx_master_process_cycle ()
> #12 0x0804c730 in main ()

Backtrace suggests there is some problem in proxy_cache, but it's 
impossible to say more without debug symbols.  

Maxim Dounin



More information about the nginx mailing list