Skip to content
Snippets Groups Projects
  1. Aug 29, 2017
    • Brian Christiansen's avatar
      Handle uninitialized values · c652acd1
      Brian Christiansen authored
      as reported when compiling with optimizations (-02). Initialize the
      variables early since they were being initialized in their loops and
      later checked for -1.
      
      Technically couldn't have happened since for example, user_part_inx1
      would only be set to -1 if max_backfill_job_per_user_part was set. And
      user_part_inx is only checked later if max_backfill_job_per_user_part
      is set.
      
      Same thing for part_inx, max_backfill_job_per_part and user_inx,
      max_backfill_job_per_user.
      c652acd1
    • Brian Christiansen's avatar
      Handle gcc "ignoring return value" warning · 3cc8bba3
      Brian Christiansen authored
      reported when compiling with optimizations (-O2). The compiler ignores
      the (void) cast and reports the error.
      3cc8bba3
    • Brian Christiansen's avatar
      Fix uninitialized value · 61ab4f25
      Brian Christiansen authored
      reported when compiling with optimizations (-O2). field_id may be
      uninitialized or the the value from the previous iteration in the while
      loop. The only possible values of dataset_loc->type are:
      
      typedef enum {
      	PROFILE_FIELD_NOT_SET,
      	PROFILE_FIELD_UINT64,
      	PROFILE_FIELD_DOUBLE
      } acct_gather_profile_field_type_t;
      
      and the while loop condition ensures that PROFILE_FIELD_NOT_SET is not
      handled. So instead of handling PROFILE_FIELD_NOT_SET directly, just
      catching everything else with the "default" case statement and
      continuing the loop.
      61ab4f25
    • Brian Christiansen's avatar
      Remove comment · 2891d63f
      Brian Christiansen authored
      2891d63f
    • Danny Auble's avatar
      Make it so a backup DBD doesn't attempt to create database tables and · fc7de2ee
      Danny Auble authored
      relies on the primary to do so.
      
      There is a potential race condition if the backup DBD tries to create/check the
      database at the same time as the primary.  This patch removes this race by not
      allowing the backup to do the check/create.
      
      Bug 3827
      fc7de2ee
    • Morris Jette's avatar
      Fix for possible unsigned iterator with negative bounds · d7bf9013
      Morris Jette authored
      Coverity 44943, 44944
      d7bf9013
    • Morris Jette's avatar
      Fix for possible unsigned interator with negative bounds · 8e628b01
      Morris Jette authored
      Coverity CID 44941, 44942
      8e628b01
  2. Aug 25, 2017
  3. Aug 24, 2017
    • Alejandro Sanchez's avatar
      Fix Coverity CID 174746: Control flow issues (DEADCODE). · 1a603a7b
      Alejandro Sanchez authored
      Testing if curl_handle != NULL or rc != SLURM_SUCCESS was already done
      in the right above if/else statements, jumping to the consequent goto
      cleanup label if needed. Thus the removed test was never going to be
      evaluated to true, and Coverity properly warned about this.
      
      Regression introduced in commit 5f5e6472 (code cleanup).
      1a603a7b
  4. Aug 23, 2017
    • Alejandro Sanchez's avatar
    • Alejandro Sanchez's avatar
      jobcomp/elasticsearch - fix memory leak when transferring generated buffer. · 8172b7df
      Alejandro Sanchez authored
      Running slurmctld under valgrind while operating with jobcomp/elasticsearch
      reported the following bytes definitely lost:
      
      ==27403== 658 bytes in 1 blocks are definitely lost in loss record 301 of 342
      ==27403==    at 0x4C2FD4F: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==27403==    by 0x2281B3: slurm_xrealloc (xmalloc.c:137)
      ==27403==    by 0x22856A: makespace (xstring.c:114)
      ==27403==    by 0x2285D0: _xstrcat (xstring.c:132)
      ==27403==    by 0x228CE0: _xstrfmtcat (xstring.c:291)
      ==27403==    by 0x83C5BCD: ???
      ==27403==    by 0x30A913: g_slurm_jobcomp_write (slurm_jobcomp.c:172)
      ==27403==    by 0x18D8FC: job_completion_logger (job_mgr.c:13652)
      
      It turns out the generated buffer in slurm_jobcomp_log_record was xstrdup'ed to
      the corresponding job_node->serialized_job, but the originally generated buffer
      wasn't freed afterwards. The fix consists in change the transfer so that instead
      of xstrdup'ing the char * we just assign the pointer and NULL the buffer.
      
      The job_node->serialized_job was already xfree'd properly later when the job
      was indexed.
      
      Discovered while working on Bug 4065.
      8172b7df
    • Tim Wickberg's avatar
      Print a warning if no results list is available. · 6d15591f
      Tim Wickberg authored
      This should only happen due to ESLURM_RESULT_TOO_LARGE,
      which leads to no list being packed.
      
      Follow on to 390da8cf / 8cf1835c.
      
      Bug 3624.
      6d15591f
    • Danny Auble's avatar
      Fix from change in ffe2c5dc that removed last parameter to the · d24525d4
      Danny Auble authored
      launch_g_step_wait() function.
      d24525d4
  5. Aug 22, 2017
  6. Aug 21, 2017
    • Alejandro Sanchez's avatar
      jobcomp/filetxt/elasticsearch - fix [derived]/exit_code fields storage · 9c720d8f
      Alejandro Sanchez authored
      The exit status value for these two fields was incorrectly saved as-is.  The
      patch makes use of the appropiate macros to properly decode the low-order
      8 bits of the exit status and the signal number (if any).
      
      bug 3942
      9c720d8f
    • Alejandro Sanchez's avatar
      select/cons_res - fix bug with Dragonfly and --switches count timeout · 46c0919d
      Alejandro Sanchez authored
      Given a configuration with TopologyParam including Dragonfly option, if a
      job requested --switches count, the count timeout specified by either
      the job request or max_switch_wait SchedulerParameters was not respected.
      This was due to leaf_switch_count variable not being incremented in
      _eval_nodes_dfly() function when needed, as we do in _eval_nodes_topo(),
      the later being a execution path which already succeed to wait for the
      switch count timeout.
      
      Bug 4056
      46c0919d
  7. Aug 18, 2017
  8. Aug 17, 2017
  9. Aug 16, 2017
  10. Aug 15, 2017
Loading