https://bugs.kde.org/show_bug.cgi?id=518482

Paul Floyd <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|REPORTED                    |RESOLVED

--- Comment #1 from Paul Floyd <[email protected]> ---
commit fc84fcf36185f160d288a28771231f925751176f (HEAD -> master, origin/master,
origin/HEAD)
Author: Paul Floyd <[email protected]>
Date:   Fri Apr 3 21:05:50 2026 +0200

    Bug 518482 - FreeBSD: assert in parse_procselfmaps when built with GNU
binutils

    parse_procselfmaps rewritten to not use any hard coded counts.

    Previously the code was counting mappings from sysctl KERN_PROC_VMMAP
    and when it saw the host rx mapping it was saving state for the next
    pass in the loop, which it was assuming would be the rw segment
    mapped to swap.  The counts were hard coded for GCC and clang and
    assumed GCC used ld.bfd and clang used ld.lld. That assumption
    is not safe.

    Now the code uses a lookahead. Something that I had not previously seen
    is that the host RW PT_LOAD can be partially or wholly mapped as swap.
    The lookahead checks for the first rw swap mapping that follows
    an RX file mapping (RW wholly mapped as swap) or an RW file
    mapping (RW partially mapped as swap). The first time that condition
    is met the RW swap mapping will also be recorded as if it were a
    file mapping. The current iteration then skips two kinfo_vmentry
    records rather than one.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to