The NetBSD Project

CVS log for src/tests/lib/libc/sys/t_ptrace_fork_wait.h

[BACK] Up to [cvs.NetBSD.org] / src / tests / lib / libc / sys

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Jun 9 00:28:57 2020 UTC (4 years, 10 months ago) by kamil
Branches: MAIN
CVS tags: thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-10-base, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, HEAD
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +59 -11 lines
Add fork/vfork/posix_spawn tests for processes within pgrp

New tests:
 - fork_setpgid
 - vfork_setpgid
 - posix_spawn_setpgid
 - unrelated_tracer_fork_setpgid
 - unrelated_tracer_vfork_setpgid
 - unrelated_tracer_posix_spawn_setpgid

These tests trigger a kernel assert for pg_jobc going negative.

The tests are temporarily skipped.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat May 16 23:10:26 2020 UTC (4 years, 11 months ago) by kamil
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +17 -11 lines
Ignore interception of SIGCHLD signals in the debugger

Set SIGPASS for SIGCHLD for the traced child in the following tests:
 - unrelated_tracer_fork*
 - unrelated_tracer_vfork*
 - unrelated_tracer_posix_spawn*

There is a race that SIGCHLD might be blocked during forking and dropped.

PR/55241 by Andreas Gustafsson

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat May 16 22:07:06 2020 UTC (4 years, 11 months ago) by kamil
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +17 -17 lines
Fix typo in test names

Noted by <joerg>

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat May 16 19:08:20 2020 UTC (4 years, 11 months ago) by kamil
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +15 -11 lines
Ignore interception of SIGCHLD signals in the debugger

Set SIGPASS for SIGCHLD for the traced child in the following tests:

 - posix_spawn_singalmasked
 - posix_spawn_singalignored
 - fork_singalmasked
 - fork_singalignored
 - vfork_singalmasked
 - vfork_singalignored
 - vforkdone_singalmasked
 - vforkdone_singalignored

There is a race that SIGCHLD might be blocked during forking and dropped.

PR/55241 by Andreas Gustafsson

Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu May 14 19:21:35 2020 UTC (4 years, 11 months ago) by kamil
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +15 -11 lines
Ignore interception of the SIGCHLD signals.

SIGCHLD once blocked is discarded by the kernel as it has the
SA_IGNORE property. During the fork(2) operation all signals can be
shortly blocked and missed (unless there is a registered signal
handler in the traced child). This leads to a race in this test if
there would be an intention to catch SIGCHLD.

Fixes PR lib/55241 by Andreas Gustafsson

Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon May 11 20:58:48 2020 UTC (4 years, 11 months ago) by kamil
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +15 -18 lines
Fix race in fork_singalmasked

ELF RTLD after rtld.c r. 1.204 introduced locking that wraps the fork
syscall. This locking changes signal mask of the calling process during
the forking process.

Instead of comparing old and new signal mask, just after the forking
operation, check whether the expected signal is still masked and in
another test whether it is still ignored.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon May 4 22:34:22 2020 UTC (4 years, 11 months ago) by kamil
Branches: MAIN
Move fork/vfork/posix_spawn tests out of t_ptrace_wait.c to t_ptrace_fork_wait.h

The same tests are now included with the preprocessor in t_ptrace_wait.c.

No functional change intended.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>