Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 698994 - sys-cluster/slurm-19.05.3.2 - slurmd: error: plugin_load_from_file: dlopen(/usr/lib64/slurm/select_linear.so): /usr/lib64/slurm/select_linear.so: undefined symbol: slurm_job_preempt_mode
Summary: sys-cluster/slurm-19.05.3.2 - slurmd: error: plugin_load_from_file: dlopen(/u...
Status: RESOLVED PKGREMOVED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Alexey Shvetsov
URL: https://bugs.schedmd.com/show_bug.cgi...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-31 04:52 UTC by Alessandro Barbieri
Modified: 2024-10-18 13:47 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
info-slurm (info-slurm,15.90 KB, text/plain)
2019-10-31 04:54 UTC, Alessandro Barbieri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2019-10-31 04:52:01 UTC
when starting slurmd with systemd

ott 31 03:39:19 ALESSAND-F1E8 systemd[1]: Starting Slurm node daemon...
ott 31 03:39:19 ALESSAND-F1E8 slurmd[5354]: error: plugin_load_from_file: dlopen(/usr/lib64/slurm/select_linear.so): /usr/lib64/slurm/select_linear.so: undefined symbol: slurm_job_preempt_mode
ott 31 03:39:19 ALESSAND-F1E8 slurmd[5354]: error: Couldn't load specified plugin name for select/linear: Dlopen of plugin file failed
ott 31 03:39:19 ALESSAND-F1E8 slurmd[5354]: fatal: Can't find plugin for select/linear
ott 31 03:39:19 ALESSAND-F1E8 systemd[1]: slurmd.service: Control process exited, code=exited, status=1/FAILURE
ott 31 03:39:19 ALESSAND-F1E8 systemd[1]: slurmd.service: Failed with result 'exit-code'.
ott 31 03:39:19 ALESSAND-F1E8 systemd[1]: Failed to start Slurm node daemon.


It's a known issue, see:
https://www.mail-archive.com/slurm-dev@schedmd.com/msg07385.html
https://stackoverflow.com/questions/48070840/slurm-cant-find-plugin-for-select-linear

I'm using the hardened profile
Comment 1 Alessandro Barbieri 2019-10-31 04:54:24 UTC
Created attachment 594620 [details]
info-slurm

emerge --info
Comment 2 Alessandro Barbieri 2020-12-19 00:45:09 UTC
https://bugs.schedmd.com/show_bug.cgi?id=2443
TL;DR
Upstream suck: doesn't want to fix the issue and suggest not hardening the build
The other option is to patch the code but the patch needs to be rewritten for every version
Comment 3 Benda Xu gentoo-dev 2024-10-08 08:27:35 UTC
This is pathetic.  The same is still true with slurm-22 when I am trying to add it back to tree.
Comment 4 Larry the Git Cow gentoo-dev 2024-10-18 13:47:49 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f77f6be9737de0f9d1fa729a32eb3ed9c62ca66a

commit f77f6be9737de0f9d1fa729a32eb3ed9c62ca66a
Author:     Benda Xu <heroxbd@gentoo.org>
AuthorDate: 2024-10-09 10:51:06 +0000
Commit:     Benda Xu <heroxbd@gentoo.org>
CommitDate: 2024-10-18 13:37:07 +0000

    sys-cluster/slurm: use lazy binding to let plugins work.
    
    Follow the guidence from slurm.spec and Debian turning off -bindnow.
    
    Bug: https://bugs.gentoo.org/698994
    Reference: https://salsa.debian.org/hpc-team/slurm-wlm/-/blob/master/debian/rules
    Signed-off-by: Benda Xu <heroxbd@gentoo.org>

 sys-cluster/slurm/slurm-22.05.11.ebuild | 9 +++++++--
 sys-cluster/slurm/slurm-24.05.3.ebuild  | 9 +++++++--
 2 files changed, 14 insertions(+), 4 deletions(-)