[Bug 249070] Using backtrace() from libexecinfo causes program to fail with "libunwind: EHHeaderParser::decodeTableEntry: bad fde: CIE ID is not zero"
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Sep 2 21:20:37 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=249070
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 at FreeBSD.org
Reporter: nicholas.h.briggs at gmail.com
This basic program
#include <stdlib.h>
#include <execinfo.h>
int main(int argc, char *argv[])
{
void *addrlist[20];
int n;
n = 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 => /usr/lib/libexecinfo.so.1 (0x20443000)
libc.so.7 => /lib/libc.so.7 (0x20447000)
libelf.so.2 => /lib/libelf.so.2 (0x205d9000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x205f2000)
$
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
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list