[Lldb-commits] [lldb] r363172 - [lldb] Ignore null frames in lldb.macosx crashlog

Stefan Granitz via lldb-commits lldb-commits at lists.llvm.org
Wed Jun 12 07:46:37 PDT 2019


Author: stefan.graenitz
Date: Wed Jun 12 07:46:37 2019
New Revision: 363172

URL: http://llvm.org/viewvc/llvm-project?rev=363172&view=rev
Log:
[lldb] Ignore null frames in lldb.macosx crashlog

Modified:
    lldb/trunk/examples/python/crashlog.py

Modified: lldb/trunk/examples/python/crashlog.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/examples/python/crashlog.py?rev=363172&r1=363171&r2=363172&view=diff
==============================================================================
--- lldb/trunk/examples/python/crashlog.py (original)
+++ lldb/trunk/examples/python/crashlog.py Wed Jun 12 07:46:37 2019
@@ -102,6 +102,7 @@ class CrashLog(symbolication.Symbolicato
     app_backtrace_regex = re.compile(
         '^Application Specific Backtrace ([0-9]+)([^:]*):(.*)')
     frame_regex = re.compile('^([0-9]+)\s+(.+?)\s+(0x[0-9a-fA-F]{7}[0-9a-fA-F]+) +(.*)')
+    null_frame_regex = re.compile('^([0-9]+)\s+\?\?\?\s+(0{7}0+) +(.*)')
     image_regex_uuid = re.compile(
         '(0x[0-9a-fA-F]+)[-\s]+(0x[0-9a-fA-F]+)\s+[+]?(.+?)\s+(\(.+\))?\s?(<([-0-9a-fA-F]+)>)? (.*)')
     empty_line_regex = re.compile('^$')
@@ -468,6 +469,9 @@ class CrashLog(symbolication.Symbolicato
             elif parse_mode == PARSE_MODE_THREAD:
                 if line.startswith('Thread'):
                     continue
+                if self.null_frame_regex.search(line):
+                    print('warning: thread parser ignored null-frame: "%s"' % line)
+                    continue
                 frame_match = self.frame_regex.search(line)
                 if frame_match:
                     ident = frame_match.group(2)




More information about the lldb-commits mailing list