From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6877D3858402; Tue, 19 Oct 2021 19:17:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6877D3858402 From: "kadler at us dot ibm.com" To: gdb-prs@sourceware.org Subject: [Bug gdb/28471] Internal error on Assertion `pid != 0' on AIX Date: Tue, 19 Oct 2021 19:17:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 11.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kadler at us dot ibm.com X-Bugzilla-Status: UNCONFIRMED 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 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: Tue, 19 Oct 2021 19:17:58 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28471 --- Comment #2 from Kevin Adler --- Thanks, I did make some changes last night that were along the lines you ta= lked about. Firstly, functions take in a ptid_t parameter now and don't rely on inferior_ptid. - get_signaled_thread now returns a thread_info* and the iterate_over_threa= ds call from pd_update was moved there. This was only needed when pd_activate(= 1) was called in pd_enable, which now calls get_signaled_thread. The switch_to_thread call that was formerly in pd_update is now there too, since that was the only place it was used. - pd_update now ends after sync_threadlists. - pd_activate no longer calls pd_update and takes no args. Callers now call pd_update() themselves. This seems to have fixed the issue for me. No clue whether the whole sync_threadlists is still needed or the larger question around user-space thread support in general. I'll look at the other changes you mentioned: removing the scope_restorer, = the code that sets inferior_ptid, etc. --=20 You are receiving this mail because: You are on the CC list for the bug.=