Re: allocator_may_return_null=1?

2014-03-15 Thread Alexander Potapenko
This is an env variable ASAN_OPTIONS= allocator_may_return_null=1 On Mar 15, 2014 9:49 PM, "Jeffrey Walton" wrote: > I ==26311==WARNING: AddressSanitizer failed to allocate 0x7fff > bytes > ==26311==AddressSanitizer's allocator is terminating the process > instead of returning 0 > ==2

allocator_may_return_null=1?

2014-03-15 Thread Jeffrey Walton
I ==26311==WARNING: AddressSanitizer failed to allocate 0x7fff bytes ==26311==AddressSanitizer's allocator is terminating the process instead of returning 0 ==26311==If you don't like this behavior set allocator_may_return_null=1 Is this allocator_may_return_null and environmental vari

Re: asan_symbolize.py: SyntaxError: invalid syntax

2014-03-15 Thread Yuri Gribov
On Sat, Mar 15, 2014 at 7:47 PM, Jeffrey Walton wrote: > Python is brutal for someone who does not know it (I'm a C/C++/ObjC > guy). I'm amazed that basic functionality such as print was broken > between 2 & 3. Imagine if printf stopped working in C99! Oh, don't get me started. After years of Pyt

Issue 275 in address-sanitizer: asan_symbolize.py does not work with Python3

2014-03-15 Thread address-sanitizer
Status: New Owner: Labels: Type-Defect Priority-Medium New issue 275 by noloa...@gmail.com: asan_symbolize.py does not work with Python3 http://code.google.com/p/address-sanitizer/issues/detail?id=275 The fix appears to be very easy: add parenthesis around arguments to 'print'. Its p

Re: asan_symbolize.py: SyntaxError: invalid syntax

2014-03-15 Thread Jeffrey Walton
On Sat, Mar 15, 2014 at 11:40 AM, Yuri Gribov wrote: > I believe llvm_symbolizer expects python2 interpreter. You could try > one of these > * install your Python 3 as /usr/local/bin/python3 to avoid shadowing > default system Python > * explicitly run llvm_symbolizer under Python2 interpreter > *

Re: asan_symbolize.py: SyntaxError: invalid syntax

2014-03-15 Thread Yuri Gribov
I believe llvm_symbolizer expects python2 interpreter. You could try one of these * install your Python 3 as /usr/local/bin/python3 to avoid shadowing default system Python * explicitly run llvm_symbolizer under Python2 interpreter * update asan_symbolizer.py using 2to3 -Y -- You received this m

Re: AddressSanitizer: SEGV on unknown address 0x000000000000...

2014-03-15 Thread Yuri Gribov
> Thanks for the help. Np, glad to help. -Y -- You received this message because you are subscribed to the Google Groups "address-sanitizer" group. To unsubscribe from this group and stop receiving emails from it, send an email to address-sanitizer+unsubscr...@googlegroups.com. For more optio

Re: AddressSanitizer: SEGV on unknown address 0x000000000000...

2014-03-15 Thread Yuri Gribov
On Sat, Mar 15, 2014 at 12:32 PM, Konstantin Serebryany wrote: > We see the stack trace from asan's SEGV handler, so __asan_init was already > called. True, I wonder what could go wrong then? -Y -- You received this message because you are subscribed to the Google Groups "address-sanitizer"

Re: asan_symbolize.py: SyntaxError: invalid syntax

2014-03-15 Thread Jeffrey Walton
On Sat, Mar 15, 2014 at 10:50 AM, Alexander Potapenko wrote: > Which Python version are you using? $ python --version Python 3.3.5 $ which python /usr/local/bin/python It was built from sources because I needed SSL's server name indication (SNI) of Python 3.x. The version installed in /usr/local

Re: asan_symbolize.py: SyntaxError: invalid syntax

2014-03-15 Thread Alexander Potapenko
Which Python version are you using? What happens if you invoke the script as 'python asan_symbolize.py'? You'll also need to redirect stderr into stdout (2>&1), because ASan prints the reports into stderr. On Mar 15, 2014 6:17 PM, wrote: > Hi Gentleman, > > I managed to get myself in more troubl

asan_symbolize.py: SyntaxError: invalid syntax

2014-03-15 Thread noloader
Hi Gentleman, I managed to get myself in more trouble. This time with asan_symbolize.py. $ make | asan_symbolize.py File "/usr/local/bin/asan_symbolize.py", line 69 print ' '.join(cmd) ^ SyntaxError: invalid syntax Here's the relevant snippet: def open_llvm_symbolizer(self)

Re: AddressSanitizer: SEGV on unknown address 0x000000000000...

2014-03-15 Thread noloader
On Saturday, March 15, 2014 3:36:25 AM UTC-4, Yuri Gribov wrote: > > > Does > > anyone have an idea why PC is 0x? > > I think that Asan initialization code (__asan_init) didn't run so > glibc interceptors were not set up. > > > The only un-ordinary > > part was I had to add some of t

Re: AddressSanitizer: SEGV on unknown address 0x000000000000...

2014-03-15 Thread noloader
On Saturday, March 15, 2014 3:36:25 AM UTC-4, Yuri Gribov wrote: > > > Does > > anyone have an idea why PC is 0x? > > I think that Asan initialization code (__asan_init) didn't run so > glibc interceptors were not set up. > > > The only un-ordinary > > part was I had to add some of t

Re: AddressSanitizer: SEGV on unknown address 0x000000000000...

2014-03-15 Thread Konstantin Serebryany
On Sat, Mar 15, 2014 at 11:36 AM, Yuri Gribov wrote: > > Does > > anyone have an idea why PC is 0x? > > I think that Asan initialization code (__asan_init) didn't run so > glibc interceptors were not set up. > > > The only un-ordinary > > part was I had to add some of the sanitizer librar

Re: AddressSanitizer: SEGV on unknown address 0x000000000000...

2014-03-15 Thread Yuri Gribov
> Does > anyone have an idea why PC is 0x? I think that Asan initialization code (__asan_init) didn't run so glibc interceptors were not set up. > The only un-ordinary > part was I had to add some of the sanitizer libraries to LIBS due to > undefined symbols like __asan_report8 when build