bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug libctf/30013] [2.40 regression] Assertion failed: one_type != two_t


From: cvs-commit at gcc dot gnu.org
Subject: [Bug libctf/30013] [2.40 regression] Assertion failed: one_type != two_type, file libctf/ctf-dedup.c, line 2342, function sort_output_mapping
Date: Fri, 24 Mar 2023 15:03:14 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=30013

--- Comment #5 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The binutils-2_40-branch branch has been updated by Nick Alcock
<nix@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7aa47eafcce45076ea22deda831acad2df19a8b1

commit 7aa47eafcce45076ea22deda831acad2df19a8b1
Author: Nick Alcock <nick.alcock@oracle.com>
Date:   Mon Jan 23 13:11:32 2023 +0000

    libctf: fix assertion failure with no system qsort_r

    If no suitable qsort_r is found in libc, we fall back to an
    implementation in ctf-qsort.c.  But this implementation routinely calls
    the comparison function with two identical arguments. The comparison
    function that ensures that the order of output types is stable is not
    ready for this, misinterprets it as a type appearing more that once (a
    can-never-happen condition) and fails with an assertion failure.

    Fixed, audited for further instances of the same failure (none found)
    and added a no-qsort test to my regular testsuite run.

    libctf/:
            PR libctf/30013
            * ctf-dedup.c (sort_output_mapping): Inputs are always equal to
            themselves.

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]