Date: Sun, 08 Nov 2020 21:46:42 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 250954] ptrace(): weird ordering between inheriting debug registers and reporting a new thread Message-ID: <bug-250954-227-6BuSjeIkUD@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-250954-227@https.bugs.freebsd.org/bugzilla/> References: <bug-250954-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250954 --- Comment #3 from Konstantin Belousov <kib@FreeBSD.org> --- Generally if you using PT_LWPINFO, you should use it after each reported st= op. I am not sure, in your test, which stop occurs when the thread is created, it could be earlier than you call to PT_LWPINFO. And then, since you use pid and not tid for ptrace(), it is relatively random which thread new dbregs are applied. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-250954-227-6BuSjeIkUD>