[Bug 212539] readelf -w consumes a lot of memory with GCC-compiled kernels

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Sep 9 22:52:18 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212539

            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 at FreeBSD.org
          Reporter: markj at FreeBSD.org
                CC: freebsd-amd64 at FreeBSD.org
                CC: freebsd-amd64 at 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

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-amd64 mailing list