Ticket 950

Summary: sh5util --user is ignored or segfault
Product: Slurm Reporter: Yoann Blein <yoann.blein>
Component: ProfilingAssignee: David Bigagli <david>
Status: RESOLVED FIXED QA Contact:
Severity: 4 - Minor Issue    
Priority: --- CC: da
Version: 14.11.x   
Hardware: Linux   
OS: Linux   
Site: Atos/Eviden Sites 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.5 Target Release: ---
DevPrio: --- Emory-Cloud Sites: ---
Attachments: Bugfix patch for sh5util --user

Description Yoann Blein 2014-07-09 00:22:43 MDT
Created attachment 1039 [details]
Bugfix patch for sh5util --user

The option --user of sh5util is currently ignored: sh5util is looking into the sub-directory of the current logged user instead of the sub-directory of the provided user.
For example, we would expected sh5utils to look into /path/to/hdf5/dir/username in the following case:
[root@mo98 sh5util]$ sh5util --user username -v -j 3090
[...]
sh5util: error: Cannot open /path/to/hdf5/dir/root job profile directory: No such file or directory

Moreover, wrong usage of the option is causing segmentation faults:
$ sh5util -u
Segmentation fault
$ sh5util -user
Segmentation fault

Bugfix patch attached.

Yoann
Comment 1 David Bigagli 2014-07-09 05:49:49 MDT
Fixed in commit 09fc08085a24949b9.

Thanks,
David