[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files
From: |
Michael S. Tsirkin |
Subject: |
Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files |
Date: |
Wed, 22 May 2013 14:35:11 +0300 |
On Wed, May 22, 2013 at 01:12:15PM +0200, Paolo Bonzini wrote:
> Il 22/05/2013 13:09, Michael S. Tsirkin ha scritto:
> > > Usually I do the same---I just do slightly more thorough testing for
> > > configure patches.
> >
> > I've no idea what happens with ccache on a crash by the way.
> > It's possible that it's careful to do renames in order to not leave
> > corrupted output files behind.
>
> It doesn't, it leave 0-sized files. (Or at least it didn't last time
> power failed during a compilation. :))
>
> Paolo
Well looking at the source, there's quite a bit of
handling of renames, so maybe ccache hackers will be
interested in fixing this.
Manpage says:
It should be noted that ccache is susceptible to general storage
problems. If a bad object file sneaks into the cache for some reason, it
will of course stay bad. Some possible reasons for erroneous object
files are bad hardware (disk drive, disk controller, memory, etc), buggy
drivers or file systems, a bad CCACHE_PREFIX command or compiler
wrapper.
...
There are no reported issues about ccache producing broken object
files reproducibly. That doesn’t mean it can’t happen, so if you find
a repeatable case, please report it.
power failure is not listed ...
--
MST
- Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files, (continued)
- Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files, Peter Maydell, 2013/05/22
- Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files, Paolo Bonzini, 2013/05/22
- Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files, Michael S. Tsirkin, 2013/05/22
- Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files, Paolo Bonzini, 2013/05/22
- Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files, Michael S. Tsirkin, 2013/05/22
- Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files, Paolo Bonzini, 2013/05/22
- Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files, Michael S. Tsirkin, 2013/05/22
- Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files, Paolo Bonzini, 2013/05/22
- Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files, Michael S. Tsirkin, 2013/05/22
- Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files, Paolo Bonzini, 2013/05/22
- Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files,
Michael S. Tsirkin <=
- Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files, Blue Swirl, 2013/05/25
- Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files, Michael S. Tsirkin, 2013/05/26
- Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files, Peter Maydell, 2013/05/26
- Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files, Michael S. Tsirkin, 2013/05/26
- Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files, Stefan Weil, 2013/05/26
- Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files, Michael S. Tsirkin, 2013/05/26
- Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files, Peter Maydell, 2013/05/26
- Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files, Michael S. Tsirkin, 2013/05/26
- Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files, Blue Swirl, 2013/05/26
- Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files, Michael S. Tsirkin, 2013/05/26