kvspb / nginx-auth-ldap

LDAP authentication module for nginx
BSD 2-Clause "Simplified" License
735 stars 252 forks source link

Segmentation fault: ngx_http_auth_ldap_module.c:1117 #132

Open bbigras opened 8 years ago

bbigras commented 8 years ago

I'm not sure if it's related but our ldap servers went down yesterday and went back up this morning. I had a lot of http_auth_ldap: Could not connect in my log.

Reading symbols from /usr/sbin/nginx...Reading symbols from /usr/lib/debug/.build-id/7c/6f589235091c270b13731c005969fc22f4c29d.debug...done.
done.
[New LWP 29708]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
Core was generated by `nginx: worker process is shutting down  '.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0813d40a in ngx_http_auth_ldap_return_connection (c=c@entry=0x88e4ec8) at /home/bbigras/nginx/nginx-1.9.15/debian/modules/nginx-auth-ldap/ngx_http_auth_ldap_module.c:1117
1117            ngx_queue_remove(q);
(gdb) bt
#0  0x0813d40a in ngx_http_auth_ldap_return_connection (c=c@entry=0x88e4ec8) at /home/bbigras/nginx/nginx-1.9.15/debian/modules/nginx-auth-ldap/ngx_http_auth_ldap_module.c:1117
#1  0x0813e78d in ngx_http_auth_ldap_read_handler (rev=0x89321e0) at /home/bbigras/nginx/nginx-1.9.15/debian/modules/nginx-auth-ldap/ngx_http_auth_ldap_module.c:1469
#2  0x080877f2 in ngx_epoll_process_events (cycle=0x87e5498, timer=4997, flags=1) at src/event/modules/ngx_epoll_module.c:822
#3  0x0807f322 in ngx_process_events_and_timers (cycle=cycle@entry=0x87e5498) at src/event/ngx_event.c:242
#4  0x08085976 in ngx_worker_process_cycle (cycle=0x87e5498, data=0x0) at src/os/unix/ngx_process_cycle.c:753
#5  0x080843a6 in ngx_spawn_process (cycle=cycle@entry=0x87e5498, proc=0x80858f0 <ngx_worker_process_cycle>, data=0x0, name=0x8171fbb "worker process", respawn=respawn@entry=0)
    at src/os/unix/ngx_process.c:198
#6  0x080869f2 in ngx_reap_children (cycle=0x87e5498) at src/os/unix/ngx_process_cycle.c:621
#7  ngx_master_process_cycle (cycle=<optimized out>, cycle@entry=0x87e5498) at src/os/unix/ngx_process_cycle.c:174
#8  0x080633de in main (argc=3, argv=0xbfb7e7f4) at src/core/nginx.c:367

nginx-auth-ldap 8517bb05ecc896b54429ca5e95137b0a386bd41a

Linux ubuntu 3.13.0-85-generic #129-Ubuntu SMP Thu Mar 17 20:50:41 UTC 2016 i686 i686 i686 GNU/Linux

nginx version: nginx/1.9.15
built by gcc 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
built with OpenSSL 1.0.1f 6 Jan 2014
TLS SNI support enabled
configure arguments: --add-module=/home/bbigras/nginx/nginx-1.9.15/debian/modules/naxsi/naxsi_src --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib/nginx/modules --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 --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-http_xslt_module=dynamic --with-http_image_filter_module=dynamic --with-http_geoip_module=dynamic --with-http_perl_module=dynamic --add-dynamic-module=debian/extra/njs-1c50334fbea6/nginx --with-threads --with-stream --with-stream_ssl_module --with-http_slice_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --add-module=/home/bbigras/nginx/nginx-1.9.15/debian/modules/ngx_devel_kit --add-module=/home/bbigras/nginx/nginx-1.9.15/debian/modules/lua-nginx-module --add-module=/home/bbigras/nginx/nginx-1.9.15/debian/modules/nginx-auth-ldap --add-module=/home/bbigras/nginx/nginx-1.9.15/debian/modules/nchan-0.99.12 --with-file-aio --with-ipv6 --with-http_v2_module --with-cc-opt='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' --with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro'