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


Default branch: MAIN


Revision 1.7 / (download) - annotate - [select for diffs], Tue Jun 9 00:28:57 2020 UTC (2 years, 11 months ago) by kamil
Branch: MAIN
CVS Tags: thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, netbsd-10-base, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, HEAD
Changes since 1.6: +59 -11 lines
Diff to previous 1.6 (colored)

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) - annotate - [select for diffs], Sat May 16 23:10:26 2020 UTC (3 years ago) by kamil
Branch: MAIN
Changes since 1.5: +17 -11 lines
Diff to previous 1.5 (colored)

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) - annotate - [select for diffs], Sat May 16 22:07:06 2020 UTC (3 years ago) by kamil
Branch: MAIN
Changes since 1.4: +17 -17 lines
Diff to previous 1.4 (colored)

Fix typo in test names

Noted by <joerg>

Revision 1.4 / (download) - annotate - [select for diffs], Sat May 16 19:08:20 2020 UTC (3 years ago) by kamil
Branch: MAIN
Changes since 1.3: +15 -11 lines
Diff to previous 1.3 (colored)

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) - annotate - [select for diffs], Thu May 14 19:21:35 2020 UTC (3 years ago) by kamil
Branch: MAIN
Changes since 1.2: +15 -11 lines
Diff to previous 1.2 (colored)

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) - annotate - [select for diffs], Mon May 11 20:58:48 2020 UTC (3 years ago) by kamil
Branch: MAIN
Changes since 1.1: +15 -18 lines
Diff to previous 1.1 (colored)

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) - annotate - [select for diffs], Mon May 4 22:34:22 2020 UTC (3 years ago) by kamil
Branch: 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.

This form allows you to request diff's 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.




CVSweb <webmaster@jp.NetBSD.org>