[haiku-bugs] Re: [Haiku] #10829: package daemon full cpu on new package addition

  • From: "anevilyak" <trac@xxxxxxxxxxxx>
  • Date: Mon, 12 May 2014 03:52:36 -0000

#10829: package daemon full cpu on new package addition
--------------------------------------+----------------------------
   Reporter:  kallisti5               |      Owner:  bonefish
       Type:  bug                     |     Status:  new
   Priority:  high                    |  Milestone:  R1
  Component:  Servers/package_daemon  |    Version:  R1/Development
 Resolution:                          |   Keywords:
 Blocked By:                          |   Blocking:
Has a Patch:  0                       |   Platform:  x86
--------------------------------------+----------------------------

Comment (by anevilyak):

 On second thought, might have found it: in Volume's [http://cgit.haiku-
 os.org/haiku/tree/src/servers/package/Volume.cpp#n162 destructor], the
 package file manager is destroyed before calling SetLatestState(). Thus,
 when SetLatestState() destroys the previous latest state, any packages
 attached to it get freed, which in turn try to remove themselves from the
 (already deleted) package file manager. I'd guess that reordering things
 so that the state setting call happens prior to deleting the file manager
 should fix this, but that might have other side effects I'm not aware of.
 Ingo, thoughts?

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

Other related posts: