pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: gcc6 with sanitizers



On Thu, Dec 01, 2016 at 11:38:53AM +0100, Carsten Kunze wrote:
> coypu%SDF.ORG@localhost wrote:
> 
> > (Assuming from context you mean for NetBSD), christos had to do a bunch of
> > stuff
> > to make it work on netbsd base, I think you'll need to replicate it:
> > http://freshbsd.org/search?committer=christos&q=sanitizer
> > 
> > seems to be "try to use the same netbsd.h and netbsd-elf.h as netbsd base
> > does,
> > in gcc/config"
> 
> Ah, thank you!  This means that the currently suggested way to use sanitizers is to use the the base system gcc and not a pkgsrc variant?
> 
> There I have the problem that the symbolizer somehow doesn't work.  In some cases the the source code line of a problem is printed but in the backtrace are only hex offsets (instead of filename + line number).  How to make this work?
> 
> Carsten

hmm, I'm able to see line numbers in the backtrace (no ASAN, though)
maybe it requires -g as a flag and no stripping? (file(1) can tell
if something is stripped)


Home | Main Index | Thread Index | Old Index