[haiku-bugs] Re: [Haiku] #5987: menu thread lockup when using cursor key on empty folder

  • From: "stippi" <trac@xxxxxxxxxxxx>
  • Date: Fri, 14 May 2010 16:23:58 -0000

#5987: menu thread lockup when using cursor key on empty folder
--------------------------------+-------------------------------------------
 Reporter:  Ziusudra            |       Owner:  stippi     
     Type:  bug                 |      Status:  in-progress
 Priority:  normal              |   Milestone:  R1         
Component:  Kits/Interface Kit  |     Version:  R1/alpha2  
 Keywords:                      |   Blockedby:             
 Platform:  All                 |    Blocking:             
--------------------------------+-------------------------------------------
Changes (by stippi):

  * owner:  axeld => stippi
  * status:  new => in-progress


Comment:

 It just so happens that I came across a method in the Menu tracking code
 that I thought was curious and should deadlock in certain situations. And
 indeed there is a ticket within the next day... :-)
 {{{
 (gdb) bt
 #0  0x002fc0c7 in BMenu::_NextItem () from /boot/system/lib/libbe.so
 #1  0x002fd4d7 in BMenu::_SelectNextItem () from /boot/system/lib/libbe.so
 #2  0x002feb8c in BMenu::KeyDown () from /boot/system/lib/libbe.so
 #3  0x00365984 in BWindow::DispatchMessage () from
 /boot/system/lib/libbe.so
 #4  0x00309343 in BPrivate::BMenuWindow::DispatchMessage () from
 /boot/system/lib/libbe.so
 #5  0x00361de9 in BWindow::task_looper () from /boot/system/lib/libbe.so
 #6  0x002ade0e in BLooper::_task0_ () from /boot/system/lib/libbe.so
 #7  0x005eee6c in thread_entry () from /boot/system/lib/libroot.so
 #8  0x78594fec in ?? ()
 }}}

 When the method has no other item to go to, it will loop forever.

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

Other related posts: