1wilkens / pam

Safe Rust API to the Linux Pluggable Authentication Modules (PAM)

Home Page:https://docs.rs/pam/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Segmentation fault while using `Authenticator::with_password` on musl.

Wafelack opened this issue · comments

PAM produces a segmentation fault when compiled using musl libc.

Code:

let mut auth = pam::Authenticator::with_password("<pam_config_name>").unwrap();

This line produces a segmentation fault on Void GNU/Linux with musl.
uname -a output: Linux <hostname> 5.10.17_1 #1 SMP 1613600681 x86_64 GNU/Linux
pam crate version: 0.7.0

Same behaviour on my system using Alpine Linux.

Same here :(

Seems like this may be a pam-sys issue, as I'm seeing this for pam-client, which also uses pam-sys (version 1.0.0-alpha.3+).

(signal: 11, SIGSEGV: invalid memory reference)