Date: Wed, 02 Sep 2020 21:20:36 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 249070] Using backtrace() from libexecinfo causes program to fail with "libunwind: EHHeaderParser::decodeTableEntry: bad fde: CIE ID is not zero" Message-ID: <bug-249070-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D249070 Bug ID: 249070 Summary: Using backtrace() from libexecinfo causes program to fail with "libunwind: EHHeaderParser::decodeTableEntry: bad fde: CIE ID is not zero" Product: Base System Version: 12.1-RELEASE Hardware: i386 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: nicholas.h.briggs@gmail.com This basic program #include <stdlib.h> #include <execinfo.h> int main(int argc, char *argv[]) { void *addrlist[20]; int n; n =3D backtrace(&(addrlist[0]), 20); exit(n); } fails: $ clang -o bt-clang bt.c -lexecinfo $ ./bt-clang libunwind: EHHeaderParser::decodeTableEntry: bad fde: CIE ID is not zero $ ldd ./bt-clang ./bt-clang: libexecinfo.so.1 =3D> /usr/lib/libexecinfo.so.1 (0x20443000) libc.so.7 =3D> /lib/libc.so.7 (0x20447000) libelf.so.2 =3D> /lib/libelf.so.2 (0x205d9000) libgcc_s.so.1 =3D> /lib/libgcc_s.so.1 (0x205f2000) $=20 The results seem to be independent of the compiler used -- * gcc (FreeBSD Ports Collection) 9.3.0 * FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on LLVM 8.0.1) * clang version 12.0.0 Target: i386-portbld-freebsd12.1 $ uname -a FreeBSD flap 12.1-RELEASE-p8 FreeBSD 12.1-RELEASE-p8 GENERIC i386 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-249070-227>