terminated with signal 11, Segmentation fault.

Никита Козлов niakrisn на gmail.com
Чт Ноя 4 12:36:07 MSK 2010


nginx -V
nginx version: nginx/0.8.53
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 --with-file-aio
--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 --with-http_addition_module
--with-http_geoip_module --with-http_realip_module
--add-module=/usr/ports/www/nginx/work/ngx_http_response-0.3
--with-http_secure_link_module --with-http_ssl_module
--with-http_stub_status_module --with-http_sub_module --with-pcre

Попробую предоставить debug log
-----------------------------------------------------
(gdb) fr 0
#0  0x0000000000477ba3 in ngx_http_file_cache_free (c=0x81085f368,
tf=0x81085fe80) at src/http/ngx_http_file_cache.c:940
940     in src/http/ngx_http_file_cache.c
(gdb) p *fcn
$3 = {node = {key = 0, left = 0x0, right = 0x0, parent = 0x0, color = 1
'\001', data = 208 'п'}, queue = {prev = 0x0, next = 0x0}, key =
"y╧ґй+\237\236]",
  count = 0, uses = 1, valid_msec = 0, error = 0, exists = 0, updating = 0,
deleting = 0, uniq = 0, expire = 1288851999, valid_sec = 0, body_start = 0,
  length = 0}
(gdb) fr 1
#1  0x00000000004697f6 in ngx_http_upstream_process_request (r=0x801264d00)
at src/http/ngx_http_upstream.c:2664
2664    src/http/ngx_http_upstream.c: No such file or directory.
        in src/http/ngx_http_upstream.c
(gdb) p *r
$4 = {signature = 1347703880, connection = 0x81100b690, ctx = 0x81085c410,
main_conf = 0x80126ce78, srv_conf = 0x81025d530, loc_conf = 0x810261780,
  read_event_handler = 0x465a00
<ngx_http_upstream_rd_check_broken_connection>, write_event_handler =
0x4692d0 <ngx_http_upstream_process_downstream>,
  cache = 0x81085f368, upstream = 0x81085f020, upstream_states =
0x81085f8d0, pool = 0x81085c000, header_in = 0x802005820, headers_in =
{headers = {
      last = 0x801264d70, part = {elts = 0x81085c888, nelts = 9, next =
0x0}, size = 48, nalloc = 20, pool = 0x81085c000}, host = 0x81085c9a8,
    connection = 0x0, if_modified_since = 0x0, user_agent = 0x81085c978,
referer = 0x81085c8e8, content_length = 0x0, content_type = 0x0, range =
0x0,
    if_range = 0x0, transfer_encoding = 0x0, expect = 0x0, accept_encoding =
0x81085c948, via = 0x0, authorization = 0x0, keep_alive = 0x0,
    x_forwarded_for = 0x0, x_real_ip = 0x0, user = {len = 0, data = 0x0},
passwd = {len = 0, data = 0x0}, cookies = {elts = 0x81085cc48, nelts = 1,
      size = 8, nalloc = 2, pool = 0x81085c000}, server = {len = 8, data =
0x81085cca0 "rarib.ruconnectioncookie иs\020\b"}, content_length_n = -1,
    keep_alive_n = -1, connection_type = 2, msie = 1, msie4 = 0, msie6 = 0,
opera = 0, gecko = 0, chrome = 0, safari = 0, konqueror = 0}, headers_out =
{
    headers = {last = 0x801264ea0, part = {elts = 0x81085c050, nelts = 4,
next = 0x0}, size = 48, nalloc = 20, pool = 0x81085c000}, status = 200,
    status_line = {len = 6, data = 0x81085fbc0 "200 OKDate"}, server = 0x0,
date = 0x0, content_length = 0x81085c0e0, content_encoding = 0x0,
    location = 0x0, refresh = 0x0, last_modified = 0x81085c050,
content_range = 0x0, accept_ranges = 0x81085c0b0, www_authenticate = 0x0,
expires = 0x0,
    etag = 0x81085c080, override_charset = 0x0, content_type_len = 11,
content_type = {len = 11, data = 0x81085fcd3 "video/x-flv"}, charset = {len
= 0,
      data = 0x0}, content_type_lowcase = 0x0, content_type_hash = 0,
cache_control = {elts = 0x0, nelts = 0, size = 0, nalloc = 0, pool = 0x0},
    content_length_n = 234083456, date_time = 0, last_modified_time =
1286239310}, request_body = 0x81085cfa8, lingering_time = 0, start_sec =
1288851399,
  start_msec = 29, method = 2, http_version = 1001, request_line = {len =
42, data = 0x80123a800 "GET /pdir/video/nExFZ_Rp.part.flv
HTTP/1.1\r\nAccept"},
  uri = {len = 29, data = 0x80123a804 "/pdir/video/nExFZ_Rp.part.flv
HTTP/1.1\r\nAccept"}, args = {len = 0, data = 0x0}, exten = {len = 3,
    data = 0x80123a81e "flv HTTP/1.1\r\nAccept"}, unparsed_uri = {len = 29,
data = 0x80123a804 "/pdir/video/nExFZ_Rp.part.flv HTTP/1.1\r\nAccept"},
  method_name = {len = 3, data = 0x80123a800 "GET
/pdir/video/nExFZ_Rp.part.flv HTTP/1.1\r\nAccept"}, http_protocol = {len =
8,
    data = 0x80123a822 "HTTP/1.1\r\nAccept"}, out = 0x81081b9a0, main =
0x801264d00, parent = 0x0, postponed = 0x0, post_subrequest = 0x0,
  posted_requests = 0x0, virtual_names = 0x810dce3a8, phase_handler = 12,
content_handler = 0x49d160 <ngx_http_proxy_handler>, access_code = 0,
  variables = 0x81085c588, ncaptures = 4, captures = 0x81085cdb0,
captures_data = 0x80123a804 "/pdir/video/nExFZ_Rp.part.flv
HTTP/1.1\r\nAccept",
  limit_rate = 0, header_size = 256, request_length = 727, err_status = 0,
http_connection = 0x8020057b8,
  log_handler = 0x453400 <ngx_http_log_error_handler>, cleanup =
0x81085f930, subrequests = 51, count = 1, blocked = 0, aio = 0, http_state =
2,
  complex_uri = 0, quoted_uri = 0, plus_in_uri = 0, space_in_uri = 0,
invalid_header = 0, add_uri_to_alias = 0, valid_location = 1,
valid_unparsed_uri = 1,
  uri_changed = 0, uri_changes = 11, request_body_in_single_buf = 0,
request_body_in_file_only = 0, request_body_in_persistent_file = 0,
  request_body_in_clean_file = 0, request_body_file_group_access = 0,
request_body_file_log_level = 5, subrequest_in_memory = 0, waited = 0,
cached = 0,
  gzip_tested = 0, gzip_ok = 0, gzip_vary = 0, proxy = 0, bypass_cache = 0,
no_cache = 0, limit_zone_set = 0, limit_req_set = 0, flood_mitigation_set =
0,
  pipeline = 0, plain_http = 0, chunked = 0, header_only = 0, keepalive = 1,
lingering_close = 0, discard_body = 0, internal = 0, error_page = 0,
  ignore_content_encoding = 0, filter_finalize = 0, post_action = 0,
request_complete = 0, request_output = 1, header_sent = 1, expect_tested =
0,
  root_tested = 0, done = 0, logged = 0, buffered = 0,
main_filter_need_in_memory = 0, filter_need_in_memory = 0,
filter_need_temporary = 0,
  allow_ranges = 0, stat_reading = 0, stat_writing = 1, state = 0,
header_hash = 2609428126162509838, lowcase_index = 12,
  lowcase_header = "content-typethg", '\0' <repeats 16 times>,
  header_name_start = 0x80184214e
"%4\220p\230Ц\031ЭЁyrЭ\204\004В?uуY=З\021\n\002\032уЧUUu╙╙╗:s╗F+%z\177\204cc",
  header_name_end = 0x80184213f
"©D\177яillБЩcqwъj(%4\220p\230Ц\031ЭЁyrЭ\204\004В?uуY=З\021\n\002\032уЧUUu╙╙╗:s╗F+%z\177\204cc",
  header_start = 0x801842141
"\177яillБЩcqwъj(%4\220p\230Ц\031ЭЁyrЭ\204\004В?uуY=З\021\n\002\032уЧUUu╙╙╗:s╗F+%z\177\204cc",
  header_end = 0x80184214e
"%4\220p\230Ц\031ЭЁyrЭ\204\004В?uуY=З\021\n\002\032уЧUUu╙╙╗:s╗F+%z\177\204cc",
  uri_start = 0x80123a804 "/pdir/video/nExFZ_Rp.part.flv
HTTP/1.1\r\nAccept", uri_end = 0x80123a821 " HTTP/1.1\r\nAccept",
  uri_ext = 0x80123a81e "flv HTTP/1.1\r\nAccept", args_start = 0x0,
request_start = 0x80123a800 "GET /pdir/video/nExFZ_Rp.part.flv
HTTP/1.1\r\nAccept",
  request_end = 0x80123a82a "\r\nAccept", method_end = 0x80123a802 "T
/pdir/video/nExFZ_Rp.part.flv HTTP/1.1\r\nAccept", schema_start = 0x0,
  schema_end = 0x0, host_start = 0x0, host_end = 0x0, port_start = 0x0,
port_end = 0x0, http_minor = 1, http_major = 1}
(gdb) p *u
$5 = {read_event_handler = 0x469510 <ngx_http_upstream_process_upstream>,
write_event_handler = 0x469bf0 <ngx_http_upstream_dummy_handler>, peer = {
    connection = 0x81100f740, sockaddr = 0x81085fa10, socklen = 16, name =
0x81085f9a8, tries = 1, get = 0x46e990
<ngx_http_upstream_get_round_robin_peer>,
    free = 0x46f320 <ngx_http_upstream_free_round_robin_peer>, data =
0x81085f948, set_session = 0x46f540
<ngx_http_upstream_set_round_robin_peer_session>,
    save_session = 0x46f610
<ngx_http_upstream_save_round_robin_peer_session>, local = 0x0, rcvbuf = 0,
log = 0x802005760, cached = 0, log_error = 1},
  pipe = 0x81085cea8, request_bufs = 0x81085f8c0, output = {buf = 0x0, in =
0x0, free = 0x0, busy = 0x0, sendfile = 1, directio = 0, need_in_memory = 0,
    need_in_temp = 0, aio = 0, aio_handler = 0, alignment = 512, pool =
0x81085c000, allocated = 0, bufs = {num = 1, size = 131072}, tag = 0x5d19c0,
    output_filter = 0x40cbd0 <ngx_chain_writer>, filter_ctx = 0x81085f120},
writer = {out = 0x0, last = 0x81085f120, connection = 0x81100f740,
    pool = 0x81085c000, limit = 0}, conf = 0x810261dc8, headers_in =
{headers = {last = 0x81085f158, part = {elts = 0x81085fa40, nelts = 8, next
= 0x0},
      size = 48, nalloc = 8, pool = 0x81085c000}, status_n = 200,
status_line = {len = 6, data = 0x81085fbc0 "200 OKDate"}, status = 0x0,
    date = 0x81085fa40, server = 0x81085fa70, connection = 0x0, expires =
0x0, etag = 0x81085fad0, x_accel_expires = 0x0, x_accel_redirect = 0x0,
    x_accel_limit_rate = 0x0, content_type = 0x81085fb90, content_length =
0x81085fb30, last_modified = 0x81085faa0, location = 0x0,
    accept_ranges = 0x81085fb00, www_authenticate = 0x0, content_encoding =
0x0, content_length_n = 234083456, cache_control = {elts = 0x0, nelts = 0,
      size = 0, nalloc = 0, pool = 0x0}}, resolved = 0x81085ce60, buffer =
{pos = 0x801842000
"\217*╩гZT^т\v\002\203\210tЕ╡\206QzЄьT╘й═х)\216\023м4ЫM\230",
    last = 0x801842000
"\217*╩гZT^т\v\002\203\210tЕ╡\206QzЄьT╘й═х)\216\023м4ЫM\230", file_pos = 0,
file_last = 0,
    start = 0x801842000
"\217*╩гZT^т\v\002\203\210tЕ╡\206QzЄьT╘й═х)\216\023м4ЫM\230", end =
0x801844000 "(П^", tag = 0x5d19c0, file = 0x0, shadow = 0x0,
    temporary = 1, memory = 0, mmap = 0, recycled = 1, in_file = 0, flush =
0, sync = 0, last_buf = 0, last_in_chain = 0, last_shadow = 0, temp_file =
0,
    num = 26872}, length = 234083456, out_bufs = 0x0, busy_bufs = 0x0,
free_bufs = 0x0, input_filter_init = 0, input_filter = 0, input_filter_ctx =
0x0,
  create_key = 0x49d900 <ngx_http_proxy_create_key>, create_request =
0x49dd70 <ngx_http_proxy_create_request>,
  reinit_request = 0x49ec90 <ngx_http_proxy_reinit_request>, process_header
= 0x49ef90 <ngx_http_proxy_process_header>,
  abort_request = 0x49f440 <ngx_http_proxy_abort_request>, finalize_request
= 0x49f490 <ngx_http_proxy_finalize_request>, rewrite_redirect = 0,
  timeout = 0, state = 0x81085f8f8, method = {len = 0, data = 0x0}, schema =
{len = 7, data = 0x81085ce40 "http://188.127.242.234:80╔╔╔╔╔╔╔\017"}, uri =
{
    len = 29,
    data = 0x81085f5b4 "/pdir/video/nExFZ_Rp.part.flv HTTP/1.0\r\nHost:
rarib.ru\r\nX-Real-IP: 95.154.116.140\r\nX-Forwarded-For:
95.154.116.140\r\nConnection: close\r\nAccept: */*\r\nAccept-Language:
ru-RU\r\nReferer: http://flv-mp3.com/"...}, cleanup = 0x81085f930, store =
0, cacheable = 1, accel = 1,
  ssl = 0, cache_status = 1, buffering = 1, request_sent = 1, header_sent =
1}
(gdb) p *p
$6 = {upstream = 0x81100f740, downstream = 0x81100b690, free_raw_bufs =
0x8108e5ff0, in = 0x0, last_in = 0x81085cec0, out = 0x0, last_out =
0x810818d78,
  free = 0x810818d70, busy = 0x0, input_filter = 0x42e1a0
<ngx_event_pipe_copy_input_filter>, input_ctx = 0x0,
  output_filter = 0x444d70 <ngx_http_output_filter>, output_ctx =
0x801264d00, read = 0, cacheable = 1, single_buf = 0, free_bufs = 1,
upstream_done = 0,
  upstream_error = 1, upstream_eof = 0, upstream_blocked = 0,
downstream_done = 0, downstream_error = 1, cyclic_temp_file = 0, allocated =
11, bufs = {
    num = 64, size = 8192}, tag = 0x5d19c0, busy_size = 32768, read_length =
220177144, max_temp_file_size = 1073741824, temp_file_write_size = 131072,
  read_timeout = 120000, send_timeout = 60000, send_lowat = 0, pool =
0x81085c000, log = 0x802005760, preread_bufs = 0x0, preread_size = 0,
  buf_to_file = 0x0, temp_file = 0x81085fe80, num = 26877}


4 ноября 2010 г. 12:24 пользователь Maxim Dounin <mdounin at mdounin.ru>написал:

> Hello!
>
> On Thu, Nov 04, 2010 at 09:55:23AM +0300, Никита Козлов wrote:
>
> > Приветствую, nginx/0.8.53 валиться в корку.
>
> nginx -V, config, debug log
>
> http://wiki.nginx.org/Debugging
>
> > #0  0x0000000000477ba3 in ngx_http_file_cache_free (c=0x81085f368,
> > tf=0x81085fe80) at src/http/ngx_http_file_cache.c:940
> > 940     src/http/ngx_http_file_cache.c: No such file or directory.
> >         in src/http/ngx_http_file_cache.c
> > (gdb) bt
> > #0  0x0000000000477ba3 in ngx_http_file_cache_free (c=0x81085f368,
> > tf=0x81085fe80) at src/http/ngx_http_file_cache.c:940
>
> fr 0
> p *fcn
>
> > #1  0x00000000004697f6 in ngx_http_upstream_process_request
> (r=0x801264d00)
> > at src/http/ngx_http_upstream.c:2664
>
> fr 1
> p *r
> p *u
> p *p
>
> Maxim Dounin
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru at nginx.org
> http://nginx.org/mailman/listinfo/nginx-ru
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20101104/f92e377d/attachment-0001.html>


Подробная информация о списке рассылки nginx-ru