Home | History | Annotate | Download | only in app

Lines Matching refs:crash

72 	reporting, bugReporting, crash, crashKey, _, _, _, err := needReport(c, typ, state, bug)
76 rep, err := createBugReport(c, bug, crash, crashKey, bugReporting, reporting.Config)
85 reporting *Reporting, bugReporting *BugReporting, crash *Crash,
122 crash, crashKey, err = findCrashForBug(c, bug)
128 if reporting.Config.NeedMaintainers() && len(crash.Maintainers) == 0 {
193 func createBugReport(c context.Context, bug *Bug, crash *Crash, crashKey *datastore.Key,
199 crashLog, _, err := getText(c, textCrashLog, crash.Log)
206 report, _, err := getText(c, textCrashReport, crash.Report)
213 reproC, _, err := getText(c, textReproC, crash.ReproC)
217 reproSyz, _, err := getText(c, textReproSyz, crash.ReproSyz)
224 if len(crash.ReproOpts) != 0 {
225 fmt.Fprintf(buf, "#%s\n", crash.ReproOpts)
230 build, err := loadBuild(c, bug.Namespace, crash.BuildID)
247 LogLink: externalLink(c, textCrashLog, crash.Log),
249 ReportLink: externalLink(c, textCrashReport, crash.Report),
250 Maintainers: crash.Maintainers,
264 ReproCLink: externalLink(c, textReproC, crash.ReproC),
266 ReproSyzLink: externalLink(c, textReproSyz, crash.ReproSyz),
455 // Rememeber that we've reported this crash.
456 crash := new(Crash)
457 crashKey := datastore.NewKey(c, "Crash", "", cmd.CrashID, bugKey)
458 if err := datastore.Get(c, crashKey, crash); err != nil {
459 return false, internalError, fmt.Errorf("failed to get reported crash %v: %v",
462 crash.Reported = now
463 if _, err := datastore.Put(c, crashKey, crash); err != nil {
464 return false, internalError, fmt.Errorf("failed to put reported crash %v: %v",
638 []*Crash, []*datastore.Key, error) {
639 var crashes []*Crash
640 keys, err := datastore.NewQuery("Crash").
653 func findCrashForBug(c context.Context, bug *Bug) (*Crash, *datastore.Key, error) {
662 crash, key := crashes[0], keys[0]
664 if crash.ReproC == 0 {
665 log.Errorf(c, "bug '%v': has C repro, but crash without C repro", bug.Title)
668 if crash.ReproSyz == 0 {
669 log.Errorf(c, "bug '%v': has syz repro, but crash without syz repro", bug.Title)
672 if crash.Report == 0 {
673 log.Errorf(c, "bug '%v': has report, but crash without report", bug.Title)
676 return crash, key, nil