[haiku-bugs] Re: [Haiku] #12676: After several hours of usage, suddenly, text files suffer data corruption (plain text is replaced with strange characters).

  • From: "mmlr" <trac@xxxxxxxxxxxx>
  • Date: Sat, 12 Mar 2016 11:34:24 -0000

#12676: After several hours of usage, suddenly, text files suffer data 
corruption
(plain text is replaced with strange characters).
--------------------------------+----------------------------
   Reporter:  Giova84           |      Owner:  axeld
       Type:  bug               |     Status:  new
   Priority:  normal            |  Milestone:  Unscheduled
  Component:  File Systems/BFS  |    Version:  R1/Development
 Resolution:                    |   Keywords:
 Blocked By:                    |   Blocking:
Has a Patch:  0                 |   Platform:  All
--------------------------------+----------------------------

Comment (by mmlr):

 In such cases it is always interesting to figure out where the corruption
 is actually happening as there are numerous layers involved. Here's a
 couple of things you could try to narrow things down:

 * Open the corrupted file with DiskProbe and look at where the corruption
 starts/ends. Does it span the whole file or does it start/stop at a
 certain boundary? Does the offset of that start/end align with a power of
 2 (i.e. is it a multiple of 2048, 4096 or similar)? -> The offsets might
 give a hint at whether it is cache corruption and which cache is possibly
 affected.
 * Is there a pattern in the corruption or does it look completely random?
 Can you see readable text? -> The structure of the corruption might point
 to a certain driver/component that may be overwriting memory.
 * Does the corruption persist across a reboot? -> This will show whether
 or not the data on the file system actually got corrupted or if it was one
 of the cache layers getting corrupted transiently.

--
Ticket URL: <https://dev.haiku-os.org/ticket/12676#comment:5>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: