Can only run any program a limited number of times before hanging
|Reported by:||AGMS||Owned by:||mmlr|
|Has a Patch:||no||Platform:||x86|
If you repeatedly run a program, whether via system() or load_image(), you only get a few hundred runs before the program hangs. Or rather, it seems the child program hangs in relocate_image while it is being loaded, before it's main thread starts.
See the attached stress test program example (redirect standard output to a file to make it more readable). It repeatedly runs /bin/date, with a pause between iterations. Expect to get less than 1000 runs.
This may explain why Haiku gets stuck if left running long enough.
Tested in hrev50678, also affects earlier versions.