ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

nginx & core dump 2


  • To: nginx-ru@xxxxxxxxx
  • Subject: nginx & core dump 2
  • From: "ak84" <nginx-forum@xxxxxxxx>
  • Date: Fri, 05 Oct 2012 14:55:11 -0400
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tigger.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=7AuHBPIve3K9sq7BxSGuUEtOZ7vTN+rTnWRyU0HscT0=; b=jFwORvc8IctWxIdkDl9iN6HKCg5TF9+yydkdVGhcpn6iJ15ef11effeBGrwYhBpgWYhhzGW7oYhh0tUbbg47uAUWOQEiOJBlxXPEB+DLdtMPiVLHAwzFMF+ajjNu9hJs;

Добрый вечер.
В продолжение темы http://forum.nginx.org/read.php?21,230962
Перевёл nginx на обновлённую ОС: FreeBSD 8.2-RELEASE-p3, обновил nginx ( из
портов): 
nginx version: nginx/1.2.4
TLS SNI support enabled
configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I
/usr/local/include' --with-ld-opt='-L /usr/local/lib'
--conf-path=/usr/local/etc/nginx/nginx.conf
--sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid
--error-log-path=/var/log/nginx-error.log --user=www --group=www
--with-debug --http-client-body-temp-path=/var/tmp/nginx/client_body_temp
--http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp
--http-proxy-temp-path=/var/tmp/nginx/proxy_temp
--http-scgi-temp-path=/var/tmp/nginx/scgi_temp
--http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp
--http-log-path=/var/log/nginx-access.log
--add-module=/usr/ports/www/nginx/work/agentzh-headers-more-nginx-module-6586984
--with-http_image_filter_module
--add-module=/usr/ports/www/nginx/work/yaoweibin-ngx_http_substitutions_filter_module-27a01b3
--with-http_stub_status_module --with-pcre --with-http_ssl_module

В dmesg вижу:
pid 31627 (nginx), uid 80: exited on signal 11 (core dumped)
Смотрю core-файл:

Core was generated by `nginx'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libcrypt.so.5...done.
Loaded symbols for /lib/libcrypt.so.5
Reading symbols from /usr/local/lib/libpcre.so.1...done.
Loaded symbols for /usr/local/lib/libpcre.so.1
Reading symbols from /usr/lib/libssl.so.6...done.
Loaded symbols for /usr/lib/libssl.so.6
Reading symbols from /lib/libcrypto.so.6...done.
Loaded symbols for /lib/libcrypto.so.6
Reading symbols from /lib/libz.so.5...done.
Loaded symbols for /lib/libz.so.5
Reading symbols from /usr/local/lib/libgd.so.4...done.
Loaded symbols for /usr/local/lib/libgd.so.4
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /usr/local/lib/libfontconfig.so.1...done.
Loaded symbols for /usr/local/lib/libfontconfig.so.1
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /usr/local/lib/libpng15.so.15...done.
Loaded symbols for /usr/local/lib/libpng15.so.15
Reading symbols from /usr/local/lib/libjpeg.so.11...done.
Loaded symbols for /usr/local/lib/libjpeg.so.11
Reading symbols from /usr/local/lib/libfreetype.so.9...done.
Loaded symbols for /usr/local/lib/libfreetype.so.9
Reading symbols from /lib/libm.so.5...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /lib/libthr.so.3...done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /usr/lib/libbz2.so.4...done.
Loaded symbols for /usr/lib/libbz2.so.4
Reading symbols from /usr/local/lib/libexpat.so.6...done.
Loaded symbols for /usr/local/lib/libexpat.so.6
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x00000000004690ce in ngx_http_upstream_init_request (r=0x801f7f600) at
src/http/ngx_http_upstream.c:639
639         if (uscf->peer.init(r, uscf) != NGX_OK) {
[New Thread 801e041c0 (LWP 105099)]
[New LWP 104549]

worker вылетел в корку в src/http/ngx_http_upstream.c:639 ?


(gdb) bt
#0  0x00000000004690ce in ngx_http_upstream_init_request (r=0x801f7f600) at
src/http/ngx_http_upstream.c:639
#1  0x0000000000468924 in ngx_http_upstream_init (r=0x801f7f600) at
src/http/ngx_http_upstream.c:446
#2  0x000000000045eca3 in ngx_http_read_client_request_body (r=0x801f7f600,
post_handler=0x468840 <ngx_http_upstream_init>) at
src/http/ngx_http_request_body.c:59
#3  0x000000000049d9dc in ngx_http_proxy_handler (r=0x801f7f600) at
src/http/modules/ngx_http_proxy_module.c:702
#4  0x00000000004469cd in ngx_http_core_content_phase (r=0x801f7f600,
ph=0x8029ce718) at src/http/ngx_http_core_module.c:1396
#5  0x0000000000445502 in ngx_http_core_run_phases (r=0x801f7f600) at
src/http/ngx_http_core_module.c:877
#6  0x000000000044547d in ngx_http_handler (r=0x801f7f600) at
src/http/ngx_http_core_module.c:860
#7  0x0000000000453d94 in ngx_http_process_request (r=0x801f7f600) at
src/http/ngx_http_request.c:1685
#8  0x0000000000452795 in ngx_http_process_request_headers (rev=0x804a018f0)
at src/http/ngx_http_request.c:1135
#9  0x0000000000451f26 in ngx_http_process_request_line (rev=0x804a018f0) at
src/http/ngx_http_request.c:933
#10 0x0000000000451128 in ngx_http_init_request (rev=0x804a018f0) at
src/http/ngx_http_request.c:519
#11 0x000000000042d47c in ngx_event_process_posted (cycle=0x801eed050,
posted=0x5f0a60) at src/event/ngx_event_posted.c:40
#12 0x000000000042af25 in ngx_process_events_and_timers (cycle=0x801eed050)
at src/event/ngx_event.c:274
#13 0x0000000000438264 in ngx_worker_process_cycle (cycle=0x801eed050,
data=0x0) at src/os/unix/ngx_process_cycle.c:808
#14 0x0000000000435261 in ngx_spawn_process (cycle=0x801eed050,
proc=0x438070 <ngx_worker_process_cycle>, data=0x0, name=0x4c1869 "worker
process", respawn=6) at src/os/unix/ngx_process.c:198
#15 0x0000000000437c92 in ngx_reap_children (cycle=0x801eed050) at
src/os/unix/ngx_process_cycle.c:622
#16 0x00000000004369e6 in ngx_master_process_cycle (cycle=0x801eed050) at
src/os/unix/ngx_process_cycle.c:181
#17 0x00000000004066d3 in main (argc=1, argv=0x7fffffffed68) at
src/core/nginx.c:410


(gdb) bt full
#0  0x00000000004690ce in ngx_http_upstream_init_request (r=0x801f7f600) at
src/http/ngx_http_upstream.c:639
        host = (ngx_str_t *) 0x801e55000
        i = 34422664328
        ctx = (ngx_resolver_ctx_t *) 0x7fffffffe520
        temp = {next = 0x0, resolver = 0x0, udp_connection = 0x3f005fccd8,
ident = 430033600514, state = 361, type = 2, name = {len = 140737488348368,
data = 0x7fffffffed78 "fОЪЪЪ\177"}, 
  naddrs = 140737488350568, addrs = 0x0, addr = 0, handler = 0x4322b5
<ngx_memalign+37>, data = 0x0, timeout = 37, quick = 18446744073709551614,
recursion = 34445727984, event = 0x80221f000}
        cln = (ngx_http_cleanup_t *) 0x80221efe0
        u = (ngx_http_upstream_t *) 0x80221f020
        clcf = (ngx_http_core_loc_conf_t *) 0x802347330
        uscf = (ngx_http_upstream_srv_conf_t *) 0x0
        uscfp = (ngx_http_upstream_srv_conf_t **) 0x8052018f0
        umcf = (ngx_http_upstream_main_conf_t *) 0x80221eef0
#1  0x0000000000468924 in ngx_http_upstream_init (r=0x801f7f600) at
src/http/ngx_http_upstream.c:446
        c = (ngx_connection_t *) 0x803c02c88
#2  0x000000000045eca3 in ngx_http_read_client_request_body (r=0x801f7f600,
post_handler=0x468840 <ngx_http_upstream_init>) at
src/http/ngx_http_request_body.c:59
        preread = 34395512832
        size = 34395516400
        b = (ngx_buf_t *) 0x80221e000
        cl = (ngx_chain_t *) 0x7fffffffe5d0
        next = (ngx_chain_t **) 0x40996a
        tf = (ngx_temp_file_t *) 0x100
        rb = (ngx_http_request_body_t *) 0x80221eef0
        clcf = (ngx_http_core_loc_conf_t *) 0x0
#3  0x000000000049d9dc in ngx_http_proxy_handler (r=0x801f7f600) at
src/http/modules/ngx_http_proxy_module.c:702
        rc = 140737488348704
        u = (ngx_http_upstream_t *) 0x80221f020
        ctx = (ngx_http_proxy_ctx_t *) 0x80221ed50
        plcf = (ngx_http_proxy_loc_conf_t *) 0x802347718
#4  0x00000000004469cd in ngx_http_core_content_phase (r=0x801f7f600,
ph=0x8029ce718) at src/http/ngx_http_core_module.c:1396
        root = 18446744073709551611
        rc = 0
        path = {len = 34403575552, data = 0x801f7f600 "HTTP"}
#5  0x0000000000445502 in ngx_http_core_run_phases (r=0x801f7f600) at
src/http/ngx_http_core_module.c:877
        rc = -2
        ph = (ngx_http_phase_handler_t *) 0x8029ce628
        cmcf = (ngx_http_core_main_conf_t *) 0x801eee828
#6  0x000000000044547d in ngx_http_handler (r=0x801f7f600) at
src/http/ngx_http_core_module.c:860
        cmcf = (ngx_http_core_main_conf_t *) 0x804a018f0
#7  0x0000000000453d94 in ngx_http_process_request (r=0x801f7f600) at
src/http/ngx_http_request.c:1685
        c = (ngx_connection_t *) 0x803c02c88
#8  0x0000000000452795 in ngx_http_process_request_headers (rev=0x804a018f0)
at src/http/ngx_http_request.c:1135
        p = (u_char *) 0x10 <Address 0x10 out of bounds>
        len = 34395512832
        n = 199
        rc = 0
        rv = 140737488349072
        h = (ngx_table_elt_t *) 0x80221e928
        c = (ngx_connection_t *) 0x803c02c88
        hh = (ngx_http_header_t *) 0x5d7320
        r = (ngx_http_request_t *) 0x801f7f600
        cscf = (ngx_http_core_srv_conf_t *) 0x802323f50
        cmcf = (ngx_http_core_main_conf_t *) 0x801eee828
#9  0x0000000000451f26 in ngx_http_process_request_line (rev=0x804a018f0) at
src/http/ngx_http_request.c:933
        host = (u_char *) 0x80221e000 "ЬО!\002\b"
        n = 304
        rc = 0
        rv = 672
        c = (ngx_connection_t *) 0x803c02c88
        r = (ngx_http_request_t *) 0x801f7f600
        cscf = (ngx_http_core_srv_conf_t *) 0x80221e568
#10 0x0000000000451128 in ngx_http_init_request (rev=0x804a018f0) at
src/http/ngx_http_request.c:519
        tp = (ngx_time_t *) 0x5ee4c0
        i = 2361183241434822607
        c = (ngx_connection_t *) 0x803c02c88
        r = (ngx_http_request_t *) 0x801f7f600
        sin = (struct sockaddr_in *) 0x3cb
        port = (ngx_http_port_t *) 0x8039ef238
        addr = (ngx_http_in_addr_t *) 0x8039ef248
        ctx = (ngx_http_log_ctx_t *) 0x8022339a0
        addr_conf = (ngx_http_addr_conf_t *) 0x8039ef250
        hc = (ngx_http_connection_t *) 0x8022339b8
        cscf = (ngx_http_core_srv_conf_t *) 0x802323f50
        clcf = (ngx_http_core_loc_conf_t *) 0x802324178
        cmcf = (ngx_http_core_main_conf_t *) 0x801eee828
#11 0x000000000042d47c in ngx_event_process_posted (cycle=0x801eed050,
posted=0x5f0a60) at src/event/ngx_event_posted.c:40
        ev = (ngx_event_t *) 0x804a018f0
#12 0x000000000042af25 in ngx_process_events_and_timers (cycle=0x801eed050)
at src/event/ngx_event.c:274
        flags = 3
        timer = 3971
        delta = 0
#13 0x0000000000438264 in ngx_worker_process_cycle (cycle=0x801eed050,
data=0x0) at src/os/unix/ngx_process_cycle.c:808
        i = 1
        c = (ngx_connection_t *) 0x7fffffffe990
#14 0x0000000000435261 in ngx_spawn_process (cycle=0x801eed050,
proc=0x438070 <ngx_worker_process_cycle>, data=0x0, name=0x4c1869 "worker
process", respawn=6) at src/os/unix/ngx_process.c:198
        on = 1
        pid = 0
        s = 6
#15 0x0000000000437c92 in ngx_reap_children (cycle=0x801eed050) at
src/os/unix/ngx_process_cycle.c:622
        i = 6
        n = 8
        live = 1
        ch = {command = 2, pid = 31558, slot = 6, fd = -1}
        ccf = (ngx_core_conf_t *) 0x506f0c27
#16 0x00000000004369e6 in ngx_master_process_cycle (cycle=0x801eed050) at
src/os/unix/ngx_process_cycle.c:181
        title = 0x80226bfb4 "master process /usr/local/sbin/nginx"
        p = (u_char *) 0x80226bfd8 ""
        size = 37
        i = 1
        n = 6
        sigio = 0
        set = {__bits = {0, 0, 0, 0}}
        itv = {it_interval = {tv_sec = 0, tv_usec = 0}, it_value = {tv_sec =
0, tv_usec = 0}}
        live = 1
        delay = 0
        ls = (ngx_listening_t *) 0x6
        ccf = (ngx_core_conf_t *) 0x801eee050
#17 0x00000000004066d3 in main (argc=1, argv=0x7fffffffed68) at
src/core/nginx.c:410
        i = 52
        log = (ngx_log_t *) 0x5ee040
        cycle = (ngx_cycle_t *) 0x801e55050
        init_cycle = {conf_ctx = 0x0, pool = 0x801e49800, log = 0x5ee040,
new_log = {log_level = 0, file = 0x0, connection = 0, handler = 0, data =
0x0, action = 0x0}, files = 0x0, 
  free_connections = 0x0, free_connection_n = 0, reusable_connections_queue
= {prev = 0x0, next = 0x0}, listening = {elts = 0x0, nelts = 0, size = 0,
nalloc = 0, pool = 0x0}, pathes = {elts = 0x0, 
    nelts = 0, size = 0, nalloc = 0, pool = 0x0}, open_files = {last = 0x0,
part = {elts = 0x0, nelts = 0, next = 0x0}, size = 0, nalloc = 0, pool =
0x0}, shared_memory = {last = 0x0, part = {
      elts = 0x0, nelts = 0, next = 0x0}, size = 0, nalloc = 0, pool = 0x0},
connection_n = 0, files_n = 0, connections = 0x0, read_events = 0x0,
write_events = 0x0, old_cycle = 0x0, conf_file = {
    len = 31, data = 0x4bd9f0 "/usr/local/etc/nginx/nginx.conf"}, conf_param
= {len = 0, data = 0x0}, conf_prefix = {len = 21, data = 0x4bd9f0
"/usr/local/etc/nginx/nginx.conf"}, prefix = {len = 21, 
    data = 0x4bd9d8 "/usr/local/etc/nginx/"}, lock_file = {len = 0, data =
0x0}, hostname = {len = 0, data = 0x0}}
    ccf = (ngx_core_conf_t *) 0x801e56040

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?21,231434,231434#msg-231434

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.