ðòïåëôù 


  áòèé÷ 


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]

Re: terminated with signal 11, Segmentation fault.


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: terminated with signal 11, Segmentation fault.
  • From: îÉËÉÔÁ ëÏÚÌÏ× <niakrisn@xxxxxxxxx>
  • Date: Thu, 4 Nov 2010 12:36:07 +0300
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=Oi2N7cX8TKasziZPwuGZC8q7bIcN+TVlnsDUHQJ24Gg=; b=I/LFWT/5rwBOC4oGSESxDP9Xhfd/Z3Z9I9x6oh2fiKbzGpuq8Xf3w/UNc1lk+p3cCd 7A9GiCUDWrTeSlMEN9b1qIuNxXKdg0sYMOaKsOl+6XSI0MtOvh006vohGtMVh92+xFWO gD/B0RizAanqM0cWyopQsEoGvh+/bhq+9h+H8=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Tu8vaea7xSJCWLqOyyTPRdMO5ifr/Q1Bv/r4XbkrDSqHLIXvOr7ma30Omr1DZDF5li 9yyW2jXBJiWPSzducKaP9VPzldRrRq64+Hx8gYSSRq+g9lhqv+N4XvkKWmtAGoU6f5gb QDa/znpWeXNnZ6VX+Cb5hY5fegtr3jPcvjt+8=
  • In-reply-to: <20101104092427.GG44164@xxxxxxxxxx>
  • References: <AANLkTinCS9b_o6xAfb4Fs88m071UEw2OKttd4CvUB7R6@xxxxxxxxxxxxxx> <20101104092427.GG44164@xxxxxxxxxx>

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 = "" 'Ð'}, 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 = "" passwd = {len = 0, data = "" cookies = {elts = 0x81085cc48, nelts = 1,
šš š šsize = 8, nalloc = 2, pool = 0x81085c000}, server = {len = 8, data = "" "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 = "" "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 = "" "video/x-flv"}, charset = {len = 0,
šš š šdata = "" 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 = "" "GET /pdir/video/nExFZ_Rp.part.flv HTTP/1.1\r\nAccept"},
ššuri = {len = 29, data = "" "/pdir/video/nExFZ_Rp.part.flv HTTP/1.1\r\nAccept"}, args = {len = 0, data = "" exten = {len = 3,
šš šdata = "" "flv HTTP/1.1\r\nAccept"}, unparsed_uri = {len = 29, data = "" "/pdir/video/nExFZ_Rp.part.flv HTTP/1.1\r\nAccept"},
ššmethod_name = {len = 3, data = "" "GET /pdir/video/nExFZ_Rp.part.flv HTTP/1.1\r\nAccept"}, http_protocol = {len = 8,
šš šdata = "" "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 = "" 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 = "" "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 = "" schema = {len = 7, data = "" "http://188.127.242.234:80¥¥¥¥¥¥¥\017"}, uri = {
šš šlen = 29,
šš šdata = "" "/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@xxxxxxxxxx> ÎÁÐÉÓÁÌ:
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@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru

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


 




Copyright © Lexa Software, 1996-2009.