[Bug 250954] ptrace(): weird ordering between inheriting debug registers and reporting a new thread

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Nov 8 21:46:43 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250954

--- Comment #3 from Konstantin Belousov <kib at FreeBSD.org> ---
Generally if you using PT_LWPINFO, you should use it after each reported stop.
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list