[haiku-bugs] Re: [Haiku] #9896: DVD file copy stalls at ca. 1 GB, pegs CPUs

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Fri, 26 Jul 2013 12:26:21 -0000

#9896: DVD file copy stalls at ca. 1 GB, pegs CPUs
--------------------------------+----------------------------
   Reporter:  ttcoder           |      Owner:  nobody
       Type:  bug               |     Status:  new
   Priority:  normal            |  Milestone:  R1
  Component:  File Systems/UDF  |    Version:  R1/Development
 Resolution:                    |   Keywords:
 Blocked By:                    |   Blocking:
Has a Patch:  0                 |   Platform:  All
--------------------------------+----------------------------

Comment (by bonefish):

 Thanks, that pinpoints it indeed. The function name matches the caller
 address on the same line, so `FileMap::_Cache()` doesn't return. It only
 has a single loop that repeatedly calls `vfs_get_file_map()` (which just
 calls the file system hook) and adds the retrieved vectors until it hits
 the end of the file or the maximum cache size. So either the retrieved
 vectors aren't handled correctly or UDF's hook doesn't work correctly --
 returning `B_OK` together with no vectors or an empty one. I suppose an
 assert could be added to catch the latter case at least.

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

Other related posts: