mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-23 11:29:46 +00:00
pkg/instance: extend debug output on syzkaller make error
For debugging of: https://groups.google.com/forum/#!topic/syzkaller-bugs/2lgvlHd8t1c
This commit is contained in:
parent
1128418284
commit
73964a9b3a
@ -83,7 +83,13 @@ func (env *env) BuildSyzkaller(repo, commit string) error {
|
||||
"CFLAGS=-fpermissive -w",
|
||||
)
|
||||
if _, err := osutil.Run(time.Hour, cmd); err != nil {
|
||||
return fmt.Errorf("syzkaller build failed: %v", err)
|
||||
goEnvCmd := osutil.Command("go", "env")
|
||||
goEnvCmd.Dir = cfg.Syzkaller
|
||||
goEnvCmd.Env = append(append([]string{}, os.Environ()...), "GOPATH="+cfg.Syzkaller[:srcIndex])
|
||||
goEnvOut, goEnvErr := osutil.Run(time.Hour, goEnvCmd)
|
||||
gitStatusOut, gitStatusErr := osutil.RunCmd(time.Hour, cfg.Syzkaller, "git", "status")
|
||||
return fmt.Errorf("syzkaller build failed: %v\ngo env (err=%v)\n%s\ngit status (err=%v)\n%s",
|
||||
err, goEnvErr, goEnvOut, gitStatusErr, gitStatusOut)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user