nginx 0.7.62/0.8.20 ssl and "worker process ... exited on signal 11"

Andrey Y. Ostanovsky andrey at ostanovsky.spb.ru
Fri Oct 23 11:52:03 MSD 2009


Maxim Dounin пишет:
> Либо это совсем плохой, негодный стек, либо gdb запускали не с тем 
> бинарником.
>
> Я склоняюсь ко второму варианту - адреса переменных вполне похожи 
> на правду, между тем как имена функций и файлы/строки - абсолютно 
> левые

Точно! Не с той коркой. Прошу прощения. Вот более правильный вариант:

# gdb /usr/local/sbin/nginx-0.8.20 /var/tmp/80.nginx-0.8.20.core
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"...
Core was generated by `nginx-0.8.20'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libcrypt.so.4...done.
Loaded symbols for /lib/libcrypt.so.4
Reading symbols from /usr/local/lib/libpcre.so.0...done.
Loaded symbols for /usr/local/lib/libpcre.so.0
Reading symbols from /usr/lib/libssl.so.5...done.
Loaded symbols for /usr/lib/libssl.so.5
Reading symbols from /lib/libcrypto.so.5...done.
Loaded symbols for /lib/libcrypto.so.5
Reading symbols from /lib/libz.so.4...done.
Loaded symbols for /lib/libz.so.4
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x283e18a3 in memcpy () from /lib/libc.so.7
(gdb) bt
#0  0x283e18a3 in memcpy () from /lib/libc.so.7
#1  0x08077ad1 in ngx_ssl_send_chain (c=0x28567258, in=0x285d9f9c,
limit=2012)
    at src/event/ngx_event_openssl.c:973
#2  0x0808fbe0 in ngx_http_write_filter (r=0x2855c000, in=0x0)
    at src/http/ngx_http_write_filter_module.c:238
#3  0x080a5a76 in ngx_http_chunked_body_filter (r=0x2855c000, in=0x0)
    at src/http/modules/ngx_http_chunked_filter_module.c:84
#4  0x080ad0e5 in ngx_http_gzip_body_filter (r=0x2855c000, in=0x0)
    at src/http/modules/ngx_http_gzip_filter_module.c:304
#5  0x080aeb0b in ngx_http_postpone_filter (r=0x2855c000, in=0x0)
    at src/http/ngx_http_postpone_filter_module.c:82
#6  0x080af7c3 in ngx_http_charset_body_filter (r=0x2855c000, in=0x0)
    at src/http/modules/ngx_http_charset_filter_module.c:552
#7  0x080b1ce5 in ngx_http_ssi_body_filter (r=0x2855c000, in=0x0)
    at src/http/modules/ngx_http_ssi_filter_module.c:395
#8  0x08050dfe in ngx_output_chain (ctx=0x285de204, in=0x0) at
src/core/ngx_output_chain.c:56
#9  0x0809029d in ngx_http_copy_filter (r=0x2855c000, in=0x0)
    at src/http/ngx_http_copy_filter_module.c:137
#10 0x080a6d21 in ngx_http_range_body_filter (r=0x2855c000, in=0x0)
    at src/http/modules/ngx_http_range_filter_module.c:549
#11 0x0807f635 in ngx_http_output_filter (r=0x2855c000, in=0x0)
    at src/http/ngx_http_core_module.c:1729
#12 0x0808a3c5 in ngx_http_writer (r=0x2855c000) at
src/http/ngx_http_request.c:2211
#13 0x08089588 in ngx_http_request_handler (ev=0x2863d168) at
src/http/ngx_http_request.c:1779
#14 0x08068f33 in ngx_event_expire_timers () at
src/event/ngx_event_timer.c:149
#15 0x08067246 in ngx_process_events_and_timers (cycle=0x28526028) at
src/event/ngx_event.c:261
#16 0x080722e2 in ngx_worker_process_cycle (cycle=0x28526028, data=0x0)
    at src/os/unix/ngx_process_cycle.c:781
#17 0x0806fa9a in ngx_spawn_process (cycle=0x28526028, proc=0x80721a0
<ngx_worker_process_cycle>,
    data=0x0, name=0x80d355c "worker process", respawn=1) at
src/os/unix/ngx_process.c:196
#18 0x08071ea8 in ngx_reap_children (cycle=0x28526028) at
src/os/unix/ngx_process_cycle.c:602
#19 0x08070f3b in ngx_master_process_cycle (cycle=0x28526028)
    at src/os/unix/ngx_process_cycle.c:177
#20 0x0804be2e in main (argc=5, argv=0xbfbfeed0) at src/core/nginx.c:392
(gdb)

-- 
Best regards, Andrey Y. Ostanovsky
jabberID: aost at jabber.spb.ru
St. Petersburg, Russia 






More information about the nginx-ru mailing list