[haiku-bugs] Re: [Haiku] #12448: Firewire-0 cause troubles (GetBuffer: IDs mismatch, SetHeader)

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Fri, 16 Aug 2019 18:16:35 -0000

#12448: Firewire-0 cause troubles (GetBuffer: IDs mismatch, SetHeader)
-------------------------------------+-------------------------------------
   Reporter:  vidrep                 |      Owner:  leavengood
       Type:  bug                    |     Status:  assigned
   Priority:  normal                 |  Milestone:  R1
  Component:                         |    Version:  R1/Development
  Servers/media_addon_server         |
 Resolution:                         |   Keywords:
 Blocked By:                         |   Blocking:  9804, 11243, 12477,
                                     |  12488, 12700, 13988, 14854, 14877
Has a Patch:  0                      |   Platform:  All
-------------------------------------+-------------------------------------
Changes (by leavengood):

 * owner:  nobody => leavengood


Comment:

 That last debugger call is more or less the same as the one in the
 BufferCache: the buffer IDs do not match. So either buffers are getting
 mixed up in some way, or the header or buffer memory is being corrupted.
 Given they are shared all over the place corruption is a distinct
 possibility. Why it only happens on gcc2 is maybe the bigger question. It
 could be a locking bug where a couple things try to access the same buffer
 memory at the same time and one overwrites the other.

 I almost have a handle on how the current buffer sharing works and can
 maybe come up with a better scheme, but with sharing memory across teams
 there is always a risk of corruption.

 I think what I will do in the meantime for this issue is add to each of
 these debugger calls the buffer ID expected, and the one gotten.

 Question for you dufresnep: is the firewire addon in use in some of your
 recent crashes?

-- 
Ticket URL: <https://dev.haiku-os.org/ticket/12448#comment:33>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: