Dear Maintainer,
Consider this transcript:
-- >8 --
$ gdb --args out/cmd/csplit a b
GNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from out/cmd/csplit...
(gdb) b main
Breakpoint 1 at 0x22e0: file cmd/csplit.cpp, line 107.
(gdb) run
Starting program: /home/nabijaczleweli/code/voreutils/out/cmd/csplit a b
Breakpoint 1, main (argc=3, argv=0x7fffffffe358) at cmd/csplit.cpp:107
107 int main(int argc, const char * const * argv) {
(gdb) b memcpy
Breakpoint 2 at gnu-indirect-function resolver at 0x7ffff7c9d790 (2 locations)
(gdb) cont
Continuing.
/build/gdb-Nav6Es/gdb-10.1/gdb/elfread.c:1017: internal-error: void elf_gnu_ifunc_resolver_return_stop(breakpoint*): Assertion `b->loc->next == NULL' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) y
This is a bug, please report it. For instructions, see:
<https://www.gnu.org/software/gdb/bugs/>.
/build/gdb-Nav6Es/gdb-10.1/gdb/elfread.c:1017: internal-error: void elf_gnu_ifunc_resolver_return_stop(breakpoint*): Assertion `b->loc->next == NULL' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) y
Aborted (core dumped)
-- >8 --
Core-dump attached, as is the binary, intermediate object, and source.
Built with clang trunk and linked with lld, both version 1:16.0-57~exp1~20220829175000.12.
Best,
наб