[haiku-bugs] Re: [Haiku] #5956: PPC boot fails on double lock of mutex

  • From: "andreasf" <trac@xxxxxxxxxxxx>
  • Date: Sat, 15 May 2010 14:42:17 -0000

#5956: PPC boot fails on double lock of mutex
---------------------------+------------------------------------------------
 Reporter:  stevenh        |       Owner:  axeld         
     Type:  bug            |      Status:  new           
 Priority:  normal         |   Milestone:  R1            
Component:  System/Kernel  |     Version:  R1/Development
 Keywords:                 |   Blockedby:                
 Platform:  PowerPC        |    Blocking:  1048          
---------------------------+------------------------------------------------

Comment(by andreasf):

 Here's some more info on the original problem.

 Turning on {{{TRACE_HEAP}}} in src/system/kernel/heap.cpp shows that it
 goes through the {{{new}}} operator (headers/private/kernel/heap.h) to
 {{{memalign_etc}}} and through {{{heap_memalign}}} to {{{heap_raw_alloc}}}
 with a {{{NULL}}} {{{heap_allocator}}}:

 {{{
 memalign(alignment = 0, size = 112)
 heap 0x00000000: allocate 112 bytes from raw pages with alignment 0
 PANIC: _mutex_lock(): double lock of 0x0000001c by thread 0
 }}}

 This would seem to indicate that {{{sVIPHeap}}} (cf. {{{memalign_etc}}})
 is {{{NULL}}}.

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

Other related posts: