[torquedev] [Bug 189] New: Dangling pointer in job_func.c

bugzilla-daemon at supercluster.org bugzilla-daemon at supercluster.org
Mon Apr 30 06:49:41 MDT 2012


           Summary: Dangling pointer in job_func.c
           Product: TORQUE
           Version: 3.0.x
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P5
         Component: pbs_server
        AssignedTo: dbeer at adaptivecomputing.com
        ReportedBy: rhys.hill at adelaide.edu.au
                CC: torquedev at supercluster.org
   Estimated Hours: 0.0

In job_func.c, there are two places where job_purge is called, like so:

*pjobp = NULL;

where pjob = *pjobp. However, this pattern leaves pjob pointer at a dead
structure, and mean that later NULL tests on job are incorrect. Simply doing

*pjobp = NULL;
 pjob = NULL;

resolves the problem.

Configure bugmail: http://www.clusterresources.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the torquedev mailing list