[haiku-bugs] Re: [Haiku] #5790: panic: out of ports, but sUsedPorts is broken

  • From: "mmlr" <trac@xxxxxxxxxxxx>
  • Date: Thu, 29 Apr 2010 12:50:35 -0000

#5790: panic: out of ports, but sUsedPorts is broken
---------------------------+------------------------------------------------
 Reporter:  mmlr           |       Owner:  axeld         
     Type:  bug            |      Status:  new           
 Priority:  normal         |   Milestone:  R1            
Component:  System/Kernel  |     Version:  R1/Development
 Keywords:                 |   Blockedby:                
 Platform:  All            |    Blocking:                
---------------------------+------------------------------------------------

Comment(by mmlr):

 Replying to [comment:2 axeld]:
 > Still, the code looks reasonably safe to overflows, so I think
 sUsedPorts is actually broken.

 I don't see any code that'd deal with wrapping to negative port ids though
 (as port_id is a int32). Also what happens if the port id happens to
 become -1 which is used to indicate a free slot (I didn't actually try to
 figure out if this can happen though). The concept of sUsedPorts looks
 pretty simple to me so I don't see where it could really go wrong.

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

Other related posts: