Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ptp-dev] Question about the process set of ptp debugger

Hi all,
 
 Recently I have encounted a confusing problem about the process set operation when dealing with ptp parallel debugger.
 Let me describe the problem first.
 I have a parallel job with 4 processes and group process 0,1 and 2 to process set 0. Now I have two process sets: set0 and the Root set.
 Then  I set a line breakpoint on process set0,i.e on process 0,1,2. Everything goes well by now. Then when I try to set a line breakpoints on the Root set,
 The UI pops a dialog window with the following message: "Error on task:0-3"
 
 What causes this error?
 After tracing the execution of "sdm" client, we find that for the second debug request (setting line breakpoint on Root set), there are two responses from sdm client to UI. One response contains process 0,1,2 and the other contains process 3.
 
 For the second debug request, when all 4 processs return their replies, sdm client tries to respond to UI. However, there are two HashEntry entries in the current
 "r->events" hash table. One entry is for process 0,1,2 and th other entry for process 3. This is caused by the fact that the hash value of the debug message from process 3 is different from the one for process 0,1,2 since the current breakpoint number of process 3 is 1 while the  current breakpoint number of process 0,1,2 is 2.
 It is the two hash entries that cause two reponses to UI.
 
 So, does this mean that a process cann't belong to more than 1 process set?
 Or two process sets in a job cann't have common elements?
 Or more, it is not allowed to change a process from one process set to another process set duing a debug session?
 
 Regards,
Jie


通过 Windows Live Spaces 与朋友轻松共享您的生活。 立即尝试!

Back to the top