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, <[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.
>

-- 
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.

Reply via email to