From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2A1F53858D38; Thu, 11 Apr 2024 13:37:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2A1F53858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1712842621; bh=zbdXLJ358efmN12e9++ACumk7iDSe7jlmV+TcQRcPh0=; h=From:To:Subject:Date:From; b=Adp1OyLFLW4amjo71h5T+TLTePUEqg8N+YWLHH1PoTgKv6cogCAQDyojcn+/gFx1w F2vNd88I4dtp0aFGydGcQ/EPCEoVlQ+CI/DA7MsD0WxdpSzPO8RIXTbrMD2S36tnP3 1k674Z2nyjQxGL6cP4NsaVM545azdREwjCYjvF20= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug testsuite/31632] New: [gdb/testsuite] Connecting to wrong gdbserver during parallel testing Date: Thu, 11 Apr 2024 13:36:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: testsuite X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31632 Bug ID: 31632 Summary: [gdb/testsuite] Connecting to wrong gdbserver during parallel testing 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: --- The opensuse gdb package runs the testsuite using: ... $ make -j 16 \ check//unix/-m64 \ check//unix/-m64/-fPIE/-pie\ check//unix/-m32 \ check//unix/-m32/-fPIE/-pie ... or alternatively with -fno-PIE/-no-pie, depending on the default. So, AFAIU, four target boards are tested in parallel, and then each target board is also tested in parallel. I'm seeing (with gdb 13.2 based package) these FAILs for one target board: ... FAIL: gdb.server/connect-without-multi-process.exp: multiprocess=3Doff: tar= get remote (got interactive prompt) FAIL: gdb.server/connect-without-multi-process.exp: multiprocess=3Doff: con= tinue to main FAIL: gdb.server/connect-without-multi-process.exp: multiprocess=3Doff: con= tinue until exit ... and these for another: ... FAIL: gdb.server/reconnect-ctrl-c.exp: second: continue for ctrl-c (the pro= gram is no longer running) FAIL: gdb.server/reconnect-ctrl-c.exp: second: stop with control-c ... Curiously, when investigating the first we see: ... (gdb) PASS: gdb.server/connect-without-multi-process.exp: multiprocess=3Dof= f: break -q main target remote localhost:2346^M Remote debugging using localhost:2346^M warning: Build ID mismatch between current exec-file /home/abuild/rpmbuild/BUILD/gdb-13.2/build-x86_64-suse-linux/gdb/testsuite.= unix.-m32.-fno-PIE.-no-pie/outputs/gdb.server/connect-without-multi-process= /connect-without-multi-process^M and automatically determined exec-file /home/abuild/rpmbuild/BUILD/gdb-13.2/build-x86_64-suse-linux/gdb/testsuite.= unix.-m32/outputs/gdb.server/reconnect-ctrl-c/reconnect-ctrl-c^M exec-file-mismatch handling is currently "ask"^M Load new symbol table from "/home/abuild/rpmbuild/BUILD/gdb-13.2/build-x86_64-suse-linux/gdb/testsuite= .unix.-m32/outputs/gdb.server/reconnect-ctrl-c/reconnect-ctrl-c"? (y or n) n^M warning: loading /home/abuild/rpmbuild/BUILD/gdb-13.2/build-x86_64-suse-linux/gdb/testsuite.= unix.-m32/outputs/gdb.server/reconnect-ctrl-c/reconnect-ctrl-c Not confirmed.^M warning: Could not load shared library symbols for linux-gate.so.1.^M Do you need "set solib-search-path" or "set sysroot"?^M Reading symbols from /lib/libc.so.6...^M (No debugging symbols found in /lib/libc.so.6)^M Reading symbols from /lib/ld-linux.so.2...^M (No debugging symbols found in /lib/ld-linux.so.2)^M 0xf7fc7579 in ?? ()^M (gdb) FAIL: gdb.server/connect-without-multi-process.exp: multiprocess=3Dof= f: target remote (got interactive prompt) ... Looking at the other test-case, the same portnum is used. It seems we're connecting to the wrong gdbserver. --=20 You are receiving this mail because: You are on the CC list for the bug.=