forked from OSchip/llvm-project
[asan] Fix asan_symbolize.py handling of non-existing paths
llvm-svn: 248962
This commit is contained in:
parent
819f7127c0
commit
25c58d124b
|
@ -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:
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue