Lines Matching refs:crash

291 	crash *Crash  member
331 for crash := range pendingRepro {
332 if reproducing[crash.Title] {
335 delete(pendingRepro, crash)
336 if !mgr.needRepro(crash) {
339 log.Logf(1, "loop: add to repro queue '%v'", crash.Title)
340 reproducing[crash.Title] = true
341 reproQueue = append(reproQueue, crash)
356 crash := reproQueue[last]
363 log.Logf(1, "loop: starting repro of '%v' on instances %+v", crash.Title, vmIndexes)
365 res, stats, err := repro.Run(crash.Output, mgr.cfg, mgr.reporter, mgr.vmPool, vmIndexes)
366 reproDone <- &ReproResult{vmIndexes, crash.Title, res, stats, err, crash.hub}
375 crash, err := mgr.runInstance(idx)
376 runDone <- &RunResult{idx, crash, err}
392 log.Logf(1, "loop: instance %v finished, crash=%v", res.idx, res.crash != nil)
400 if shutdown != nil && res.crash != nil {
401 needRepro := mgr.saveCrash(res.crash)
403 log.Logf(1, "loop: add pending repro for '%v'", res.crash.Title)
404 pendingRepro[res.crash] = true
433 case crash := <-mgr.hubReproQueue:
435 pendingRepro[crash] = true
573 crash := &Crash{
578 return crash, nil
581 func (mgr *Manager) emailCrash(crash *Crash) {
585 args := []string{"-s", "syzkaller: " + crash.Title}
590 cmd.Stdin = bytes.NewReader(crash.Report.Report)
596 func (mgr *Manager) saveCrash(crash *Crash) bool {
597 if crash.Suppressed {
598 log.Logf(0, "vm-%v: suppressed crash %v", crash.vmIndex, crash.Title)
603 if crash.Corrupted {
606 log.Logf(0, "vm-%v: crash: %v%v", crash.vmIndex, crash.Title, corrupted)
607 if err := mgr.reporter.Symbolize(crash.Report); err != nil {
613 if !mgr.crashTypes[crash.Title] {
614 mgr.crashTypes[crash.Title] = true
622 Title: crash.Title,
623 Corrupted: crash.Corrupted,
624 Maintainers: crash.Maintainers,
625 Log: crash.Output,
626 Report: crash.Report.Report,
638 sig := hash.Hash([]byte(crash.Title))
642 …if err := osutil.WriteFile(filepath.Join(dir, "description"), []byte(crash.Title+"\n")); err != ni…
655 go mgr.emailCrash(crash)
664 osutil.WriteFile(filepath.Join(dir, fmt.Sprintf("log%v", oldestI)), crash.Output)
668 if len(crash.Report.Report) > 0 {
669 osutil.WriteFile(filepath.Join(dir, fmt.Sprintf("report%v", oldestI)), crash.Report.Report)
672 return mgr.needLocalRepro(crash)
677 func (mgr *Manager) needLocalRepro(crash *Crash) bool {
678 if !mgr.cfg.Reproduce || crash.Corrupted {
681 sig := hash.Hash([]byte(crash.Title))
694 func (mgr *Manager) needRepro(crash *Crash) bool {
695 if crash.hub {
699 return mgr.needLocalRepro(crash)
703 Title: crash.Title,
704 Corrupted: crash.Corrupted,