[haiku-bugs] Re: [Haiku] #8123: PANIC: object_cache: tried to free invalid object pointer

  • From: "axeld" <trac@xxxxxxxxxxxx>
  • Date: Thu, 19 Jul 2012 21:26:41 -0000

#8123: PANIC: object_cache: tried to free invalid object pointer
-----------------------------+----------------------------
   Reporter:  beos_zealot    |      Owner:  axeld
       Type:  bug            |     Status:  assigned
   Priority:  normal         |  Milestone:  R1
  Component:  System/Kernel  |    Version:  R1/Development
 Resolution:                 |   Keywords:  slab deadbeef
 Blocked By:                 |   Blocking:
Has a Patch:  1              |   Platform:  x86
-----------------------------+----------------------------

Comment (by axeld):

 Great findings! Actually, your patch is not entirely correct, even though
 it helps ignoring the problem: when a block is without a transaction, it
 mustn't be dirty anymore.

 It looks both cache_abort_transaction(), and cache_abort_sub_transaction()
 don't deal with this correctly. The latter even has some more problems, as
 it does not reset the transaction field when it should.

 I'm currently working on a revised patch. Thanks a lot in any case!

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8123#comment:6>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: