Closed gustopn closed 5 years ago
Is it possible for you to share the username and password so I can try to recreate the exact same situation? Also which browser and version of nginx are you using?
Yes, it does not matter what password you use, you might take test and test123. The version of NGINX was the FreeBSD ports one, so nginx-1.14.0_4,2. And the passwd file was created by the supplied script. However, I am not suspecting the password to be false. It fails somewhere where it should give back to NGINX worker process, there it crashes. As far as I see the module seems to be quite old and NGINX changed in the meantime, so there may be an incompatibility there.
I just compiled the module into nginx-1.14.0 for Ubuntu and everything works fine there. The nginx module system really hasn't changed so it's not an incompatibility there.
I don't have access to a FreeBSD machine I'm afraid so I can't test that. Maybe it's some modification that only the BSD version has.
Is there any way you could get a stacktrace or something?
Not today, but I may look into it sometime later and yes, that stacktrace idea would be a start.
I have the same issue on FreeBSD 13.0-RELEASE.
Managed to get the following stacktrace:
Reading symbols from /usr/local/sbin/nginx... [New LWP 1077745] Core was generated by `nginx: worker process'. Program terminated with signal SIGABRT, Aborted. Sent by kill() from pid 82879 and user 80.
4 kill.S: No such file or directory. (gdb) bt
at /wrkdirs/usr/ports/www/nginx/work/nginx-http-auth-digest-cd86418/ngx_http_auth_digest_module.c:1462
at src/os/unix/ngx_process.c:199
Which version of nginx-http-auth-digest are you using? (there are no releases so which git hash?)
According to your stacktrace it crashed on: https://github.com/atomx/nginx-http-auth-digest/blob/b3073ef3624ec0e590671399e7b8f31458218d2a/ngx_http_auth_digest_module.c#L1462
But it's impossible for node
to be NULL
at this point. So I'm wondering if you're running an older version or if something else happened.
I looked into the ports distinfo (which stores the filenames, checksums, etc). and I think it's hash cd86418.
I'll see what happens if I use the latest available one. To be continued.
hmm... that's basically the latest version, since there's only 1 commit newer than that which changes some documentation.
The crash happened on previous versions of FreeBSD as well, so I'm not sure what's going on. Seems to be a FreeBSD only issue :(
How are you installing nginx-http-auth-digest? I'm unfamiliar with FreeBSD so I'm curious how a module like this is installed.
invalid username or password for... worker process ... exited on signal 6 happens only when I am going over auth_digest.