ctfconvert broken for C++ objects?

David Chisnall theraven at FreeBSD.org
Thu Feb 20 17:24:55 UTC 2014


We're likely to keep hitting these.  Ideally, we should replace the libdwarf usage in ctfconvert with either the LLVM or LLDB dwarf parsing, which is getting to be quite mature now and can handle complex encodings.  The DWARF5 spec is due out this year and LLVM is already implementing (disabled by default) several of the proposed extensions to DWARF4 that are likely to make it into DWARF5.  

David

On 20 Feb 2014, at 00:16, Justin T. Gibbs <gibbs at FreeBSD.org> wrote:

> I noticed that ctfmerge was warning about missing CTF data when compiling “PROG_CXX” programs.  I tracked this down to missing ctfconvert calls when compiling C++ objects.  Unfortunately, ctfconvert segfaults in libdwarf on all of the C++ code I tried.  Attached is a quick hack to avoid the segfault, but I’m hoping someone here with more dwarf experience can point me in the right direction for a real fix.  Is this a known issue?
> 
> I’m testing this on a FreeBSD stable/9 from ~November of last year.
> 
> Thanks,
> Justin
> 
> <ctf_for_c++.diffs>_______________________________________________
> freebsd-toolchain at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
> To unsubscribe, send any mail to "freebsd-toolchain-unsubscribe at freebsd.org"



More information about the freebsd-toolchain mailing list