Copyright (C) 2008 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-suse-linux".
warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib64/libcrypt.so.1...done.
Reading symbols from /usr/lib64/libpcre.so.0...done.
Reading symbols from /usr/lib64/libcrypto.so.0.9.8...done.
Reading symbols from /lib64/libz.so.1...done.
Reading symbols from /lib64/libc.so.6...done.
Reading symbols from /lib64/libdl.so.2...done.
Reading symbols from /lib64/ld-linux-x86-64.so.2...done.
Core was generated by `nginx: worker process '.
Program terminated with signal 11, Segmentation fault.
#0 0x0000000000427bc2 in ngx_http_close_request (r=0x686750, rc=0) at src/http/ngx_http_request.c:2885
#0 0x0000000000427bc2 in ngx_http_close_request (r=0x686750, rc=0) at src/http/ngx_http_request.c:2885
#1 0x00000000004294d4 in ngx_http_finalize_connection (r=0xabd650) at src/http/ngx_http_request.c:2112
#2 0x0000000000429bff in ngx_http_finalize_request (r=0xabd650, rc=0) at src/http/ngx_http_request.c:1854
#3 0x0000000000435883 in ngx_http_upstream_finalize_request (r=0xabd650, u=0xd284d0, rc=-4) at src/http/ngx_http_upstream.c:2959
#4 0x0000000000435da9 in ngx_http_upstream_cleanup (data="" optimized out>) at src/http/ngx_http_upstream.c:2845
#5 0x0000000000428196 in ngx_http_terminate_request (r=<value optimized out>, rc=0) at src/http/ngx_http_request.c:2054
#6 0x0000000000429cce in ngx_http_finalize_request (r=0xf53c38, rc=-1) at src/http/ngx_http_request.c:1887
#7 0x0000000000435883 in ngx_http_upstream_finalize_request (r=0xf53c38, u=0xc7c390, rc=-1) at src/http/ngx_http_upstream.c:2959
#8 0x000000000043651f in ngx_http_upstream_check_broken_connection (r=0xf53c38, ev=0x7f66499f6ca8) at src/http/ngx_http_upstream.c:1019
#9 0x00000000004365a3 in ngx_http_upstream_rd_check_broken_connection (r=0xabd650) at src/http/ngx_http_upstream.c:888
#10 0x0000000000427963 in ngx_http_request_handler (ev=<value optimized out>) at src/http/ngx_http_request.c:1775
#11 0x0000000000417816 in ngx_event_process_posted (cycle=<value optimized out>, posted=0x0) at src/event/ngx_event_posted.c:39
#12 0x00000000004176df in ngx_process_events_and_timers (cycle=0xad11d0) at src/event/ngx_event.c:272
#13 0x000000000041cfc1 in ngx_worker_process_cycle (cycle=0xad11d0, data="" optimized out>) at src/os/unix/ngx_process_cycle.c:795
#14 0x000000000041b863 in ngx_spawn_process (cycle=0xad11d0, proc=0x41cee6 <ngx_worker_process_cycle>, data="">
name=0x454e79 "worker process", respawn=-4) at src/os/unix/ngx_process.c:196
#15 0x000000000041c607 in ngx_start_worker_processes (cycle=0xad11d0, n=8, type=-4) at src/os/unix/ngx_process_cycle.c:355
#16 0x000000000041daf1 in ngx_master_process_cycle (cycle=0xad11d0) at src/os/unix/ngx_process_cycle.c:249
#17 0x000000000040453a in main (argc=<value optimized out>, argv=0x7fff566633b8) at src/core/nginx.c:396
(gdb) fr 0
#0 0x0000000000427bc2 in ngx_http_close_request (r=0x686750, rc=0) at src/http/ngx_http_request.c:2885
2885 ngx_log_error(NGX_LOG_ALERT, c->log, 0, "http request count is zero");
(gdb) p c
$1 = (ngx_connection_t *) 0x90beb0
(gdb) p *c
$2 = {data = "" read = 0x141, write = 0x686740, fd = 9459136, recv = 0x9055d0, send = 0, recv_chain = 0xb0,
send_chain = 0x90bec0, listening = 0x0, sent = 9459264, log = 0x0, pool = 0x90bf20, sockaddr = 0x63059f437ce50002, socklen = 0,
addr_text = {len = 4, data = "" "\005"}, local_sockaddr = 0x1d463f9, buffer = 0x4281e7, number = 9486176, requests = 4539729,
buffered = 54, log_error = 7, single_connection = 0, unexpected_eof = 1, timedout = 1, error = 0, destroyed = 0, idle = 0, close = 1,
sendfile = 1, sndlowat = 1, tcp_nodelay = 2, tcp_nopush = 0}
(gdb) p *r
$3 = {signature = 9009072, connection = 0x90beb0, ctx = 0x0, main_conf = 0x0, srv_conf = 0x7f0820, loc_conf = 0x7fb038,
read_event_handler = 0x42a17c <ngx_http_test_reading>, write_event_handler = 0x42a265 <ngx_http_writer>, cache = 0x0,
upstream = 0xaeab78, upstream_states = 0xaecb00, pool = 0xaebc60, header_in = 0x9055f0, headers_in = {headers = {last = 0x6867c0,
part = {elts = 0xaec400, nelts = 5, next = 0x0}, size = 48, nalloc = 20, pool = 0xaebc60}, host = 0xaec430, connection = 0x0,
if_modified_since = 0x0, user_agent = 0xaec400, referer = 0x0, content_length = 0x0, content_type = 0x0, range = 0x0, if_range = 0x0,
transfer_encoding = 0x0, expect = 0x0, accept_encoding = 0x0, via = 0x0, authorization = 0x0, keep_alive = 0x0, x_forwarded_for = 0x0,
user = {len = 0, data = "" ""}, passwd = {len = 0, data = "" cookies = {elts = 0xaec7c0, nelts = 0, size = 8, nalloc = 2,
pool = 0xaebc60}, server = {len = 9, data = "" "tablew.ruaccept-languageacceptaccept-charsetФС Фф\230"},
content_length_n = -1, keep_alive_n = -1, connection_type = 0, msie = 0, msie4 = 0, msie6 = 0, opera = 0, gecko = 1, chrome = 0,
safari = 0, konqueror = 0}, headers_out = {headers = {last = 0x6868e8, part = {elts = 0xaebcb0, nelts = 1, next = 0x0}, size = 48,
nalloc = 20, pool = 0xaebc60}, status = 404, status_line = {len = 0, data = "" "200 OK"}, server = 0x0, date = 0x0,
content_length = 0x0, content_encoding = 0x0, location = 0x0, refresh = 0x0, last_modified = 0x0, content_range = 0x0,
accept_ranges = 0x0, www_authenticate = 0x0, expires = 0x0, etag = 0x0, override_charset = 0x0, content_type_len = 9, content_type = {
len = 31, data = "" "text/html; charset=windows-1251"}, charset = {len = 12, data = "" "windows-1251"},
content_type_lowcase = 0xaeb680 "text/html??", content_type_hash = 101824002410317, cache_control = {elts = 0x0, nelts = 0, size = 0,
nalloc = 0, pool = 0x0}, content_length_n = -1, date_time = 0, last_modified_time = -1}, request_body = 0xaecc08,
lingering_time = 0, start_sec = 1265722505, start_msec = 7, method = 2, http_version = 1001, request_line = {len = 0,
data = "" "РДв"}, uri = {len = 19, data = "" "/site/user_real.php?user=XXXXXЩ}"}, args = {len = 10,
data = "" "user=XXXXXЩ}"}, exten = {len = 3, data = "" "php?user=XXXXXЩ}"}, unparsed_uri = {len = 12, data = "" ""},
method_name = {len = 3, data = "" "GET "}, http_protocol = {len = 8, data = "" ""}, out = 0xf53c18, main = 0x686750,
parent = 0x0, postponed = 0xf54208, post_subrequest = 0x0, posted_requests = 0x0, virtual_names = 0xbb7ff8, phase_handler = 9,
content_handler = 0x44d8ef <ngx_http_fastcgi_handler>, access_code = 0, variables = 0xaec160, ncaptures = 4, captures = 0xaec810,
captures_data = 0x8977c4 "", limit_rate = 0, header_size = 264, request_length = 353, err_status = 404, http_connection = 0x90bf78,
log_handler = 0x4282ab <ngx_http_log_error_handler>, cleanup = 0x0, subrequests = 51, count = 0, blocked = 0, aio = 0, http_state = 6,
complex_uri = 0, quoted_uri = 0, plus_in_uri = 0, zero_in_uri = 0, invalid_header = 0, valid_location = 1, valid_unparsed_uri = 1,
uri_changed = 0, uri_changes = 9, 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, pipeline = 0, plain_http = 0, chunked = 1, header_only = 0, zero_body = 0, keepalive = 1, lingering_close = 0,
discard_body = 0, internal = 1, error_page = 1, ignore_content_encoding = 0, filter_finalize = 0, post_action = 0, request_complete = 0,
request_output = 1, header_sent = 1, expect_tested = 1, root_tested = 0, done = 0, logged = 0, buffered = 0,
main_filter_need_in_memory = 0, filter_need_in_memory = 1, filter_need_temporary = 0, allow_ranges = 0, stat_reading = 0,
stat_writing = 1, state = 0, header_hash = 2609428126162509838, lowcase_index = 12,
lowcase_header = "content-typeete", '\0' <repeats 16 times>,
header_name_start = 0xc8739e "HTML_CODE_FROM_PAGE_W_SSIHTML_CODE_FROM_PAGE_W_SSIHTML_CODE_FROM_PAGE_W_SSIHTML_CODE_FROM_PAGE_W_SSIHTML_CODE_FROM_PAGE_W_SSIHTML_CODE_FROM_PAGE_W_SSIHTML_CODE_FROM_PAGE_W_SSI"...,
header_name_end = 0xc8737b "HTML_CODE_FROM_PAGE_W_SSIHTML_CODE_FROM_PAGE_W_SSIHTML_CODE_FROM_PAGE_W_SSIHTML_CODE_FROM_PAGE_W_SSIHTML_CODE_FROM_PAGE_W_SSIHTML_CODE_FROM_PAGE_W_SSIHTML_CODE_FROM_PAGE_W_SSI"...,
header_start = 0xc8737d "HTML_CODE_FROM_PAGE_W_SSIHTML_CODE_FROM_PAGE_W_SSIHTML_CODE_FROM_PAGE_W_SSIHTML_CODE_FROM_PAGE_W_SSIHTML_CODE_FROM_PAGE_W_SSIHTML_CODE_FROM_PAGE_W_SSIHTML_CODE_FROM_PAGE_W_SSI"...,
header_end = 0xc8739e "HTML_CODE_FROM_PAGE_W_SSIHTML_CODE_FROM_PAGE_W_SSIHTML_CODE_FROM_PAGE_W_SSIHTML_CODE_FROM_PAGE_W_SSIHTML_CODE_FROM_PAGE_W_SSIHTML_CODE_FROM_PAGE_W_SSI"..., uri_start = 0x8977c4 "",
uri_end = 0x8977d0 "", uri_ext = 0x0, args_start = 0x0, request_start = 0x8977c0 "РДв", request_end = 0x8977d9 "",
method_end = 0x8977c2 "в", 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) fr 2
#2 0x0000000000429bff in ngx_http_finalize_request (r=0xabd650, rc=0) at src/http/ngx_http_request.c:1854
1854 ngx_http_finalize_connection(r);
(gdb) p *r
$4 = {signature = 1347703880, connection = 0x7f664a07f468, ctx = 0xabd000, main_conf = 0xad1ae0, srv_conf = 0x7f0820, loc_conf = 0x7fe108,
read_event_handler = 0x436592 <ngx_http_upstream_rd_check_broken_connection>,
write_event_handler = 0x437198 <ngx_http_upstream_process_non_buffered_downstream>, cache = 0x0, upstream = 0xd284d0,
upstream_states = 0xd282c0, pool = 0xaebc60, header_in = 0x0, headers_in = {headers = {last = 0x6867c0, part = {elts = 0xaec400,
nelts = 5, next = 0x0}, size = 48, nalloc = 20, pool = 0xaebc60}, host = 0xaec430, connection = 0x0, if_modified_since = 0x0,
user_agent = 0xaec400, referer = 0x0, content_length = 0x0, content_type = 0x0, range = 0x0, if_range = 0x0, transfer_encoding = 0x0,
expect = 0x0, accept_encoding = 0x0, via = 0x0, authorization = 0x0, keep_alive = 0x0, x_forwarded_for = 0x0, user = {len = 0,
data = "" ""}, passwd = {len = 0, data = "" cookies = {elts = 0xaec7c0, nelts = 0, size = 8, nalloc = 2, pool = 0xaebc60},
server = {len = 9, data = "" "tablew.ruaccept-languageacceptaccept-charsetФС Фф\230"}, content_length_n = -1, keep_alive_n = -1,
connection_type = 0, msie = 0, msie4 = 0, msie6 = 0, opera = 0, gecko = 1, chrome = 0, safari = 0, konqueror = 0}, headers_out = {
headers = {last = 0xabd7e8, part = {elts = 0xabdb30, nelts = 0, next = 0x0}, size = 48, nalloc = 20, pool = 0xaebc60}, status = 200,
status_line = {len = 0, data = "" server = 0x0, date = 0x0, content_length = 0x0, content_encoding = 0x0, location = 0x0,
refresh = 0x0, last_modified = 0x0, content_range = 0x0, accept_ranges = 0x0, www_authenticate = 0x0, expires = 0x0, etag = 0x0,
override_charset = 0x0, content_type_len = 9, content_type = {len = 9, data = "" "text/html"}, 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 = 1, date_time = 0, last_modified_time = -1}, request_body = 0xaecc08, lingering_time = 0, start_sec = 0,
start_msec = 0, method = 2, http_version = 1001, request_line = {len = 25, data = "" "РДв"}, uri = {len = 17,
data = "" "/mmc/today/274432{\220НRЮ\f)Zf\204"}, args = {len = 0, data = "" exten = {len = 0, data = "" unparsed_uri = {
len = 12, data = "" ""}, method_name = {len = 3, data = "" "GET "}, http_protocol = {len = 8, data = "" ""},
out = 0x0, main = 0x686750, parent = 0x686750, postponed = 0xe2ff78, post_subrequest = 0x0, posted_requests = 0x0, virtual_names = 0x0,
phase_handler = 9, content_handler = 0x44fffa <ngx_http_memcached_handler>, access_code = 0, variables = 0xaec160, ncaptures = 4,
captures = 0xd280e0, captures_data = 0xabc1a0 "/mmc/today/274432{\220НRЮ\f)Zf\204", limit_rate = 0, header_size = 0, request_length = 0,
err_status = 0, http_connection = 0x0, log_handler = 0x4282ab <ngx_http_log_error_handler>, cleanup = 0x0, subrequests = 0, count = 0,
blocked = 0, aio = 0, http_state = 0, complex_uri = 0, quoted_uri = 0, plus_in_uri = 0, zero_in_uri = 0, invalid_header = 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, pipeline = 0, plain_http = 0, chunked = 0,
header_only = 0, zero_body = 0, keepalive = 0, lingering_close = 0, discard_body = 0, internal = 1, error_page = 0,
ignore_content_encoding = 0, filter_finalize = 0, post_action = 0, request_complete = 0, request_output = 1, header_sent = 1,
expect_tested = 1, 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 = 0, state = 0, header_hash = 0, lowcase_index = 0,
lowcase_header = '\0' <repeats 31 times>, header_name_start = 0x0, header_name_end = 0x0, header_start = 0x0, header_end = 0x0,
uri_start = 0x0, uri_end = 0x0, uri_ext = 0x0, args_start = 0x0, request_start = 0x0, request_end = 0x0, method_end = 0x0,
schema_start = 0x0, schema_end = 0x0, host_start = 0x0, host_end = 0x0, port_start = 0x0, port_end = 0x0, http_minor = 0, http_major = 0}
(gdb) fr 9
#9 0x00000000004365a3 in ngx_http_upstream_rd_check_broken_connection (r=0xabd650) at src/http/ngx_http_upstream.c:888
888 ngx_http_upstream_check_broken_connection(r, r->connection->read);
(gdb) p *r
$5 = {signature = 1347703880, connection = 0x7f664a07f468, ctx = 0xabd000, main_conf = 0xad1ae0, srv_conf = 0x7f0820, loc_conf = 0x7fe108,
read_event_handler = 0x436592 <ngx_http_upstream_rd_check_broken_connection>,
write_event_handler = 0x437198 <ngx_http_upstream_process_non_buffered_downstream>, cache = 0x0, upstream = 0xd284d0,
upstream_states = 0xd282c0, pool = 0xaebc60, header_in = 0x0, headers_in = {headers = {last = 0x6867c0, part = {elts = 0xaec400,
nelts = 5, next = 0x0}, size = 48, nalloc = 20, pool = 0xaebc60}, host = 0xaec430, connection = 0x0, if_modified_since = 0x0,
user_agent = 0xaec400, referer = 0x0, content_length = 0x0, content_type = 0x0, range = 0x0, if_range = 0x0, transfer_encoding = 0x0,
expect = 0x0, accept_encoding = 0x0, via = 0x0, authorization = 0x0, keep_alive = 0x0, x_forwarded_for = 0x0, user = {len = 0,
data = "" ""}, passwd = {len = 0, data = "" cookies = {elts = 0xaec7c0, nelts = 0, size = 8, nalloc = 2, pool = 0xaebc60},
server = {len = 9, data = "" "tablew.ruaccept-languageacceptaccept-charsetФС Фф\230"}, content_length_n = -1, keep_alive_n = -1,
connection_type = 0, msie = 0, msie4 = 0, msie6 = 0, opera = 0, gecko = 1, chrome = 0, safari = 0, konqueror = 0}, headers_out = {
headers = {last = 0xabd7e8, part = {elts = 0xabdb30, nelts = 0, next = 0x0}, size = 48, nalloc = 20, pool = 0xaebc60}, status = 200,
status_line = {len = 0, data = "" server = 0x0, date = 0x0, content_length = 0x0, content_encoding = 0x0, location = 0x0,
refresh = 0x0, last_modified = 0x0, content_range = 0x0, accept_ranges = 0x0, www_authenticate = 0x0, expires = 0x0, etag = 0x0,
override_charset = 0x0, content_type_len = 9, content_type = {len = 9, data = "" "text/html"}, 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 = 1, date_time = 0, last_modified_time = -1}, request_body = 0xaecc08, lingering_time = 0, start_sec = 0,
start_msec = 0, method = 2, http_version = 1001, request_line = {len = 25, data = "" "РДв"}, uri = {len = 17,
data = "" "/mmc/today/274432{\220НRЮ\f)Zf\204"}, args = {len = 0, data = "" exten = {len = 0, data = "" unparsed_uri = {
len = 12, data = "" ""}, method_name = {len = 3, data = "" "GET "}, http_protocol = {len = 8, data = "" ""},
out = 0x0, main = 0x686750, parent = 0x686750, postponed = 0xe2ff78, post_subrequest = 0x0, posted_requests = 0x0, virtual_names = 0x0,
phase_handler = 9, content_handler = 0x44fffa <ngx_http_memcached_handler>, access_code = 0, variables = 0xaec160, ncaptures = 4,
captures = 0xd280e0, captures_data = 0xabc1a0 "/mmc/today/274432{\220НRЮ\f)Zf\204", limit_rate = 0, header_size = 0, request_length = 0,
err_status = 0, http_connection = 0x0, log_handler = 0x4282ab <ngx_http_log_error_handler>, cleanup = 0x0, subrequests = 0, count = 0,
blocked = 0, aio = 0, http_state = 0, complex_uri = 0, quoted_uri = 0, plus_in_uri = 0, zero_in_uri = 0, invalid_header = 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, pipeline = 0, plain_http = 0, chunked = 0,
header_only = 0, zero_body = 0, keepalive = 0, lingering_close = 0, discard_body = 0, internal = 1, error_page = 0,
ignore_content_encoding = 0, filter_finalize = 0, post_action = 0, request_complete = 0, request_output = 1, header_sent = 1,
expect_tested = 1, 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 = 0, state = 0, header_hash = 0, lowcase_index = 0,
lowcase_header = '\0' <repeats 31 times>, header_name_start = 0x0, header_name_end = 0x0, header_start = 0x0, header_end = 0x0,
uri_start = 0x0, uri_end = 0x0, uri_ext = 0x0, args_start = 0x0, request_start = 0x0, request_end = 0x0, method_end = 0x0,
schema_start = 0x0, schema_end = 0x0, host_start = 0x0, host_end = 0x0, port_start = 0x0, port_end = 0x0, http_minor = 0, http_major = 0}
(gdb)
И было бы замечательно увидеть конфиг, по крайней мере части
относящиеся к рассматриваемым запросам (я так понимаю там ssi?).
Maxim Dounin
Спасибо!