https://issues.apache.org/bugzilla/show_bug.cgi?id=56684

--- Comment #3 from Gustavo Lopes <gust...@thehyve.nl> ---
The strace output may actually be a bug in strace because poll() takes a signed
int as timeout; it would seem strace is interpreting the value as an unsigned
int. Indeed:

$ cat a.c && gcc a.c && strace ./a.out 
#include <poll.h>
#include <stdio.h>

void main() {
    struct pollfd fd = { .fd = fileno(stdin), .events = POLLIN };
    int timeout = -1;

    poll(&fd, 1, timeout);
}
execve("./a.out", ["./a.out"], [/* 57 vars */]) = 0
brk(0)                                  = 0xeb5000
(...)
poll([{fd=0, events=POLLIN}], 1, 4294967295^CProcess 6565 detached

That leaves me (short of a bug in glibc or the kernel) with no explanation for
the exception I got, which takes quite a while to reproduce, though if poll
doesn't use the monotonic clock, there may be an faster way. I'll check
tomorrow.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to