Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Mar 2021 18:54:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 254201] ptrace(): rfork(RFSPAWN) / posix_spawn() reports fork instead of vfork (+ vfork_done)
Message-ID:  <bug-254201-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254201

            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@FreeBSD.org
          Reporter: mgorny@gentoo.org
                CC: emaste@freebsd.org, mhorne@freebsd.org

Created attachment 223168
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D223168&action=
=3Dedit
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.

--=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-254201-227>