[Bug 257081] libunwind fails in Ceph test unittest_back_trace

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 10 Jul 2021 11:31:01 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257081

--- Comment #2 from Dimitry Andric <dim_at_FreeBSD.org> ---
Hm, this is interesting, as I cannot reproduce this at all:

% cat bt.c
#include <execinfo.h>

int main(void)
{
  void *addrlist[100];
  backtrace(addrlist, 100);
  return 0;
}

% cc -g bt.c -o bt -lexecinfo

(I had pulled the latest sources and rebuilt lib/libgcc_s)

% LD_LIBRARY_PATH=/usr/obj/usr/src/amd64.amd64/lib/libgcc_s gdb ./bt
GNU gdb (GDB) 10.2 [GDB v10.2 for FreeBSD]
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-portbld-freebsd14.0".
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 ./bt...
(gdb) r
Starting program: /share/dim/src/llvm/bugs/bug257081/bt
[Inferior 1 (process 1612) exited normally]
(gdb) q

Can you show me how you've built the example program? In particular, can you
show me output of the compilation command(s) with the -v option added?

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Sat Jul 10 2021 - 11:31:01 UTC

Original text of this message