public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/31502] New: [gdb/testsuite] FAIL: gdb.server/server-connect.exp: tcp6: connect to gdbserver using tcp6:::1
@ 2024-03-16 15:20 vries at gcc dot gnu.org
2024-03-18 7:47 ` [Bug testsuite/31502] " vries at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: vries at gcc dot gnu.org @ 2024-03-16 15:20 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=31502
Bug ID: 31502
Summary: [gdb/testsuite] FAIL: gdb.server/server-connect.exp:
tcp6: connect to gdbserver using tcp6:::1
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: testsuite
Assignee: unassigned at sourceware dot org
Reporter: vries at gcc dot gnu.org
Target Milestone: ---
On aarch64-linux, debian bookworm, I ran into:
...
builtin_spawn
/home/linux/gdb/build/gdb/testsuite/../../gdb/../gdbserver/gdbserver --once
::1:2417
/home/linux/gdb/build/gdb/testsuite/outputs/gdb.server/server-connect/server-connect^M
Can't open socket: Address family not supported by protocol.^M
Exiting^M
PASS: gdb.server/server-connect.exp: tcp6: start gdbserver
target remote tcp6:::1:2417^M
A program is being debugged already. Kill it? (y or n) y^M
could not connect: Address family not supported by protocol.^M
(gdb) FAIL: gdb.server/server-connect.exp: tcp6: connect to gdbserver using
tcp6:::1
...
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug testsuite/31502] [gdb/testsuite] FAIL: gdb.server/server-connect.exp: tcp6: connect to gdbserver using tcp6:::1
2024-03-16 15:20 [Bug testsuite/31502] New: [gdb/testsuite] FAIL: gdb.server/server-connect.exp: tcp6: connect to gdbserver using tcp6:::1 vries at gcc dot gnu.org
@ 2024-03-18 7:47 ` vries at gcc dot gnu.org
2024-03-19 7:47 ` vries at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: vries at gcc dot gnu.org @ 2024-03-18 7:47 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=31502
--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
Created attachment 15412
--> https://sourceware.org/bugzilla/attachment.cgi?id=15412&action=edit
tentative patch
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug testsuite/31502] [gdb/testsuite] FAIL: gdb.server/server-connect.exp: tcp6: connect to gdbserver using tcp6:::1
2024-03-16 15:20 [Bug testsuite/31502] New: [gdb/testsuite] FAIL: gdb.server/server-connect.exp: tcp6: connect to gdbserver using tcp6:::1 vries at gcc dot gnu.org
2024-03-18 7:47 ` [Bug testsuite/31502] " vries at gcc dot gnu.org
@ 2024-03-19 7:47 ` vries at gcc dot gnu.org
2024-03-20 18:31 ` cvs-commit at gcc dot gnu.org
2024-03-21 8:03 ` vries at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: vries at gcc dot gnu.org @ 2024-03-19 7:47 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=31502
--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
https://sourceware.org/pipermail/gdb-patches/2024-March/207339.html
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug testsuite/31502] [gdb/testsuite] FAIL: gdb.server/server-connect.exp: tcp6: connect to gdbserver using tcp6:::1
2024-03-16 15:20 [Bug testsuite/31502] New: [gdb/testsuite] FAIL: gdb.server/server-connect.exp: tcp6: connect to gdbserver using tcp6:::1 vries at gcc dot gnu.org
2024-03-18 7:47 ` [Bug testsuite/31502] " vries at gcc dot gnu.org
2024-03-19 7:47 ` vries at gcc dot gnu.org
@ 2024-03-20 18:31 ` cvs-commit at gcc dot gnu.org
2024-03-21 8:03 ` vries at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-03-20 18:31 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=31502
--- Comment #3 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom de Vries <vries@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=886d73049c55fa10447240e4b81c413beba31458
commit 886d73049c55fa10447240e4b81c413beba31458
Author: Tom de Vries <tdevries@suse.de>
Date: Wed Mar 20 19:31:24 2024 +0100
[gdb/testsuite] Fix gdb.server/server-connect.exp for missing ipv6
On a system without ipv6 support enabled, when running test-case
gdb.server/server-connect.exp, it takes about 4 minutes, and I get:
...
builtin_spawn gdbserver --once ::1:2347 server-connect^M
Can't open socket: Address family not supported by protocol.^M
Exiting^M
PASS: gdb.server/server-connect.exp: tcp6: start gdbserver
target remote tcp6:::1:2347^M
A program is being debugged already. Kill it? (y or n) y^M
could not connect: Address family not supported by protocol.^M
(gdb) FAIL: gdb.server/server-connect.exp: tcp6: connect to gdbserver using
tcp6:::1
...
Fix this by:
- recognizing the error message in gdbserver_start, and returning an empty
list
to signal unsupported, and
- handling the unsupported response in the test-case.
This brings testing time down to 2 seconds, and gets me:
...
UNSUPPORTED: gdb.server/server-connect.exp: tcp6: start gdbserver
UNSUPPORTED: gdb.server/server-connect.exp: tcp6-with-brackets: start
gdbserver
UNSUPPORTED: gdb.server/server-connect.exp: udp6: start gdbserver
UNSUPPORTED: gdb.server/server-connect.exp: udp6-with-brackets: start
gdbserver
...
Tested on aarch64-linux.
Approved-By: Tom Tromey <tom@tromey.com>
PR testsuite/31502
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31502
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug testsuite/31502] [gdb/testsuite] FAIL: gdb.server/server-connect.exp: tcp6: connect to gdbserver using tcp6:::1
2024-03-16 15:20 [Bug testsuite/31502] New: [gdb/testsuite] FAIL: gdb.server/server-connect.exp: tcp6: connect to gdbserver using tcp6:::1 vries at gcc dot gnu.org
` (2 preceding siblings ...)
2024-03-20 18:31 ` cvs-commit at gcc dot gnu.org
@ 2024-03-21 8:03 ` vries at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: vries at gcc dot gnu.org @ 2024-03-21 8:03 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=31502
Tom de Vries <vries at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Target Milestone|--- |15.1
Status|NEW |RESOLVED
--- Comment #4 from Tom de Vries <vries at gcc dot gnu.org> ---
Fixed.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-03-21 8:03 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-16 15:20 [Bug testsuite/31502] New: [gdb/testsuite] FAIL: gdb.server/server-connect.exp: tcp6: connect to gdbserver using tcp6:::1 vries at gcc dot gnu.org
2024-03-18 7:47 ` [Bug testsuite/31502] " vries at gcc dot gnu.org
2024-03-19 7:47 ` vries at gcc dot gnu.org
2024-03-20 18:31 ` cvs-commit at gcc dot gnu.org
2024-03-21 8:03 ` vries at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).