On Sat, Mar 15, 2014 at 10:50 AM, Alexander Potapenko
<[email protected]> 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/bin was a standard build, and lacks any instrumentation
like Asan and UBsan.
> What happens if you invoke the script as 'python asan_symbolize.py'?
Here are the two results:
$ /usr/local/bin/python /usr/local/bin/asan_symbolize.py
File "/usr/local/bin/asan_symbolize.py", line 69
print ' '.join(cmd)
^
SyntaxError: invalid syntax
$ /usr/bin/python /usr/local/bin/asan_symbolize.py
^C
So it looks like something is broken with my build of 3.3.
> You'll also need to redirect stderr into stdout (2>&1), because ASan prints
> the reports into stderr.
Ah, right... I forgot about that. Thanks.
Thanks for the help. (Would you know what I should do next, before I
head over to the Stack Overflow).
Jeff
> On Mar 15, 2014 6:17 PM, <[email protected]> wrote:
>>
>> 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):
>> if not os.path.exists(self.symbolizer_path):
>> return None
>> cmd = [self.symbolizer_path,
>> '--use-symbol-table=true',
>> '--demangle=%s' % demangle,
>> '--functions=true',
>> '--inlining=true']
>> if DEBUG:
>> print ' '.join(cmd)
>> return subprocess.Popen(cmd, stdin=subprocess.PIPE,
>> stdout=subprocess.PIPE)
>>
>> The odd thing is DEBUG=false (and I'm not changing it).
>>
>> If I comment out the:
>>
>> if DEBUG:
>> print ' '.join(cmd)
>>
>> Then the issue moves down the line to line 81:
>>
>> $ make | asan_symbolize.py
>> File "/usr/local/bin/asan_symbolize.py", line 81
>> print symbolizer_input
>> ^
>> Which is:
>>
>> if DEBUG:
>> print symbolizer_input
>>
>> Changing the declaration of DEBUG to DEBUG=0 does not help; and deleting
>> the declaration of DEBUG does not help.
>>
>> Any ideas on how to proceed?
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.