clock_nanosleep failure

Andreas Schwab schwab at linux-m68k.org
Mon Jun 5 15:34:16 UTC 2017


A lot of tests fail because clock_nanosleep fails:

$ ../strace -e clock_nanosleep ./clock_nanosleep >/dev/null
clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=0, tv_nsec=789985}, NULL) = 0
clock_nanosleep(CLOCK_REALTIME, 0, NULL, 0xefca3994) = -1 EFAULT (Bad address)
clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=0, tv_nsec=789985}, 0xefca3994) = 0
clock_nanosleep(CLOCK_MONOTONIC, 0, {tv_sec=0, tv_nsec=1000000000}, 0xefca3994) = -1 EINVAL (Invalid argument)
clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=-559038737, tv_nsec=4207869677}, 0xefca3994) = -1 EINVAL (Invalid argument)
clock_nanosleep(CLOCK_MONOTONIC, 0, {tv_sec=-559038737, tv_nsec=4207869677}, 0xefca3994) = -1 EINVAL (Invalid argument)
clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=0, tv_nsec=999999999}, {tv_sec=0, tv_nsec=920211999}) = ? ERESTART_RESTARTBLOCK (Interrupted by signal)
--- SIGALRM {si_signo=SIGALRM, si_code=SI_KERNEL} ---
clock_nanosleep(CLOCK_REALTIME, TIMER_ABSTIME, {tv_sec=1496676522, tv_nsec=80487000}, 0xefca3994) = ? ERESTARTNOHAND (To be restarted if no handler)
--- SIGALRM {si_signo=SIGALRM, si_code=SI_KERNEL} ---
clock_nanosleep(CLOCK_REALTIME, TIMER_ABSTIME, {tv_sec=1496676522, tv_nsec=80487000}, 0xefca3994) = ? ERESTARTNOHAND (To be restarted if no handler)
--- SIGALRM {si_signo=SIGALRM, si_code=SI_KERNEL} ---
clock_nanosleep(CLOCK_REALTIME, TIMER_ABSTIME, {tv_sec=1496676522, tv_nsec=80487000}, 0xefca3994) = ? ERESTARTNOHAND (To be restarted if no handler)
--- SIGALRM {si_signo=SIGALRM, si_code=SI_KERNEL} ---
clock_nanosleep(CLOCK_REALTIME, TIMER_ABSTIME, {tv_sec=1496676522, tv_nsec=80487000}, 0xefca3994) = ? ERESTARTNOHAND (To be restarted if no handler)
--- SIGALRM {si_signo=SIGALRM, si_code=SI_KERNEL} ---
clock_nanosleep(CLOCK_REALTIME, TIMER_ABSTIME, {tv_sec=1496676522, tv_nsec=80487000}, 0xefca3994) = 0
clock_nanosleep: clock_nanosleep.c:139: main: Assertion `syscall(__NR_clock_nanosleep, CLOCK_REALTIME, TIMER_ABSTIME, &req.ts, &rem.ts) == -1' failed.
--- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=1609, si_uid=399} ---
+++ killed by SIGABRT (core dumped) +++
Aborted (core dumped)

pselect6 also fails:

$ ../strace -e pselect6 ./pselect6 >/dev/null
pselect6(5, [3 4], [3 4], [1 2], NULL, {NULL, 8}) = 1 (out [4])
pselect6(5, NULL, [1 2 3 4], NULL, {tv_sec=789985, tv_nsec=789986}, NULL) = 3 (out [1 2 4], left {tv_sec=789985, tv_nsec=708986})
pselect6(-1, NULL, 0xd0006338, NULL, NULL, {[HUP CHLD], 8}) = -1 EINVAL (Invalid argument)
pselect6(1025, [3], [], NULL, {tv_sec=0, tv_nsec=123}, {[HUP CHLD], 8}) = 0 (Timeout)
pselect6(0, NULL, NULL, NULL, {tv_sec=-559038737, tv_nsec=4207869677}, {NULL, 8}) = -1 EINVAL (Invalid argument)
pselect6(0, NULL, NULL, NULL, {tv_sec=-559038737, tv_nsec=4207869677}, {NULL, 8}) = -1 EINVAL (Invalid argument)
pselect6(0, NULL, NULL, NULL, {tv_sec=0, tv_nsec=222222222}, {[HUP CHLD], 8}) = ? ERESTARTNOHAND (To be restarted if no handler)
--- SIGALRM {si_signo=SIGALRM, si_code=SI_KERNEL} ---
pselect6(0, NULL, NULL, NULL, {tv_sec=0, tv_nsec=92750222}, {[HUP CHLD], 8}) = 0 (Timeout)
pselect6: pselect6.c:156: main: Assertion `pselect(0, NULL, NULL, NULL, &tm.ts, &mask) == -1' failed.
--- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=1631, si_uid=399} ---
+++ killed by SIGABRT (core dumped) +++
Aborted (core dumped)

Andreas.

-- 
Andreas Schwab, schwab at linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




More information about the Strace-devel mailing list