Ticket 13534

Summary: sinfo --json -o="%P %.3a %.16F %N" Segmentation Fault
Product: Slurm Reporter: Njoud <100462352>
Component: User CommandsAssignee: Jacob Jenson <jacob>
Status: RESOLVED INVALID QA Contact:
Severity: 6 - No support contract    
Priority: ---    
Version: 22.05.x   
Hardware: Linux   
OS: Linux   
Site: -Other- 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: Target Release: ---
DevPrio: --- Emory-Cloud Sites: ---

Description Njoud 2022-03-01 01:30:08 MST
I am trying to put the output of sinfo in json format, Thanks slurm which provide direct option for that. But the problem is a Segmentation Fault appears with some iteration while other not. I tried to use it without iteration, it sometimes work and sometimes not ! 

my code is here : 
for i in $(seq $START $STEP $END) ; do
    echo "NJOUD DATE : ".$(date)
    sinfo --json -o="%P %.3a %.16F %N"
    sleep $SLEEP
    #format between Iterations
    echo