GNU gdb (Debian 7.12-6) 7.12.0.20161007-git Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later 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-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/local/nginx-qat/sbin/nginx...done. [New LWP 15981] [New LWP 16000] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Core was generated by `nginx: worker process '. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x0000000000000000 in ?? () [Current thread is 1 (Thread 0x7f0b18f1ab40 (LWP 15981))] (gdb) bt #0 0x0000000000000000 in ?? () #1 0x00005585c657e441 in ngx_http_request_handler (ev=0x7f0b0e9fe968) at src/http/ngx_http_request.c:2216 #2 0x00005585c6568bcb in ngx_epoll_process_events (cycle=, timer=, flags=) at src/event/modules/ngx_epoll_module.c:889 #3 0x00005585c655e3ca in ngx_process_events_and_timers (cycle=cycle@entry=0x5585c7b00ec0) at src/event/ngx_event.c:247 #4 0x00005585c65661d5 in ngx_worker_process_cycle (cycle=cycle@entry=0x5585c7b00ec0, data=data@entry=0x9) at src/os/unix/ngx_process_cycle.c:769 #5 0x00005585c6564b8c in ngx_spawn_process (cycle=cycle@entry=0x5585c7b00ec0, proc=proc@entry=0x5585c6566160 , data=data@entry=0x9, name=name@entry=0x5585c65d84f7 "worker process", respawn=respawn@entry=-3) at src/os/unix/ngx_process.c:198 #6 0x00005585c6566490 in ngx_start_worker_processes (cycle=cycle@entry=0x5585c7b00ec0, n=20, type=type@entry=-3) at src/os/unix/ngx_process_cycle.c:360 #7 0x00005585c65672ea in ngx_master_process_cycle (cycle=0x5585c7b00ec0) at src/os/unix/ngx_process_cycle.c:132 #8 0x00005585c6540e74 in main (argc=3, argv=) at src/core/nginx.c:374 (gdb) show locals Undefined show command: "locals". Try "help show". (gdb) info locals No symbol table info available. (gdb) i r rax 0x5585c7c8abb8 94033070828472 rbx 0x5585c7c8ab70 94033070828400 rcx 0x33 51 rdx 0x5585c7b19880 94033069316224 rsi 0x5585c7c8ab10 94033070828304 rdi 0x5585c7c8ab70 94033070828400 rbp 0x7f0b0f080658 0x7f0b0f080658 rsp 0x7fff89280d78 0x7fff89280d78 r8 0x53 83 r9 0x1 1 r10 0x5585c7b00ec0 94033069215424 r11 0x1 1 r12 0x7f0b0e9fe968 139685466728808 r13 0x1 1 r14 0x7f0b0e9fe968 139685466728808 r15 0x5 5 rip 0x0 0x0 eflags 0x10246 [ PF ZF IF RF ] cs 0x33 51 ss 0x2b 43 ds 0x0 0 es 0x0 0 fs 0x0 0 gs 0x0 0 (gdb) x/30i $rip => 0x0: Cannot access memory at address 0x0 (gdb) select 1 (gdb) print *ev $1 = {data = 0x7f0b0f080658, write = 0, async = 0, accept = 0, instance = 1, active = 1, disabled = 0, ready = 1, oneshot = 0, complete = 0, eof = 0, error = 0, timedout = 0, timer_set = 1, delayed = 0, deferred_accept = 0, pending_eof = 0, posted = 0, closed = 0, channel = 0, resolver = 0, cancelable = 0, available = 0, handler = 0x5585c657e410 , saved_handler = 0x5585c656a440 , index = 3503345872, log = 0x5585c7c8ab10, timer = { key = 1540552888826, left = 0x7f0b0e9fe380, right = 0x7f0b0e9fe930, parent = 0x7f0b0e9feb38, color = 0 '\000', data = 0 '\000'}, queue = {prev = 0x0, next = 0x0}} (gdb) print *r $2 = {signature = 3350589192, connection = 0x5585c7b3ed40, ctx = 0x5585c7c8ac30, main_conf = 0x0, srv_conf = 0x0, loc_conf = 0x0, read_event_handler = 0x0, write_event_handler = 0x0, cache = 0x1, upstream = 0x7f0b0f080658, upstream_states = 0x0, pool = 0x5585c7c8ab70, header_in = 0x5585c7b76960, headers_in = {headers = { last = 0x5585c7b4baf0, part = {elts = 0xfffffffffffffffe, nelts = 94033069734016, next = 0x4000}, size = 94033046674608, nalloc = 0, pool = 0x0}, host = 0xd, connection = 0x69702d37376e6463, if_modified_since = 0x632d78786e782e63, if_unmodified_since = 0x6d6f632e6e64, if_match = 0x16, if_none_match = 0x5585c7c8ac18, user_agent = 0x0, referer = 0x5585c7d1cfb3, content_length = 0x0, content_type = 0x0, range = 0x5585c7d1cd30, if_range = 0x5585c7d1dd30, transfer_encoding = 0x0, expect = 0x0, upgrade = 0x0, accept_encoding = 0x1, via = 0x0, authorization = 0x0, keep_alive = 0x5585c7c8ac90, x_forwarded_for = {elts = 0x0, nelts = 528, size = 131201, nalloc = 139685618909944, pool = 0x7f0b17b202f8 }, user = {len = 94033070828720, data = 0x5585c7c8acb0 "\020\002"}, passwd = {len = 11120845382135968070, data = 0x251c8947182fbf5d }, cookies = {elts = 0xb7a485da02f3d993, nelts = 901183282513868974, size = 14661983407599690245, nalloc = 15659385526669271463, pool = 0x53250eb7dee5e5cf}, server = {len = 17334918956194213440, data = 0x980579a95bdce35c }, content_length_n = -6522007941220118845, keep_alive_n = -4594549527564757521, connection_type = 3, chunked = 1, msie = 0, msie6 = 1, opera = 0, gecko = 0, chrome = 0, safari = 0, konqueror = 1}, headers_out = {headers = {last = 0x8d53556b419254ce, part = {elts = 0x163bf53640f1df47, nelts = 199731807178760235, next = 0x424b322ba6385d69}, size = 10287006653680141124, nalloc = 1201212185290263492, pool = 0xde294b314744fa32}, status = 16157060372513669347, status_line = {len = 10045584839303098397, data = 0xddec77e96a67eb99 }, server = 0xf7e3cc9d7e75f91a, date = 0xbfde92e5a12df2d4, content_length = 0x5e391a261a4cd832, content_encoding = 0x97c54191969a984d, location = 0x6bcc711f1c4efd06, refresh = 0x286654a0eb1080e8, last_modified = 0x895248ff57986906, content_range = 0xe69fdf6ee67d8262, accept_ranges = 0x4bf4ba659de086f1, www_authenticate = 0x78e67bcf410ed241, expires = 0x3b0736db498a4067, etag = 0x8444b7a5c8142ad8, override_charset = 0x39b3e7cb99866a4a, content_type_len = 2280075612641108704, content_type = {len = 5580860325431241409, data = 0x38b98d8bac08a590 }, charset = {len = 17223192131476325900, data = 0xbca8558c609a7871 }, content_type_lowcase = 0x2c114407349048d0 , content_type_hash = 18174368546824094033, cache_control = { elts = 0x1830a629dbe7554a, nelts = 5510728804419482053, size = 17681678864941829811, nalloc = 367162257924403361, pool = 0x41c34c586d71cebc}, content_length_n = -4016261039545434390, content_offset = -1046623493439093923, date_time = -2054489491924542784, last_modified_time = -806369667749361640}, request_body = 0xa73e6dd3e5154195, lingering_time = -1331802250812231479, start_sec = 3243267124691148723, start_msec = 17848401994670752634, method = 17571521435466645138, http_version = 5693532815950218063, request_line = {len = 5518126113930295018, data = 0x90cb778d2ddf63a7 }, uri = { len = 3682249112024658260, data = 0x5d702ba8e7275e4 }, args = {len = 12454182252344841768, data = 0x699872e9fa046956 }, exten = {len = 13574302284795198445, data = 0x3abf9f9a90f6f773 }, unparsed_uri = {len = 3463348116500593186, data = 0xfff0a540f94b36ca }, method_name = {len = 9788744558611103985, data = 0xe8bf27cf1218eb13 }, http_protocol = {len = 17761136314344185511, data = 0x4dc5f9bf307a2e6a }, out = 0x65acbf7b79472216, main = 0xf657d6d07fde29b0, parent = 0x13f885b28a401517, postponed = 0x6a54b8c822c94f3a, post_subrequest = 0x18e23c308278c4d7, posted_requests = 0xaca68ffb4fba535, phase_handler = -3444386785190317668, content_handler = 0x4f5aed7b8594c363, access_code = 3074068157070805336, variables = 0xc8b7d2ffaa1b18c6, ncaptures = 12335050605644481000, captures = 0xd6f781a1d8aa2a08, captures_data = 0xe69de64eebdc5c9f , limit_rate = 11270650369229741840, limit_rate_after = 8029697670436415167, header_size = 13246466388924035972, request_length = -2753111436193700035, err_status = 8415255895127854542, http_connection = 0xfd250cea32ba2f94, stream = 0x5b98e63d032d3713, log_handler = 0x4326286d46371376, cleanup = 0xf1960ff0c5bddf0d, count = 24096, subrequests = 48, blocked = 18, aio = 1, http_state = 4, complex_uri = 0, quoted_uri = 1, plus_in_uri = 1, space_in_uri = 0, invalid_header = 1, add_uri_to_alias = 1, valid_location = 0, valid_unparsed_uri = 1, uri_changed = 0, uri_changes = 12, request_body_in_single_buf = 0, request_body_in_file_only = 0, request_body_in_persistent_file = 0, request_body_in_clean_file = 1, request_body_file_group_access = 1, request_body_file_log_level = 0, request_body_no_buffering = 1, subrequest_in_memory = 0, waited = 0, cached = 1, gzip_tested = 0, gzip_ok = 1, gzip_vary = 0, proxy = 0, bypass_cache = 1, no_cache = 1, limit_conn_set = 1, limit_req_set = 1, pipeline = 1, chunked = 1, header_only = 1, keepalive = 0, lingering_close = 1, discard_body = 1, reading_body = 0, internal = 0, error_page = 0, filter_finalize = 0, post_action = 1, request_complete = 0, request_output = 0, header_sent = 0, expect_tested = 0, root_tested = 1, done = 0, logged = 1, buffered = 6, main_filter_need_in_memory = 1, filter_need_in_memory = 1, filter_need_temporary = 1, allow_ranges = 0, subrequest_ranges = 1, single_range = 0, disable_not_modified = 0, stat_reading = 1, stat_writing = 1, state = 15571879157743536836, header_hash = 10540199830626698698, lowcase_index = 32099829830448381, lowcase_header = "t\277\023\372\065ܲ8V\361\360\235\377\006\364\367o\210\274\275\005?8\201\252,\340\357X\b", , header_name_start = 0x797874e0b13ad7c1 , header_name_end = 0x1b61df29ceca499c , header_start = 0x7f3b3aa411cfeaf6 , header_end = 0xc07075e7e5c47ee7 , uri_start = 0xcd57440c9db7b633 , uri_end = 0x5cf787f078aab04a , uri_ext = 0x40c13323af2766bb , args_start = 0x96ca9521d6e6f54f , request_start = 0xc4a66f13b94c3f6c , request_end = 0xc8172bb02795547c , method_end = 0x748fda132c9b6e3a , schema_start = 0xbf72d14408a81f23 , schema_end = 0x92f3592499304ec0 , host_start = 0xb69a1cef45bcbf7 , host_end = 0x6e05182e46dba5f2 , port_start = 0x5bb6c09634c95dcf , port_end = 0xdec5ffd679938e84 , http_minor = 34827, http_major = 2652} (gdb) print ev->data $3 = (void *) 0x7f0b0f080658 (gdb) print (ngx_connection_t*) (ev->data) $4 = (ngx_connection_t *) 0x7f0b0f080658 (gdb) print (ngx_connection_t*) *(ev->data) Attempt to dereference a generic pointer. (gdb) print *((ngx_connection_t*) (ev->data)) $5 = {data = 0x5585c7c8ab70, read = 0x7f0b0e9fe968, write = 0x7f0b0e37d968, async = 0x7f0b0dcfc968, fd = 83, async_fd = 89, recv = 0x5585c656dc20 , send = 0x5585c656ca70 , recv_chain = 0x5585c656e500 , send_chain = 0x5585c656cf20 , listening = 0x5585c7b63760, sent = 17564, log = 0x5585c7c8ab10, pool = 0x5585c7c8aab0, type = 1, sockaddr = 0x5585c7c8ab00, socklen = 16, addr_text = {len = 14, data = 0x5585c7c8ab60 "41.233.143.203"}, proxy_protocol_addr = {len = 0, data = 0x0}, ssl = 0x5585c7c8abd0, asynch = 1, ssl_enabled = 1, local_sockaddr = 0x5585c7b5eed0, local_socklen = 16, buffer = 0x5585c7c8ac40, queue = {prev = 0x7f0b0f080630, next = 0x7f0b0f07fd78}, number = 2529, requests = 7, buffered = 0, log_error = 2, unexpected_eof = 0, timedout = 0, error = 0, destroyed = 1, idle = 1, reusable = 1, close = 0, shared = 0, sendfile = 1, sndlowat = 0, tcp_nodelay = 1, tcp_nopush = 0, need_last_buf = 0, num_async_fds = 1} (gdb) info locals c = 0x7f0b0f080658 r = 0x5585c7c8ab70 (gdb) q