Ticket 1015

Summary: pam: libslurm.so loaded multiple times
Product: Slurm Reporter: Mehdi Dogguy <mehdi.dogguy>
Component: OtherAssignee: David Bigagli <david>
Status: RESOLVED FIXED QA Contact:
Severity: 6 - No support contract    
Priority: --- CC: da
Version: 2.5.x   
Hardware: Linux   
OS: Linux   
Site: EDF - Electricite de France Alineos Sites: ---
Atos/Eviden Sites: --- Confidential Site: ---
Coreweave sites: --- Cray Sites: ---
DS9 clusters: --- HPCnow Sites: ---
HPE Sites: --- IBM Sites: ---
NOAA SIte: --- OCF Sites: ---
Recursion Pharma Sites: --- SFW Sites: ---
SNIC sites: --- Linux Distro: ---
Machine Name: CLE Version:
Version Fixed: 14.03.7 Target Release: ---
DevPrio: --- Emory-Cloud Sites: ---
Attachments: Patch to contribs/pam/pam_slurm.c

Description Mehdi Dogguy 2014-08-04 02:20:06 MDT
Hi,

We are using the pam plugin and it seems that the code is trying to load libslurm.so multiple times, even if the first one succeeded. It is not problematic for Slurm but it adds useless warnings in the log file. An example is:

Jan  6 14:40:40 atcn758 pam_slurm[47822]: Unable to dlopen libslurm.so: libslurm.so: cannot open shared object file: No such file or directory

In that case, the plugin managed to load libslurm.so.Something but not libslurm.so.

Attached a patch to fix that behavior.

Please note that the aforementioned behavior is still present in 14.03.x.

Regards,
Comment 1 Moe Jette 2014-08-04 05:37:05 MDT
(In reply to Mehdi Dogguy from comment #0)
> Attached a patch to fix that behavior.

I do not see an attached patch. Could you try again. (There is an "Attachments" box with an "Add an attachment" link).
Comment 2 Mehdi Dogguy 2014-08-04 20:07:05 MDT
Created attachment 1106 [details]
Patch to contribs/pam/pam_slurm.c
Comment 3 Mehdi Dogguy 2014-08-04 20:15:44 MDT
I've added the attachment now.
Comment 4 David Bigagli 2014-08-05 05:51:31 MDT
Fixed in commit: 40dabac254e6.

Thanks, David