Skip to content

segfaults with socket connections and daemon off #26

@istr

Description

@istr

I get reproducible segfaults in ngx_postgres_keepalive_get_peer_single (and sometimes in ngx_postgres_keepalive_cleanup). Postgres connections are ok (functional) but they segfault after the requests have finished.

These are the versions used:

  • openresty 1.7.0.1
  • nginx-1.7.1.tar.gz (not packaged w/ openresty, but want syslog facility)
  • ngx_postgres-1.0rc3-8f0eae297fc9e88e6ab08e6c9d18628568befba9
    (not packaged, but want unix socket facility)

It runs in a chroot jail with "daemon off" under supervision of sv.
Any ideas? Should I provide the binary and the coredumps?

nginx/sbin/nginx -V
nginx version: nginx/1.7.1
TLS SNI support enabled
configure arguments: --prefix=/opt/foo/sys/opt/ngx_openresty-1.7.0.1.tar.gz-b7f7b683e0d0748db1ec2d66c23959bf5f13cb1471f8e33631d132d0-neo-20140615200651/nginx --with-debug --add-module=../ngx_devel_kit-0.2.19 --add-module=../echo-nginx-module-0.53 --add-module=../xss-nginx-module-0.04 --add-module=../ngx_coolkit-0.2rc1 --add-module=../set-misc-nginx-module-0.24 --add-module=../form-input-nginx-module-0.08 --add-module=../encrypted-session-nginx-module-0.03 --add-module=../ngx_postgres-1.0rc3-8f0eae297fc9e88e6ab08e6c9d18628568befba9 --add-module=../srcache-nginx-module-0.27 --add-module=../ngx_lua-0.9.8 --add-module=../ngx_lua_upstream-0.02 --add-module=../headers-more-nginx-module-0.25 --add-module=../array-var-nginx-module-0.03 --add-module=../memc-nginx-module-0.14 --add-module=../redis2-nginx-module-0.11 --add-module=../redis-nginx-module-0.3.7 --add-module=../rds-json-nginx-module-0.13 --add-module=../rds-csv-nginx-module-0.05 --with-ld-opt=-Wl,-rpath,/opt/foo/sys/opt/ngx_openresty-1.7.0.1.tar.gz-b7f7b683e0d0748db1ec2d66c23959bf5f13cb1471f8e33631d132d0-neo-20140615200651/luajit/lib --pid-path=/var/run/orsty.pid --error-log-path=/var/log/orsty/error.log --http-fastcgi-temp-path=/var/tmp/orsty/fcgi --http-uwsgi-temp-path=/var/tmp/orsty/uwsgi --http-scgi-temp-path=/var/tmp/orsty/scgi --http-client-body-temp-path=/var/tmp/orsty/cbody --http-proxy-temp-path=/var/tmp/orsty/proxy --with-http_ssl_module --with-http_spdy_module --with-http_gzip_static_module --with-http_stub_status_module --with-file-aio --without-http_autoindex_module --without-http_browser_module --without-http_map_module --without-http_ssi_module --without-http_memcached_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --without-http_userid_module --without-http_uwsgi_module --add-module=/opt/foo/pkg/patch/nginx/naxsi-0.53-2/naxsi_src

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions