[haiku-bugs] Re: [Haiku] #11399: [BFS] Panic in BPlusTree::Find()

  • From: "anevilyak" <trac@xxxxxxxxxxxx>
  • Date: Fri, 31 Oct 2014 19:10:38 -0000

#11399: [BFS] Panic in BPlusTree::Find()
--------------------------------+----------------------------
   Reporter:  anevilyak         |      Owner:  axeld
       Type:  bug               |     Status:  new
   Priority:  normal            |  Milestone:  R1
  Component:  File Systems/BFS  |    Version:  R1/Development
 Resolution:                    |   Keywords:
 Blocked By:                    |   Blocking:
Has a Patch:  0                 |   Platform:  All
--------------------------------+----------------------------

Comment (by anevilyak):

 After digging around a bit further with mmlr, the panic is triggered by
 [http://cgit.haiku-os.org/haiku/tree/src/add-
 ons/kernel/file_systems/bfs/BPlusTree.cpp#n2323 this call]. The
 implication is that the BPlusTree in question has fStream set to NULL (the
 call to ->ID() is what triggers the dereference leading to the panic).

 However, up until now, we've been unable to find a code path where that
 could be the case, since it would more or less imply that either 1) a tree
 was constructed without ever being assigned an inode, or 2) an attempt was
 made to set it, but the result not checked prior to calling Find() on it.
 If it happens again, I'll see if I can dump more of the tree's data
 members i.e. its status.

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

Other related posts: