Opened 15 years ago

Last modified 15 years ago

#5374 closed bug

Contents of files ending up in other files — at Version 1

Reported by: mmlr Owned by: bonefish
Priority: critical Milestone: R1
Component: System/Kernel Version: R1/Development
Keywords: Cc: Jens.Arm@…
Blocked By: Blocking:
Platform: All

Description (last modified by mmlr)

With a hrev35401 kernel (updated from a previous hrev35294 one) I have buildtools failing during a second Haiku build run. Inspecting the files that were built using a -aqj8 build just minutes ago they ended up having contents of other files in them. As an example I'll attached the linkcatkeys binary that is a normal executable up to 0x00010000 and then contains what appears to be data from the svn update run up to a certain point and then continues to be a normal executable. My steps were:

1) Reboot

2) Trying to build Haiku to another partition which failed in various tools (likely due to this problem)

3) Build Haiku to another partition using "-ajq8" to ensure all tools to be rebuilt which worked fine

4) Noticing that I forgot to update to the latest sources, so doing an svn update

5) Trying to re-build to said partition with "-jq8" which failed stumbling over collectcatkeys (which contained some text instead of the expected executable data), after deleting collectcatkeys so it would be rebuilt it failed to run linkcatkeys

6) Inspecting linkcatkeys to find it contained stuff it shouldn't

7) Getting a little worried and opening this bug

It seems to me that since the "-a" build ran through just fine that the files were valid when they were created and cached in memory and then got corrupted when written back. After rebooting the files are broken in the same way, so they definitely ended up broken on-disk. Therefore I'd suspect hrev35393 with it's write-back related changes.

Change History (2)

by mmlr, 15 years ago

Attachment: linkcatkeys added

comment:1 by mmlr, 15 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.