[Bug 254201] ptrace(): rfork(RFSPAWN) / posix_spawn() reports fork instead of vfork (+ vfork_done)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Mar 10 18:54:29 UTC 2021


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

            Bug ID: 254201
           Summary: ptrace(): rfork(RFSPAWN) / posix_spawn() reports fork
                    instead of vfork (+ vfork_done)
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs at FreeBSD.org
          Reporter: mgorny at gentoo.org
                CC: emaste at freebsd.org, mhorne at freebsd.org

Created attachment 223168
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=223168&action=edit
reproducer

If the debugged program executes rfork(RFSPAWN) or posix_spawn(), the first
SIGTRAP signal reports PL_FLAG_FORKED instead of PL_FLAG_VFORKED.  This is
followed by PL_FLAG_VFORK_DONE, so I guess PL_FLAG_VFORKED was desired.

I'm attaching a simple reproducer.  Confirmed on 14.0-CURRENT from end of
January.

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


More information about the freebsd-bugs mailing list