Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running as non-root crash #25

Open
jvanz opened this issue Apr 27, 2017 · 5 comments
Open

Running as non-root crash #25

jvanz opened this issue Apr 27, 2017 · 5 comments

Comments

@jvanz
Copy link

jvanz commented Apr 27, 2017

Hi

I know issue about crash when run as non root users is known. But do you have any clue where it happen in libpam? I'm facing the same issue and I willing to fix it, if the issue in libpam is not already fixed.

Thanks

@jvanz
Copy link
Author

jvanz commented Apr 27, 2017

By the way, when I call the authenticate-pam with a non-root user the error is not a segfault, it's a double free:

> pam.authenticate("admin","admin", function(err,value) {console.dir(arguments,{colors:true, depth:null});}, {"remoteHost": "127.0.0.1", "timeout": 600});
undefined
> *** Error in `node': double free or corruption (fasttop): 0x00007ff47400a7a0 ***

@Rush
Copy link
Owner

Rush commented Apr 27, 2017

I recall tracing it in the past with valgrind and it was somewhere in libpam. If it is a problem with node-authenticate-pam after all then please submit a PR.

@Rush
Copy link
Owner

Rush commented Apr 27, 2017

btw. I just tested on openSUSE Leap 42.2 and it works properly on non-root.

@jvanz
Copy link
Author

jvanz commented Apr 28, 2017

Nice, I'll do that.
May you tell me the libpam's version? Do you remember if the issue was in pam_unix?

@Rush
Copy link
Owner

Rush commented Apr 28, 2017

My package manager is reporting 1.3.0-1.9. Unfortunately I cannot recall but pam_unix sounds familiar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants