Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nginx core dump #148

Open
zhaibin18 opened this issue Oct 7, 2018 · 4 comments
Open

nginx core dump #148

zhaibin18 opened this issue Oct 7, 2018 · 4 comments

Comments

@zhaibin18
Copy link

zhaibin18 commented Oct 7, 2018

**cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.5 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.5 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
**
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
/home/zhaibin18/nginx1140/sbin/nginx -V
nginx version: nginx/1.14.0
built with OpenSSL 1.0.2g 1 Mar 2016
TLS SNI support enabled
configure arguments: --prefix=/home/zhaibin18/nginx1140 --add-module=/home/zhaibin18/build_home/nginx-1.14.0/ngx_http_google_filter_module --add-module=/home/zhaibin18/build_home/nginx-1.14.0/ngx_http_substitutions_filter_module --with-http_ssl_module --with-debug --with-threads

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `nginx: w'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00000000004f8ba5 in ngx_http_google_create_ctx (r=0x1072760) at /home/zhaibin18/build_home/nginx-1.14.0/ngx_http_google_filter_module/src/ngx_http_google_request.c:41
41 ngx_str_t domain = *ctx->host;
(gdb) bt
#0 0x00000000004f8ba5 in ngx_http_google_create_ctx (r=0x1072760) at /home/zhaibin18/build_home/nginx-1.14.0/ngx_http_google_filter_module/src/ngx_http_google_request.c:41
#1 0x00000000004f9d94 in ngx_http_google_request_handler (r=0x1072760)
at /home/zhaibin18/build_home/nginx-1.14.0/ngx_http_google_filter_module/src/ngx_http_google_request.c:429
#2 0x000000000046f0b9 in ngx_http_core_rewrite_phase (r=0x1072760, ph=0x109b558) at src/http/ngx_http_core_module.c:912
#3 0x000000000046ef15 in ngx_http_core_run_phases (r=0x1072760) at src/http/ngx_http_core_module.c:858
#4 0x000000000046ee82 in ngx_http_handler (r=0x1072760) at src/http/ngx_http_core_module.c:841
#5 0x000000000047eb54 in ngx_http_process_request (r=0x1072760) at src/http/ngx_http_request.c:1952
#6 0x000000000047d4d6 in ngx_http_process_request_headers (rev=0x109fcb0) at src/http/ngx_http_request.c:1379
#7 0x000000000047c881 in ngx_http_process_request_line (rev=0x109fcb0) at src/http/ngx_http_request.c:1052
#8 0x000000000047b35d in ngx_http_wait_request_handler (rev=0x109fcb0) at src/http/ngx_http_request.c:510
#9 0x000000000045b61e in ngx_epoll_process_events (cycle=0x106e750, timer=59756, flags=1) at src/event/modules/ngx_epoll_module.c:902
#10 0x000000000044895f in ngx_process_events_and_timers (cycle=0x106e750) at src/event/ngx_event.c:242
#11 0x0000000000458ac4 in ngx_worker_process_cycle (cycle=0x106e750, data=0x0) at src/os/unix/ngx_process_cycle.c:750
#12 0x00000000004550de in ngx_spawn_process (cycle=0x106e750, proc=0x4589dd <ngx_worker_process_cycle>, data=0x0, name=0x5039bb "worker process", respawn=0)
at src/os/unix/ngx_process.c:199
#13 0x0000000000458561 in ngx_reap_children (cycle=0x106e750) at src/os/unix/ngx_process_cycle.c:622
#14 0x00000000004570ac in ngx_master_process_cycle (cycle=0x106e750) at src/os/unix/ngx_process_cycle.c:175
#15 0x0000000000411211 in main (argc=1, argv=0x7ffc97764048) at src/core/nginx.c:382
(gdb)

@cuber
Copy link
Owner

cuber commented Oct 12, 2018

可否复现?

@zhaibin18
Copy link
Author

可以复现,需要什么debug信息我可以继续抓。

@cuber
Copy link
Owner

cuber commented Nov 16, 2018

你把core掉的请求url贴一下

@zhaibin18
Copy link
Author

zhaibin18 commented Nov 17, 2018

不是访问某个特定的url就core dump了,经常是半夜没人访问的时候某个线程core dump,也可能是爬虫导致。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants