[lldb-dev] [Bug 13908] New: crashlog.py has wrong pattern for crash reports taken from email/jabber by copy&paste
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Sep 24 05:44:14 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13908
Bug #: 13908
Summary: crashlog.py has wrong pattern for crash reports taken
from email/jabber by copy&paste
Product: lldb
Version: unspecified
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: enhancement
Priority: P
Component: All Bugs
AssignedTo: lldb-dev at cs.uiuc.edu
ReportedBy: aefimov-box at ya.ru
Classification: Unclassified
The problem is in frame_regex patter. It requires to '\t' symbol, but it can be
replaced by space during copy&paste.
--- a/crashlog.py
+++ b/crashlog.py
@@ -54,7 +54,7 @@ class CrashLog(symbolication.Symbolicator):
"""Class that does parses darwin crash logs"""
thread_state_regex = re.compile('^Thread ([0-9]+) crashed with')
thread_regex = re.compile('^Thread ([0-9]+)([^:]*):(.*)')
- frame_regex = re.compile('^([0-9]+) +([^ ]+) *\t(0x[0-9a-fA-F]+) +(.*)')
+ frame_regex = re.compile('^([0-9]+) +([^ ]+) *\t?(0x[0-9a-fA-F]+) +(.*)')
image_regex_uuid = re.compile('(0x[0-9a-fA-F]+)[- ]+(0x[0-9a-fA-F]+)
+[+]?([^ ]+) +([^<]+)<([-0-9a-fA-F]+)> (.*)');
image_regex_no_uuid = re.compile('(0x[0-9a-fA-F]+)[- ]+(0x[0-9a-fA-F]+)
+[+]?([^ ]+) +([^/]+)/(.*)');
empty_line_regex = re.compile('^$')
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the lldb-dev
mailing list