[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:27:26 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=249070

--- Comment #1 from Nick Briggs <nicholas.h.briggs at gmail.com> ---
In case it helps, it's using the generic "ld":

$ clang -### -o bt-clang bt.c -lexecinfo
FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on LLVM
8.0.1)
Target: i386-unknown-freebsd12.1
Thread model: posix
InstalledDir: /usr/bin
 "/usr/bin/clang" "-cc1" "-triple" "i386-unknown-freebsd12.1" "-emit-obj"
"-mrelax-all" "-disable-free" "-disable-llvm-verifier" "-discard-value-names"
"-main-file-name" "bt.c" "-mrelocation-model" "static" "-mthread-model" "posix"
"-mdisable-fp-elim" "-masm-verbose" "-mconstructor-aliases" "-fuse-init-array"
"-target-cpu" "i486" "-dwarf-column-info" "-debugger-tuning=gdb"
"-resource-dir" "/usr/lib/clang/8.0.1" "-fdebug-compilation-dir" "/var/tmp"
"-ferror-limit" "19" "-fmessage-length" "159" "-fobjc-runtime=gnustep"
"-fdiagnostics-show-option" "-fcolor-diagnostics" "-o" "/tmp/bt-061448.o" "-x"
"c" "bt.c" "-faddrsig"
 "/usr/bin/ld" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld-elf.so.1"
"--hash-style=both" "--enable-new-dtags" "-m" "elf_i386_fbsd" "-o" "bt-clang"
"/usr/lib/crt1.o" "/usr/lib/crti.o" "/usr/lib/crtbegin.o" "-L/usr/lib"
"/tmp/bt-061448.o" "-lexecinfo" "-lgcc" "--as-needed" "-lgcc_s"
"--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed"
"/usr/lib/crtend.o" "/usr/lib/crtn.o"
$ 
$ /usr/bin/ld --version
LLD 8.0.1 (FreeBSD 366581-1200008) (compatible with GNU linkers)
$

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list