kvspb / nginx-auth-ldap

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

worker process xxxxx exited on signal 8 #71

Open leonidra opened 9 years ago

leonidra commented 9 years ago

HI,

After installing nginx 1.6.2 with nginx-auth-ldap module, nginx fails to work spitting hundreds of messages to the log flle.

Configure flags: configure arguments: --add-module=/root/nginx-auth-ldap-master --with-http_ssl_module

Dmesg:

[278240.349065] traps: nginx[30884] trap divide error ip:477324 sp:7ffffeb84440 error:0 in nginx[400000+98000]
[278240.350343] traps: nginx[30885] trap divide error ip:477324 sp:7ffffeb84440 error:0 in nginx[400000+98000]
[278240.351565] traps: nginx[30886] trap divide error ip:477324 sp:7ffffeb84440 error:0 in nginx[400000+98000]
[278240.353458] traps: nginx[30887] trap divide error ip:477324 sp:7ffffeb84440 error:0 in nginx[400000+98000]

Nginx error log:

2015/01/19 15:06:57 [alert] 20258#0: worker process 32701 exited on signal 8
2015/01/19 15:06:57 [alert] 20258#0: worker process 32702 exited on signal 8
2015/01/19 15:06:57 [alert] 20258#0: worker process 32703 exited on signal 8
2015/01/19 15:06:57 [alert] 20258#0: worker process 32704 exited on signal 8
2015/01/19 15:06:57 [alert] 20258#0: worker process 32705 exited on signal 8
2015/01/19 15:06:57 [alert] 20258#0: worker process 32706 exited on signal 8
2015/01/19 15:06:57 [alert] 20258#0: worker process 32707 exited on signal 8
2015/01/19 15:06:57 [alert] 20258#0: worker process 32708 exited on signal 8
2015/01/19 15:06:57 [alert] 20258#0: worker process 32709 exited on signal 8
2015/01/19 15:06:57 [alert] 20258#0: worker process 32710 exited on signal 8

Configuring without ldap-module works as expected. Problem happens on ubuntu-14

FengXingYuXin commented 8 years ago

do you have make it with up question? I have the same question, please give me some sugessions

drakkhen commented 7 years ago

You didn't post your configs, but I'm willing to guess that you're missing a few semi-colons at the end of your lines. I was able to recreate this issue with a missing semicolon in my ldap_server config block.

This model fails in all sorts of random, spectacular ways if you're missing semicolons at the end of each line of your config.

Tilka commented 4 years ago

This line in ngx_http_auth_ldap_connect() may divide by zero:

addr = &c->server->parsed_url.addrs[ngx_random() % c->server->parsed_url.naddrs];
iida-y commented 3 years ago

still experiencing same issue has anyone ever solved this?

% nginx -v nginx version: nginx/1.20.1

2021/07/06 06:02:35 [error] 454658#0: http_auth_ldap: ldap_result() failed (-1: Can't contact LDAP server) 2021/07/06 06:02:35 [error] 454648#0: http_auth_ldap: ldap_result() failed (-1: Can't contact LDAP server) 2021/07/06 06:02:35 [error] 454658#0: http_auth_ldap: LDAP_SERVER_DOWN: retry count: 1 2021/07/06 06:02:35 [error] 454648#0: http_auth_ldap: LDAP_SERVER_DOWN: retry count: 1 2021/07/06 06:02:35 [error] 454659#0: http_auth_ldap: ldap_result() failed (-1: Can't contact LDAP server) 2021/07/06 06:02:35 [error] 454659#0: http_auth_ldap: LDAP_SERVER_DOWN: retry count: 1 2021/07/06 06:02:35 [error] 454656#0: http_auth_ldap: ldap_result() failed (-1: Can't contact LDAP server) 2021/07/06 06:02:35 [error] 454656#0: http_auth_ldap: LDAP_SERVER_DOWN: retry count: 1 2021/07/06 06:02:35 [alert] 453901#0: worker process 454659 exited on signal 8 (core dumped) 2021/07/06 06:02:35 [alert] 453901#0: worker process 454658 exited on signal 8 (core dumped) 2021/07/06 06:02:35 [alert] 453901#0: worker process 454656 exited on signal 8 (core dumped) 2021/07/06 06:02:35 [alert] 453901#0: worker process 454648 exited on signal 8 (core dumped)