[compiler-rt] r367378 - [asan_symbolize] Provide better error message when extracting the UUID of a binary fails

Dan Liew via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 30 17:59:10 PDT 2019


Author: delcypher
Date: Tue Jul 30 17:59:09 2019
New Revision: 367378

URL: http://llvm.org/viewvc/llvm-project?rev=367378&view=rev
Log:
[asan_symbolize] Provide better error message when extracting the UUID of a binary fails

rdar://problem/49476995

Modified:
    compiler-rt/trunk/lib/asan/scripts/asan_symbolize.py

Modified: compiler-rt/trunk/lib/asan/scripts/asan_symbolize.py
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/scripts/asan_symbolize.py?rev=367378&r1=367377&r2=367378&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/scripts/asan_symbolize.py (original)
+++ compiler-rt/trunk/lib/asan/scripts/asan_symbolize.py Tue Jul 30 17:59:09 2019
@@ -756,7 +756,9 @@ def get_uuid_from_binary(path_to_binary,
     uuid = split_uuid_line[1]
     break
   if uuid is None:
-    raise GetUUIDFromBinaryException('Failed to retrieve UUID')
+    logging.error('Failed to retrieve UUID from binary {}'.format(path_to_binary))
+    logging.error('otool output was:\n{}'.format(output_str))
+    raise GetUUIDFromBinaryException('Failed to retrieve UUID from binary "{}"'.format(path_to_binary))
   else:
     # Update cache
     _get_uuid_from_binary_cache[cache_key] = uuid




More information about the llvm-commits mailing list