[haiku-bugs] Re: [Haiku] #9377: Network Stack Deadlock

  • From: "jackburton" <trac@xxxxxxxxxxxx>
  • Date: Sat, 19 Jan 2013 20:16:30 -0000

#9377: Network Stack Deadlock
----------------------------------------+----------------------------
   Reporter:  jackburton                |      Owner:  axeld
       Type:  bug                       |     Status:  new
   Priority:  normal                    |  Milestone:  R1
  Component:  Network & Internet/Stack  |    Version:  R1/Development
 Resolution:                            |   Keywords:
 Blocked By:                            |   Blocking:
Has a Patch:  0                         |   Platform:  All
----------------------------------------+----------------------------

Comment (by jackburton):

 From the backtrace of the two threads, the lock inversion is clear: the
 wpa_supplicant thread calls get_interface() which locks the
 "net_interfaces" mutex, then CreateDomainDatalinkIfNeeded() try to acquire
 the recursive lock of the interface.

 The ifconfig thread, on the other hand, first acquire the interface lock
 in Interface::SetDown(), then (through the ipv6 protocol add-on) calls
 get_interface() which tries to acquire the net_interfaces mutex.

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

Other related posts: