[asan_symbolize] Provide better error message when extracting the UUID of a binary...
authorDan Liew <dan@su-root.co.uk>
Wed, 31 Jul 2019 00:59:09 +0000 (00:59 +0000)
committerDan Liew <dan@su-root.co.uk>
Wed, 31 Jul 2019 00:59:09 +0000 (00:59 +0000)
rdar://problem/49476995

llvm-svn: 367378

compiler-rt/lib/asan/scripts/asan_symbolize.py

index 28995bc..37defae 100755 (executable)
@@ -756,7 +756,9 @@ def get_uuid_from_binary(path_to_binary, arch=None):
     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