[haiku-bugs] Re: [Haiku] #6129: Kernel hang after allocate_commpage_entry

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Sun, 06 Jun 2010 15:45:00 -0000

#6129: Kernel hang after allocate_commpage_entry
---------------------------+------------------------------------------------
 Reporter:  andreasf       |       Owner:  axeld         
     Type:  bug            |      Status:  new           
 Priority:  normal         |   Milestone:  R1            
Component:  System/Kernel  |     Version:  R1/Development
 Keywords:                 |    Platform:  PowerPC       
Blockedby:  5193           |       Patch:  0             
 Blocking:  1048           |  
---------------------------+------------------------------------------------

Comment(by bonefish):

 The stack trace doesn't look quite right. The `get_memory_map_etc()`
 definitely doesn't belong there. `module_hash()` directly calls
 `hash_hash_string()`. Though, as the objdump shows, apparently through the
 PLT, which I find weird. I'm not too familiar with the ELF PPC specifics
 anymore, but (1) the kernel shouldn't have a PLT in the first place (since
 it should be relocatable, but not position independent) and (2) I cannot
 see a reason why a function in the same shared object should be called
 through the PLT at all. Might be some kind of optimization. At any rate
 the address really seems to be in get_memory_map_etc() (at least in my
 objdump the function is longer than 0x248 bytes). You might want to check
 that against the kernel you've built.

 Other than that -- which might turn out to be harmless -- either the
 string pointer passed to get_module() or some module name seems to be
 broken. I guess debug output is the way to go. A `call` command for PPC
 would be nice to have here, but due to the parameter passing via registers
 that is probably quite complicated to do.

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

Other related posts: