Date: Thu, 27 Jun 2019 03:00:28 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 238837] Remove P_SYSTEM flag from PID 1 to allow easier debugging of init(8) Message-ID: <bug-238837-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238837 Bug ID: 238837 Summary: Remove P_SYSTEM flag from PID 1 to allow easier debugging of init(8) Product: Base System Version: 11.3-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: msl0000023508@gmail.com Created attachment 205367 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D205367&action= =3Dedit allow-ptrace-attach-1.diff Currently ptrace(2) won't allow attaching to processes have P_SYSTEM flag s= et; by removing this flag, debuggers like gdb(1) and lldb(1) will be able to de= bug the current running init(8) process like other userspace processes. Like all programs, init(8) may need to be ptrace(2)-attached, due to bugs or testing new changes; generally, allowing that would be very convenient when working with init(8)-related debuggings. Although I currently didn't have a need to debug the FreeBSD init(8), this report was a generic idea open for discuss. --=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-238837-227>