[asan] Fix asan_symbolize.py handling of non-existing paths

llvm-svn: 248962
This commit is contained in:
Evgeniy Stepanov 2015-09-30 23:17:39 +00:00
parent 819f7127c0
commit 25c58d124b
2 changed files with 6 additions and 2 deletions

View File

@ -164,8 +164,8 @@ class Addr2LineSymbolizer(Symbolizer):
file_name = self.pipe.stdout.readline().rstrip()
if is_first_frame:
is_first_frame = False
elif function_name == '??':
assert file_name == '??:0'
elif function_name in ['', '??']:
assert file_name == function_name
break
lines.append((function_name, file_name));
except Exception:

View File

@ -0,0 +1,4 @@
// Test that asan_symbolize does not hang when provided with an non-existing
// path.
// RUN: echo '#0 0xabcdabcd (%T/bad/path+0x1234)' | %asan_symbolize | FileCheck %s
// CHECK: #0 0xabcdabcd