1. 17 Dec, 2011 1 commit
    • Mark A. Grondona's avatar
      env: fix shell function import · 013ac790
      Mark A. Grondona authored
      src/common/env.c:env_array_user_default() tries to import a "default"
      user environment by parsing the output of something like
      
       su - <user> -c "/bin/env" ( or "slurmstepd getenv")
      
      (or an equivalent) when the job is run with --get-user-env. There is some
      code that tries to detect and import exported bash shell functions, which
      usually have the form
      
       func=() { ...
       }
      
      into the job environment. However, one of the many problems with the
      code is that the test for bounds overflow:
      
                    if ((strlen(value) + strlen(line)) >
                        (sizeof(value) - 1))
                           break;
      
      useis sizeof(value) and value is a char *. This means that all multiline
      shell functions are truncated, and the following error appears in
      users batch script output:
      
       /bin/sh: func: line 1: syntax error: unexpected end of file
       /bin/sh: error importing function definition for `func'
      
      This patch fixes the bounds test.
      
      Similar cut-and-paste code in _load_env_cache() was also fixed.
      
      However, it should be noted that there are many other potential cases
      where shell functions will not be properly imported by this code.
      (For example, quoted unbalanced brackets used in the function)
      Someday this should be fixed.
      013ac790
  2. 15 Dec, 2011 1 commit
  3. 14 Dec, 2011 4 commits
  4. 09 Dec, 2011 6 commits
  5. 08 Dec, 2011 2 commits
  6. 06 Dec, 2011 2 commits
    • Morris Jette's avatar
      Permit pending job to exeeded partition limit with QOS flag change. · 0e1abeda
      Morris Jette authored
      One of our testers discovered a regression in version 2.3.1.  If a job is
      pending due to PartitionNodeLimit and the limit is relieved with a
      'sacctmgr modify qos name=<qos name> set flags=partitionmaxnodes' new jobs
      exceeding the partition limit (but not the QOS limit) are allowed to run.
      However, the pending job is never allowed to run.  Attached is a patch to
      address this problem.  FYI, this problem doesn't exist in version 2.4.
      Patch from Bill Brophy, Bull.
      0e1abeda
    • Yuri D'Elia's avatar
      bf9943fe
  7. 05 Dec, 2011 3 commits
  8. 02 Dec, 2011 2 commits
  9. 01 Dec, 2011 1 commit
    • jette's avatar
      Fix for "fatal: cons_res: sync loop not progressing" · d70a9ac4
      jette authored
      This was due to a bug in select/cons_res with some configuration
      optiions and job options, especially if there is more than one
      thread per core and the job option includes "--threads-per-core=1".
      Fixes problem reported by CSCS.
      d70a9ac4
  10. 30 Nov, 2011 3 commits
  11. 23 Nov, 2011 2 commits
  12. 22 Nov, 2011 2 commits
  13. 21 Nov, 2011 4 commits
  14. 18 Nov, 2011 3 commits
  15. 16 Nov, 2011 1 commit
    • Pär Andersson's avatar
      Fix Lua link order · 1ef73876
      Pär Andersson authored
      Put -llua* in LIBS rather than LDFLAGS to get correct link order.
      Without this the configure test for Lua fails when using GCC 4.6,
      the default compiler on recent Linux distributions like Ubuntu
      11.10.
      1ef73876
  16. 08 Nov, 2011 1 commit
  17. 07 Nov, 2011 2 commits