OLD | NEW |
1 package data | 1 package data |
2 | 2 |
3 import ( | 3 import ( |
4 "fmt" | 4 "fmt" |
5 "regexp" | 5 "regexp" |
6 "sort" | 6 "sort" |
7 "strings" | 7 "strings" |
8 | 8 |
9 "go.skia.org/infra/fuzzer/go/common" | 9 "go.skia.org/infra/fuzzer/go/common" |
10 ) | 10 ) |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 | 243 |
244 // extractSkAbortTrace looks for the fatal error string indicative of the SKAbor
t termination | 244 // extractSkAbortTrace looks for the fatal error string indicative of the SKAbor
t termination |
245 // and tries to pull out the stacktrace frame on which it happened. | 245 // and tries to pull out the stacktrace frame on which it happened. |
246 func extractSkAbortTrace(err string) StackTrace { | 246 func extractSkAbortTrace(err string) StackTrace { |
247 st := StackTrace{} | 247 st := StackTrace{} |
248 if match := skAbortStackTraceLine.FindStringSubmatch(err); match != nil
{ | 248 if match := skAbortStackTraceLine.FindStringSubmatch(err); match != nil
{ |
249 st.Frames = append(st.Frames, FullStackFrame(match[1], match[2],
common.UNKNOWN_FUNCTION, safeParseInt(match[3]))) | 249 st.Frames = append(st.Frames, FullStackFrame(match[1], match[2],
common.UNKNOWN_FUNCTION, safeParseInt(match[3]))) |
250 } | 250 } |
251 return st | 251 return st |
252 } | 252 } |
OLD | NEW |