From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16588 invoked by alias); 27 Feb 2019 09:39:53 -0000 Mailing-List: contact dwz-help@sourceware.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Subscribe: Sender: dwz-owner@sourceware.org Received: (qmail 16351 invoked by uid 48); 27 Feb 2019 09:39:49 -0000 From: "vries at gcc dot gnu.org" To: dwz@sourceware.org Subject: [Bug default/24275] New: hardlink handling leaves temporary file if not file compressed Date: Tue, 01 Jan 2019 00:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: dwz X-Bugzilla-Component: default X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: nobody at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2019-q1/txt/msg00047.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D24275 Bug ID: 24275 Summary: hardlink handling leaves temporary file if not file compressed Product: dwz Version: unspecified Status: NEW Severity: normal Priority: P2 Component: default Assignee: nobody at sourceware dot org Reporter: vries at gcc dot gnu.org CC: dwz at sourceware dot org Target Milestone: --- [ Filed before at: - rbc#1625780 - "dwz crashed on s390x and armv7hl and rpmbuild leave s390x.debug.#dwz#" https://bugzilla.redhat.com/show_bug.cgi?id=3D1625780 - rbc#1671883 - "dwz fails to remove temporary files if input files are hardlinked" https://bugzilla.redhat.com/show_bug.cgi?id=3D1671883 ] Consider a hello world executable a.out: ... $ gcc -g hello.c ... with a hardlink b.out: ... $ ln a.out b.out ... Running dwz once (with hardlink support) compresses them: ... $ dwz -h a.out b.out ... and trying once more, doesn't compress them further: ... $ dwz -h a.out b.out dwz: a.out: DWARF compression not beneficial - old size 3452 new size 3452 ... but leaves a temporary file: ... $ ls a.out* b.out* a.out b.out b.out.#dwz#.uiIcPY ... --=20 You are receiving this mail because: You are on the CC list for the bug.