[PR #30] [CLOSED] Fix address resolution issue with -s option #49

Open
opened 2026-01-31 21:29:32 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/qemu/qemu/pull/30
Author: @quantumdude836
Created: 10/25/2015
Status: Closed

Base: masterHead: bugfixes


📝 Commits (1)

  • 0e874f2 Fix address resolution issue with -s option

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 qemu-char.c (+1 -0)

📄 Description

In qemu_chr_parse_socket, port is copied to addr, but has_port is not set, so port isn't copied in future qapi_copy_SocketAddress calls. This results in an "address resolution failed for ::" message when using the -s option (or using -gdb tcp::<port>, i.e. not specifying a hostname).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/qemu/qemu/pull/30 **Author:** [@quantumdude836](https://github.com/quantumdude836) **Created:** 10/25/2015 **Status:** ❌ Closed **Base:** `master` ← **Head:** `bugfixes` --- ### 📝 Commits (1) - [`0e874f2`](https://github.com/qemu/qemu/commit/0e874f2a19bda296e16341caa908841ca0307aa1) Fix address resolution issue with `-s` option ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `qemu-char.c` (+1 -0) </details> ### 📄 Description In `qemu_chr_parse_socket`, `port` is copied to `addr`, but `has_port` is not set, so `port` isn't copied in future `qapi_copy_SocketAddress` calls. This results in an "address resolution failed for ::" message when using the `-s` option (or using `-gdb tcp::<port>`, i.e. not specifying a hostname). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 21:29:32 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/qemu#49