[haiku-bugs] [Haiku] #13081: Can only run any program a limited number of times before hanging

  • From: "AGMS" <trac@xxxxxxxxxxxx>
  • Date: Wed, 16 Nov 2016 02:12:50 -0000

#13081: Can only run any program a limited number of times before hanging
--------------------------------------+------------------------------
 Reporter:  AGMS                      |        Owner:  nobody
     Type:  bug                       |       Status:  new
 Priority:  normal                    |    Milestone:  Unscheduled
Component:  System                    |      Version:  R1/Development
 Keywords:  relocate_image, system()  |   Blocked By:
 Blocking:                            |  Has a Patch:  0
 Platform:  All                       |
--------------------------------------+------------------------------
 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.

--
Ticket URL: <https://dev.haiku-os.org/ticket/13081>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: