https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119727

--- Comment #10 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Jakub Jelinek
<ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:c3c451bcb0d1900068cfe9d1bb3cb76fce95284b

commit r13-9605-gc3c451bcb0d1900068cfe9d1bb3cb76fce95284b
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Sat Apr 12 13:15:13 2025 +0200

    driver: Fix up -freport-bug for ASLR [PR119727]

    With --enable-host-pie -freport-bug almost never prepares preprocessed
    source and instead emits
    The bug is not reproducible, so it is likely a hardware or OS problem.
    message even for bogus which are 100% reproducible.
    The way -freport-bug works is that it reruns it 3 times, capturing stdout
    and stderr from each and then tries to compare the outputs in between
    different runs.
    The libbacktrace emitted hexadecimal addresses at the start of the lines
    can differ between runs due to ASLR, either of the PIE executable, or
    even if not PIE if there is some frame with e.g. libc function (say
    crash in strlen/memcpy etc.).

    The following patch fixes it by ignoring such differences at the start of
    the lines.

    2025-04-12  Jakub Jelinek  <ja...@redhat.com>

            PR driver/119727
            * gcc.cc (files_equal_p): Rewritten using fopen/fgets/fclose
instead
            of open/fstat/read/close.  At the start of lines, ignore lowercase
            hexadecimal addresses followed by space.

    (cherry picked from commit 8b2ceb421f045ee8b39d7941f39f1e9a67217583)

Reply via email to