Go to file
kamil 9dd27382de Add new test t_ptrace_attach3 in t_ptrace
Assert that tracer parent can PT_ATTACH to its child.
This test is for all members of the wait(2) family.

Currently it is marked as an explicit failure PR kern/51621.

I faced the following issues (noted and discussed in the bug report):

- PT_ATTACH seems to work, but waiting for stopped status and signal from the
  child results in getting SIGTRAP, not SIGSTOP like in Linux and FreeBSD. This
  might be by design, I'm unsure. However, so far I was getting SIGSTOP from a
  tracer process that was not the parent. SIGSTOP vs SIGTRAP logic also
  complicates the things up as tracer must check whether is a parent for tracee
  or not - this shouldn't be needed.

- PT_CONTINUE seems to have no effect at all, the child hangs. This operation
  works on Linux and FreeBSD and in the end, test passes correctly.

- Debugging this with gdb(1) results in receiving SIGABRT from the GNU
  debugger (in the moment of raising/receiving SIGTRAP). This is making the
  things harder in general.

Sponsored by <The NetBSD Foundation>.
2016-11-11 12:01:14 +00:00
bin Fix grammar in couple of sentences. 2016-10-25 13:01:59 +00:00
common Set *endptr in all paths out of strtoul and family. 2016-11-05 21:11:30 +00:00
compat add LIBGCC_MACHINE_ARCH 2016-10-22 20:33:51 +00:00
crypto Mark the new SPARCv9-in-32bit-mode modules as needing V9. 2016-11-03 22:18:29 +00:00
dist/pf PR 50709 David Binderman: memory leak 2016-05-30 17:21:07 +00:00
distrib Add 3des-cbc tests with 192 bits key. 2016-11-11 07:39:58 +00:00
doc update the wapbl entry - kern/47146 and kern/49175 are fixed 2016-11-10 21:28:15 +00:00
etc Add new USB-enabled kernel config(s) based upon GENERIC for pmax, include it as kernel set in the build and make it a choice in sysinst. 2016-11-04 19:18:50 +00:00
external Merge r1.10 from the main in-tree binutils version: 2016-11-06 23:46:01 +00:00
extsrc
games add a couple 2016-10-14 03:20:04 +00:00
gnu has moved to external/gpl3 2016-01-16 18:41:12 +00:00
include Import wcsnlen(3) to libc 2016-10-15 14:21:59 +00:00
lib Document WNOZOMBIE 2016-11-10 17:08:31 +00:00
libexec revert, I'll fix libc instead. 2016-10-07 19:10:03 +00:00
regress Fix the mmap call, KNF, and make the output more readable. 2016-09-03 08:47:38 +00:00
rescue vnconfig(8) was renamed to vndconfig(8) some time ago, and most places 2016-08-04 03:50:55 +00:00
sbin stress more that discard is experimental, and explain why; also note that 2016-11-10 22:28:00 +00:00
share Merge changes from David H. Gutteridge in PR misc/51611 2016-11-08 02:43:29 +00:00
sys Rename xen_pmap_bootstrap to xen_locore, it really has nothing to do with 2016-11-11 11:34:51 +00:00
tests Add new test t_ptrace_attach3 in t_ptrace 2016-11-11 12:01:14 +00:00
tools regen 2016-10-19 21:55:26 +00:00
usr.bin Report node name rather than (null) when modified before src 2016-11-10 23:41:58 +00:00
usr.sbin New sentence, new line. 2016-11-08 08:21:52 +00:00
BUILDING Document MKREPRO_TIMESTAMP. 2016-01-29 13:51:13 +00:00
Makefile fix direct reference to texinfo, bleh 2016-01-14 02:51:25 +00:00
Makefile.inc
UPDATING note that the OpenSSL import requires some objdir cleanup 2016-10-14 16:39:05 +00:00
build.sh When setting TOP the idea is to run the [/usr]/bin/pwd binary, and 2016-06-03 00:00:01 +00:00