Re: [PATCH] asan testsuite (take 3)

2012-11-16 Thread Ian Lance Taylor
On Fri, Nov 16, 2012 at 2:06 AM, Jakub Jelinek wrote: > > Haven't studied libbacktrace too much, can it provide right now > just function name or function name and file:line info too? Yes. backtrace_syminfo reads the symbol table to map a PC value to a symbol name. backtrace_pcinfo reads the de

Re: [PATCH] asan testsuite (take 3)

2012-11-16 Thread Jakub Jelinek
On Thu, Nov 15, 2012 at 05:01:49PM -0800, Andrew Pinski wrote: > All of these tests failure for me because my addr2line is too old and > does not support dwarf4. Can we move over to using libbacktrace in > libsanitzer instead of depending on addr2line here? The problem is that addr2line doesn't f

Re: [PATCH] asan testsuite (take 3)

2012-11-15 Thread Konstantin Serebryany
On Thu, Nov 15, 2012 at 5:01 PM, Andrew Pinski wrote: > On Wed, Nov 14, 2012 at 2:59 PM, Jakub Jelinek wrote: >> On Wed, Nov 14, 2012 at 11:12:05AM -0800, Mike Stump wrote: >>> On Nov 14, 2012, at 8:22 AM, Jakub Jelinek wrote: >>> > On Wed, Nov 14, 2012 at 12:11:13PM +0100, Jakub Jelinek wrote:

Re: [PATCH] asan testsuite (take 3)

2012-11-15 Thread Andrew Pinski
On Wed, Nov 14, 2012 at 2:59 PM, Jakub Jelinek wrote: > On Wed, Nov 14, 2012 at 11:12:05AM -0800, Mike Stump wrote: >> On Nov 14, 2012, at 8:22 AM, Jakub Jelinek wrote: >> > On Wed, Nov 14, 2012 at 12:11:13PM +0100, Jakub Jelinek wrote: >> >> Anyway, once asan_symbolize actually symbolizes the ou

Re: [PATCH] asan testsuite (take 3)

2012-11-14 Thread Jakub Jelinek
On Wed, Nov 14, 2012 at 11:12:05AM -0800, Mike Stump wrote: > On Nov 14, 2012, at 8:22 AM, Jakub Jelinek wrote: > > On Wed, Nov 14, 2012 at 12:11:13PM +0100, Jakub Jelinek wrote: > >> Anyway, once asan_symbolize actually symbolizes the output, we could use > >> something like: > >> /* { dg-output

Re: [PATCH] asan testsuite (take 3)

2012-11-14 Thread Jack Howarth
On Wed, Nov 14, 2012 at 11:12:05AM -0800, Mike Stump wrote: > On Nov 14, 2012, at 8:22 AM, Jakub Jelinek wrote: > > On Wed, Nov 14, 2012 at 12:11:13PM +0100, Jakub Jelinek wrote: > >> Anyway, once asan_symbolize actually symbolizes the output, we could use > >> something like: > >> /* { dg-output

Re: [PATCH] asan testsuite (take 3)

2012-11-14 Thread Mike Stump
On Nov 14, 2012, at 8:22 AM, Jakub Jelinek wrote: > On Wed, Nov 14, 2012 at 12:11:13PM +0100, Jakub Jelinek wrote: >> Anyway, once asan_symbolize actually symbolizes the output, we could use >> something like: >> /* { dg-output "ERROR: AddressSanitizer stack-buffer-overflow.*" } */ >> /* { dg-outp

[PATCH] asan testsuite (take 3)

2012-11-14 Thread Jakub Jelinek
On Wed, Nov 14, 2012 at 12:11:13PM +0100, Jakub Jelinek wrote: > Anyway, once asan_symbolize actually symbolizes the output, we could use > something like: > /* { dg-output "ERROR: AddressSanitizer stack-buffer-overflow.*" } */ > /* { dg-output "#0 0x\[0-9a-f\]+ (in _*(interceptor_|)memcmp > |