From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uf7Ju-00010O-N6 for qemu-devel@nongnu.org; Wed, 22 May 2013 07:35:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uf7Jo-0003AS-A0 for qemu-devel@nongnu.org; Wed, 22 May 2013 07:35:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:11392) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uf7Jo-0003AH-28 for qemu-devel@nongnu.org; Wed, 22 May 2013 07:34:56 -0400 Date: Wed, 22 May 2013 14:35:11 +0300 From: "Michael S. Tsirkin" Message-ID: <20130522113510.GA7707@redhat.com> References: <519C8541.6060605@redhat.com> <20130522085219.GF7993@redhat.com> <519C8E6C.3000107@redhat.com> <20130522094210.GA24931@redhat.com> <519CA097.5000804@redhat.com> <20130522105034.GA5643@redhat.com> <519CA33E.9010109@redhat.com> <20130522110922.GC5643@redhat.com> <519CA80F.4090502@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <519CA80F.4090502@redhat.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Peter Maydell , Anthony Liguori , qemu-devel@nongnu.org, Markus Armbruster , Luiz Capitulino , Blue Swirl 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 fo= r > > > configure patches. > >=20 > > 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. >=20 > It doesn't, it leave 0-sized files. (Or at least it didn't last time > power failed during a compilation. :)) >=20 > 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=E2=80=99t mean it can=E2=80=99t hap= pen, so if you find a repeatable case, please report it. power failure is not listed ... --=20 MST