Segmentation fault while using `Authenticator::with_password` on musl.
Wafelack opened this issue · comments
Wafelack commented
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
Eralp Çelebi commented
Same behaviour on my system using Alpine Linux.
freya-cat commented
Same here :(
Chip Senkbeil commented
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)