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

segfault on nginx-1.11.10 #71

Closed
sukaslayer opened this issue Mar 7, 2017 · 2 comments
Closed

segfault on nginx-1.11.10 #71

sukaslayer opened this issue Mar 7, 2017 · 2 comments
Labels

Comments

@sukaslayer
Copy link

CentOS 6.8 x86_64
nginx + nginx-module-vts built with rpmbuild (spec here: https://clbin.com/RDZ65)

example config:

server {
listen *:8081;
server_name localhost;
location / {
root /var/www;
}
}

curl -v http://127.0.0.1:8081/

  • About to connect() to 127.0.0.1 port 8081 (#0)
  • Trying 127.0.0.1... connected
  • Connected to 127.0.0.1 (127.0.0.1) port 8081 (#0)

GET / HTTP/1.1
User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.21 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
Host: 127.0.0.1:8081
Accept: /

  • Empty reply from server
  • Connection #0 to host 127.0.0.1 left intact
    curl: (52) Empty reply from server
  • Closing connection #0

tail /var/log/nginx/error.log
2017/03/07 12:59:15 [alert] 683923#683923: worker process 684118 exited on signal 11 (core dumped)
2017/03/07 12:59:15 [alert] 683923#683923: worker process 684167 exited on signal 11 (core dumped)
2017/03/07 13:02:23 [alert] 683923#683923: worker process 684173 exited on signal 11 (core dumped)

gdb BT:

(gdb) bt
#0 ngx_http_vhost_traffic_status_set_by_filter_variables (r=0x7f437b350da0) at /tmp/nginx-module-vts/src/ngx_http_vhost_traffic_status_set.c:410
#1 ngx_http_vhost_traffic_status_set_handler (r=0x7f437b350da0) at /tmp/nginx-module-vts/src/ngx_http_vhost_traffic_status_set.c:40
#2 0x00007f4379e72b03 in ngx_http_core_access_phase (r=, ph=0x7f437b3692b8) at src/http/ngx_http_core_module.c:1084
#3 0x00007f4379e6fc2d in ngx_http_core_run_phases (r=0x7f437b350da0) at src/http/ngx_http_core_module.c:860
#4 0x00007f4379e7b15c in ngx_http_process_request (r=0x7f437b350da0) at src/http/ngx_http_request.c:1916
#5 0x00007f4379e7be68 in ngx_http_process_request_line (rev=0x7f437b36fd60) at src/http/ngx_http_request.c:1028
#6 0x00007f4379e63f83 in ngx_epoll_process_events (cycle=, timer=, flags=) at src/event/modules/ngx_epoll_module.c:902
#7 0x00007f4379e5a3bf in ngx_process_events_and_timers (cycle=0x7f437b340e30) at src/event/ngx_event.c:242
#8 0x00007f4379e61a38 in ngx_worker_process_cycle (cycle=0x7f437b340e30, data=) at src/os/unix/ngx_process_cycle.c:753
#9 0x00007f4379e60029 in ngx_spawn_process (cycle=0x7f437b340e30, proc=0x7f4379e619d0 <ngx_worker_process_cycle>, data=0x0, name=0x7f4379f0071a "worker process", respawn=0)
at src/os/unix/ngx_process.c:198
#10 0x00007f4379e62984 in ngx_reap_children (cycle=0x7f437b340e30) at src/os/unix/ngx_process_cycle.c:621
#11 ngx_master_process_cycle (cycle=0x7f437b340e30) at src/os/unix/ngx_process_cycle.c:174
#12 0x00007f4379e3c46c in main (argc=, argv=) at src/core/nginx.c:368

@vozlt
Copy link
Owner

vozlt commented Mar 7, 2017

Thanks for the report.
I fixed it just now and re-tagged to v0.1.13.

Latest commit: 701e329

@sukaslayer
Copy link
Author

thanks, checked, working now

@vozlt vozlt added the bug label Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants