From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CDFE33858CD1; Thu, 21 Mar 2024 16:52:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CDFE33858CD1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1711039955; bh=OYKO8/kdiUQsoNuZluRKpTLtQltLbi2MBVD4C/foKPQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tsT8ZZyJSDDmr0Lz3toEeylWiU8REjwhWJUChFIUIH8N/5hIsICGZJX9kQUnGQg2b snNARcoqwPYxvptxAA2UZmVZbrKxmvFm9Az7eRb/AWbGYT3KoQyqt9bj48iCoe+2mt 2kBcfEyh15W4Vb7Eh2RRpGJEmeJX0gTEzL5T3siU= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug external/31520] [gdb/external] Handle kernel.yama.ptrace_scope != 0 Date: Thu, 21 Mar 2024 16:52:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: external X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement 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: Message-ID: In-Reply-To: References: 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=3D31520 --- Comment #3 from Tom de Vries --- (In reply to Tom de Vries from comment #2) > 3. An attach-specific failure: > ... > (gdb) attach 27466^M > Attaching to process 27466^M > No executable file now.^M > warning: Could not load vsyscall page because no executable was specified= ^M > 0x00007f18b597f0ca in ?? ()^M > (gdb) FAIL: gdb.base/attach-deleted-exec.exp: attach to process with dele= ted > executable > ... While with ptrace_scope =3D=3D 0, we get: ... (gdb) attach 23176^M Attaching to process 23176^M Reading symbols from /proc/23176/exe...^M Reading symbols from /lib64/libm.so.6...^M (No debugging symbols found in /lib64/libm.so.6)^M Reading symbols from /lib64/libc.so.6...^M (No debugging symbols found in /lib64/libc.so.6)^M Reading symbols from /lib64/ld-linux-x86-64.so.2...^M (No debugging symbols found in /lib64/ld-linux-x86-64.so.2)^M 0x00007f18f32620ca in clock_nanosleep@GLIBC_2.2.5 () from /lib64/libc.so.6^M (gdb) PASS: gdb.base/attach-deleted-exec.exp: attach to process with deleted executable ... --=20 You are receiving this mail because: You are on the CC list for the bug.=