Welcome! Log In Create A New Profile

Advanced

Re: После сборки nginx падает в signal 11?

Илья Шипицин
February 05, 2020 05:32AM
причину падения в 11-й сигнал можно установить примерно таким способом

1) добавляете "-ggdb" к опциям сборки ( --with-cc-opts="-g"
--with-ld-opts="-g")
2) далее, надо после сборки аккуратно скопировать полученный objs/nginx в
то место, откуда он запускается. если сделаете "make install", то
отладочная информация удалится. проверьте "file `which nginx`" - должен
показывать наличие отладочной инфы
3) на уровне вашей операционки настраиваете сбор core dump
4) в nginx.conf прописываете "worker_rlimit_core 16000M;" (ну или больше)

запускаете, падает, получаете core dump.
запускаете gdb:

gdb --core core.file `which nginx`
> bt full

и присылаете сюда


ср, 5 февр. 2020 г. в 12:38, muxui <nginx-forum@forum.nginx.org>:

> Привет.
> Последние два раза собирал latest nginx, что в первый, что во второй -
> ошибка та же.
> Первый собирал месяца 4 назад, сейчас ошибка осталась, но уже версия nginx
> обновилась.
> Сама ошибка:
> <code>2020/02/04 23:13:07 [alert] 18028#18028: worker process 22877 exited
> on signal 11
> 2020/02/04 23:13:08 [alert] 18028#18028: worker process 22875 exited on
> signal 11
> 2020/02/04 23:13:08 [alert] 18028#18028: worker process 22876 exited on
> signal 11
> 2020/02/04 23:13:16 [alert] 18028#18028: worker process 22874 exited on
> signal 11
> 2020/02/04 23:13:18 [alert] 18028#18028: worker process 22878 exited on
> signal 11
> </code>
> Конфиг сборки:
> <code>./configure --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx
> --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log
> --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid
> --lock-path=/var/run/nginx.lock
> --http-client-body-temp-path=/var/cache/nginx/client_temp
> --http-proxy-temp-path=/var/cache/nginx/proxy_temp
> --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --user=nginx
> --group=nginx --without-http_autoindex_module --without-http_ssi_module
> --without-http_scgi_module --without-http_uwsgi_module
> --without-http_split_clients_module --without-http_memcached_module
> --without-http_empty_gif_module --without-http_browser_module
> --with-http_ssl_module --with-http_v2_module --with-http_realip_module
> --with-http_mp4_module --with-http_auth_request_module
> --with-http_stub_status_module --with-http_random_index_module
> --with-http_ssl_module --with-http_gunzip_module --with-threads
> --add-module=/usr/local/src/incubator-pagespeed-ngx-1.13.35.2-stable
> --add-module=/usr/local/src/ngx_devel_kit-0.3.1
> --add-module=/usr/local/src/lua-nginx-module-0.10.9
> --with-openssl=/usr/local/src/openssl-1.0.2t</code>
> Ошибка выдается только при HTTPS запросе из Lua, который я установил в
> nginx.
> Конфиг сайта:
> <code lang="nginx">
> server {
> server_name api.muxui.cc;
> listen 443 ssl http2;
>
> root /var/www/html/api;
>
> location / {
> content_by_lua_file /var/www/html/api/vk/index.lua;
> lua_code_cache off;
> aio threads;
> }
> }
> </code>
> Код index.lua:
> <code lang="lua">
> require("socket")
> local https = require("ssl.https")
> local body, code, headers, status =
> https.request('
> https://api.vk.com/method/messages.send?message=Привет&user_ids=111&random_id=
> '
> .. math.random() .. '&v=5.105&access_token=234234')
> print(status)
> </code>
> nginx -V:
> <code lang="bash">
>
> root@muxui:~# nginx -V
> nginx version: nginx/1.17.8
> built by gcc 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)
> built with OpenSSL 1.0.2t 10 Sep 2019
> TLS SNI support enabled
> configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx
> --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log
> --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid
> --lock-path=/var/run/nginx.lock
> --http-client-body-temp-path=/var/cache/nginx/client_temp
> --http-proxy-temp-path=/var/cache/nginx/proxy_temp
> --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --user=nginx
> --group=nginx --without-http_autoindex_module --without-http_ssi_module
> --without-http_scgi_module --without-http_uwsgi_module
> --without-http_split_clients_module --without-http_memcached_module
> --without-http_empty_gif_module --without-http_browser_module
> --with-http_ssl_module --with-http_v2_module --with-http_realip_module
> --with-http_mp4_module --with-http_auth_request_module
> --with-http_stub_status_module --with-http_random_index_module
> --with-http_ssl_module --with-http_gunzip_module --with-threads
> --add-module=/usr/local/src/incubator-pagespeed-ngx-1.13.35.2-stable
> --add-module=/usr/local/src/ngx_devel_kit-0.3.1
> --add-module=/usr/local/src/lua-nginx-module-0.10.9
> --with-openssl=/usr/local/src/openssl-1.0.2t
> </code>
>
> Posted at Nginx Forum:
> https://forum.nginx.org/read.php?21,286935,286935#msg-286935
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-ru
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

После сборки nginx падает в signal 11?

muxui February 04, 2020 04:32PM

Re: После сборки nginx падает в signal 11?

Илья Шипицин February 05, 2020 05:32AM

Re: После сборки nginx падает в signal 11?

Maxim Dounin February 05, 2020 07:12AM

Re: После сборки nginx падает в signal 11?

Илья Шипицин February 05, 2020 07:52AM

Re: После сборки nginx падает в signal 11?

Maxim Dounin February 05, 2020 08:00AM

Re: После сборки nginx падает в signal 11?

Илья Шипицин February 05, 2020 08:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 310
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready