mirror of
https://github.com/reactos/syzkaller.git
synced 2025-02-04 18:56:16 +00:00
syz-manager: symbolize repro reports
We now take reports from repro and they are not symbolized. Symbolize them.
This commit is contained in:
parent
bc44358170
commit
8d1e709552
@ -517,16 +517,7 @@ func (mgr *Manager) saveCrash(crash *Crash) {
|
||||
}
|
||||
mgr.mu.Unlock()
|
||||
|
||||
if len(crash.text) > 0 {
|
||||
<-allSymbolsReady
|
||||
symbolized, err := report.Symbolize(mgr.cfg.Vmlinux, crash.text, allSymbols)
|
||||
if err != nil {
|
||||
Logf(0, "failed to symbolize crash: %v", err)
|
||||
} else {
|
||||
crash.text = symbolized
|
||||
}
|
||||
}
|
||||
|
||||
crash.text = mgr.symbolizeReport(crash.text)
|
||||
if mgr.dash != nil {
|
||||
var maintainers []string
|
||||
guiltyFile := report.ExtractGuiltyFile(crash.text)
|
||||
@ -627,6 +618,7 @@ func (mgr *Manager) saveFailedRepro(desc string) {
|
||||
}
|
||||
|
||||
func (mgr *Manager) saveRepro(res *repro.Result) {
|
||||
res.Report = mgr.symbolizeReport(res.Report)
|
||||
dir := filepath.Join(mgr.crashdir, hash.String([]byte(res.Desc)))
|
||||
|
||||
opts := fmt.Sprintf("# %+v\n", res.Opts)
|
||||
@ -684,6 +676,19 @@ func (mgr *Manager) saveRepro(res *repro.Result) {
|
||||
}
|
||||
}
|
||||
|
||||
func (mgr *Manager) symbolizeReport(text []byte) []byte {
|
||||
if len(text) == 0 {
|
||||
return nil
|
||||
}
|
||||
<-allSymbolsReady
|
||||
symbolized, err := report.Symbolize(mgr.cfg.Vmlinux, text, allSymbols)
|
||||
if err != nil {
|
||||
Logf(0, "failed to symbolize report: %v", err)
|
||||
return text
|
||||
}
|
||||
return symbolized
|
||||
}
|
||||
|
||||
func (mgr *Manager) minimizeCorpus() {
|
||||
if mgr.cfg.Cover && len(mgr.corpus) != 0 {
|
||||
var cov []cover.Cover
|
||||
|
Loading…
x
Reference in New Issue
Block a user