[torquedev] [Bug 98] Allocation of incorrect pointer in src/scheduler.cc/samples/fifo/job_info.c: update_job_comment causes random crash.

bugzilla-daemon at supercluster.org bugzilla-daemon at supercluster.org
Wed Nov 10 01:35:14 MST 2010


http://www.clusterresources.com/bugzilla/show_bug.cgi?id=98

--- Comment #4 from Simon Toth <SimonT at mail.muni.cz> 2010-11-10 01:35:14 MST ---
(In reply to comment #3)
> (In reply to comment #2)
> > I guess I dont quite understand. Isn't pbs_alterjob() synchronous? Why does it
> > matter that comment may be stack-based? The server copy wont be.
> 
> Yes it is synchronous. This patch doesn't change anything.

Btw, if indeed a heap pointer is required (and presumably freed) the correct
fix would be attr.value = strdup(comment), because otherwise the jinfo->comment
pointer would be destroyed.

-- 
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