Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 Sep 2016 22:52:18 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-amd64@FreeBSD.org
Subject:   [Bug 212539] readelf -w consumes a lot of memory with GCC-compiled kernels
Message-ID:  <bug-212539-6@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-212539-6>