[haiku-bugs] Re: [Haiku] #10694: Somewhat reproducible KDL: power_daemon in wait_for_objects()

  • From: "ttcoder" <trac@xxxxxxxxxxxx>
  • Date: Mon, 24 Mar 2014 11:56:59 -0000

#10694: Somewhat reproducible KDL: power_daemon in wait_for_objects()
------------------------------------+----------------------------
   Reporter:  ttcoder               |      Owner:  axeld
       Type:  bug                   |     Status:  new
   Priority:  normal                |  Milestone:  R1
  Component:  Servers/power_daemon  |    Version:  R1/Development
 Resolution:                        |   Keywords:
 Blocked By:                        |   Blocking:
Has a Patch:  0                     |   Platform:  All
------------------------------------+----------------------------

Comment (by ttcoder):

 Making the steps available for others to try this out, as I've managed to
 reproduce this on another machine for the first time yesterday, so I
 assumed wrong it thinking nobody else could ever see this, I just hadn't
 tried hard enough.

 Again, this pretty much requires a ca. ''46368'' nightly as this is the
 one that exposes a vulnerability in the kernel. The ones before did not
 have the CPU-hog code, and neither did the ones soon after (would
 appreciate confirmation of my working theory from the haiku head-honchos:
 revisions around this one exhibit kernel instability and sometimes also
 userland crashes; starting with hrev46370 korli fixed the 100% CPU usage
 kernel thread and it became much more difficult to expose this kernel
 flaw; '''am I right in assuming that hrev46370 does not fix any memory
 corruption related bug, it only fixes excessive CPU usage, hence the
 crashes in previous revs were possibly due to "pressure" put on the kernel
 ?''' That would be something worth investigating if so, as that might
 still be present in the current 47xxx revs, but tell me if my intuition is
 dead wrong again :-)  (heck, maybe somebody could even try building a
 current nightly with current baseline code except for a reversal of
 hrev46370, to see if the 100% CPU usage pressure still crashes current
 nightlies; there's probably a multitude of other ways to induce 100%
 kernelland CPU usage too!)

 =======

 Ingredients:
 - Tracker
 - Terminal
 - Filetypes

 Recipe:
 - cold boot
 - wait for things to settle down (the Network notification window i.e.)
 - Alt-Opt-F to '''open Filetypes''' 's main window
 - click on the desktop, then Alt-N, then <enter> <enter> to open the
 created '''New Folder'''
 - with the new folder selected, alt-N/enter/enter again; repeat until you
 have 4 windows open
 - Alt-Opt-T to '''open a Terminal'''
 - Alt-N, until you have 4 terminals open
 - select the first created New Folder on the desktop, Alt-T to '''trash
 that folder'''. All its children windows disappear too.
 - in quick succession, click Terminal 4 and Alt-W to '''close that
 terminal''', same with 3 2 and 1.
 - '''close Filetypes'''
 - Deskbar > shutdown > restart (or power off)

 With some luck you'll get the attached kernel panic.

--
Ticket URL: <https://dev.haiku-os.org/ticket/10694#comment:1>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: