From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E0BFB3982414; Thu, 8 Jul 2021 11:23:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E0BFB3982414 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug threads/28065] FAIL: gdb.threads/access-mem-running-thread-exit.exp: all-stop: access mem (print global_var after writing again, inf=1, iter=354) Date: Thu, 08 Jul 2021 11:23:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: threads 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: attachments.created 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 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jul 2021 11:23:44 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28065 --- Comment #6 from Tom de Vries --- Created attachment 13546 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D13546&action=3Ded= it debug patch (In reply to Pedro Alves from comment #4) > Could it be that opening /proc/pid/task/lwp/mem is failing with errno oth= er > than EACCES or ENOENT on openSUSE's kernel? >=20 > To debug this, I'd insert abort() calls in all TARGET_XFER_EOF failure pa= ths > in linux_proc_xfer_memory_partial, and then set the testcase running in a > loop. Then debug the core dump. Core dump gives this location: ... (gdb) up #6 0x0000000000801ec9 in linux_proc_xfer_memory_partial (readbuf=3D0x2dc76= 20 "",=20 writebuf=3D0x0, offset=3D6295664, len=3D4, xfered_len=3D0x7ffc589ada38) at /home/vries/gdb_versions/devel/src/gdb/linux-nat.c:4007 4007 gdb_assert_not_reached ("4"); (gdb) l 4002 4003 if (res =3D=3D 0) 4004 { 4005 /* EOF means the address space is gone, the whole process 4006 exited or execed. */ 4007 gdb_assert_not_reached ("4"); 4008 return TARGET_XFER_EOF; 4009 } 4010 else if (res =3D=3D -1) 4011 { (gdb)=20 ... --=20 You are receiving this mail because: You are on the CC list for the bug.=