Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix problem with ip concat with warnning messages #4451

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

h0rac
Copy link

@h0rac h0rac commented Jan 20, 2024


Before sending a pull request, please review Contribution Guidelines:
https://github.com/google/syzkaller/blob/master/docs/contributing.md


2024/01/20 18:21:20 getting IP of /home/xxxx/tools/syzkaller/workdir/instance-0/1705771207333434046/syzkaller.vmx
2024/01/20 18:22:34 VM /home/xxxx/tools/syzkaller/workdir/instance-0/1705771207333434046/syzkaller.vmx has IP: Warning: program compiled against libxml 210 using older 209

Solve problem with adding warning messages to extracted IP address of vmware machine

Copy link
Collaborator

@a-nogikh a-nogikh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for sharing the fix!

Please also note the ci / aux check failures. Specifically, there are rules that determine how a commit title/description should look like:

https://github.com/google/syzkaller/blob/master/docs/contributing.md#commits

@@ -119,11 +119,21 @@ func (inst *instance) boot() error {
if inst.debug {
log.Logf(0, "getting IP of %v", inst.vmx)
}
ip, err := osutil.RunCmd(5*time.Minute, "", "vmrun", "getGuestIPAddress", inst.vmx, "-wait")
ipCmd := exec.Command("vmrun", "getGuestIPAddress", inst.vmx, "-wait")
ipOutput, err := ipCmd.CombinedOutput()
Copy link
Collaborator

@a-nogikh a-nogikh Jan 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the tool print the warning to stderr?

If yes, it might be easier to take the stdout output, i.e. ip, err := ipCmd.Output() instead of ipCmd.CombinedOutput(). Then you won't need to parse out the address.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants