From owner-freebsd-amd64@freebsd.org Fri Sep 9 22:52:18 2016 Return-Path: Delivered-To: freebsd-amd64@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8F11BBD4920 for ; Fri, 9 Sep 2016 22:52:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 66C069AB for ; Fri, 9 Sep 2016 22:52:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u89MqIYA027045 for ; Fri, 9 Sep 2016 22:52:18 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-amd64@FreeBSD.org Subject: [Bug 212539] readelf -w consumes a lot of memory with GCC-compiled kernels Date: Fri, 09 Sep 2016 22:52:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 09 Sep 2016 23:35:43 +0000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Sep 2016 22:52:18 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212539 Bug ID: 212539 Summary: readelf -w consumes a lot of memory with GCC-compiled kernels Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: markj@FreeBSD.org CC: freebsd-amd64@FreeBSD.org CC: freebsd-amd64@FreeBSD.org I tried compiling a kernel with both gcc48 and gcc6 and hit the same problem with both. Running readelf -w against kernel.full causes it to emit a bunch= of errors: $ readelf -w kernel.full >/dev/null readelf: dwarf_loclist_form_expr_b: Invalid location expression [_dwarf_loc_fill_locdesc(632)] readelf: dwarf_loclist_form_expr_b: Invalid location expression [_dwarf_loc_fill_locdesc(632)] readelf: dwarf_loclist_form_expr_b: Invalid location expression [_dwarf_loc_fill_locdesc(632)] readelf: dwarf_loclist_form_expr_b: Invalid location expression [_dwarf_loc_fill_locdesc(632)] readelf: dwarf_loclist_form_expr_b: Invalid location expression [_dwarf_loc_fill_locdesc(632)] readelf: dwarf_loclist_form_expr_b: Invalid location expression [_dwarf_loc_fill_locdesc(632)] readelf: dwarf_loclist_form_expr_b: Invalid location expression [_dwarf_loc_fill_locdesc(632)] and it seemingly runs forever while consuming ever-increasing amounts of memory: 2558 markj 103 0 3615M 3591M CPU0 0 2:07 97.33% readelf -w kernel.full --=20 You are receiving this mail because: You are on the CC list for the bug.=