Description of problem: Currently the load/start/run commands have problems handling processes that are multi-threaded because some commands have not been upgraded to be able to address each individual thread. Also, the kill command at present does not handle multi-threaded processes in a consistent manner. Version-Release number of selected component (if applicable): rhel 5.2 How reproducible: every time Steps to Reproduce: 1. load up a multithreaded process 2. run that process 3. kill that process Actual results: kill generates an error when trying to get rid of the process Expected results: kill should return normally Additional info:
Here is a script to reproduce: $fhpd (fhpd) load echo [0.0] Loaded executable file: /bin/echo (fhpd) load true [1.0] Loaded executable file: /bin/true (fhpd) focus Target set pid id path-to-executable [0.0] 0 0 /bin/echo [1.0] 0 0 /bin/true (fhpd) run [0.0] execvp: No such file or directory The correct response to the last run command would be this: Attached to process ????? running with this command: /bin/echo Running process ?????
I have now checked in the changes for start/run to be able to use HPD notation. Test cases have been added to the test suite in TestRunCommand.java/TestStartCommand.java to test this capability. Actually, in the above example I have the HPD notation wrong. The command to start/run a process with this notation is like so: [1.0] run instead of run [1.0] here is what the sequence should look like: (fhpd) load echo [0.0] Loaded executable file: /bin/echo (fhpd) load true [1.0] Loaded executable file: /bin/true (fhpd) focus Target set pid id path-to-executable [0.0] 0 0 /bin/echo [1.0] 0 0 /bin/true (fhpd) [0.0] run Attached to process ????? running with this command: /bin/echo Running process ????? BTW, the start command is almost the same sequence except the output after issuing the "[1.0] start" command would not have the "Running process ?????" line and in the 2nd line replace "running" with "starting".