Re: epoll_wait returning EFAULT on Linux 3.2.78

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: epoll_wait returning EFAULT on Linux 3.2.78
Дата
Msg-id 20160602144938.5fqi6kuhmqrm3tnc@alap3.anarazel.de
обсуждение исходный текст
Ответ на epoll_wait returning EFAULT on Linux 3.2.78  (Greg Stark <stark@mit.edu>)
Список pgsql-hackers
Hi,

On 2016-06-02 15:31:15 +0100, Greg Stark wrote:
> What I'm seeing is that every call to epoll_wait() raises EFAULT. I
> don't see anything wrong with the arguments to epoll_wait so unless
> there was some earlier bogus argument to epoll_ctl or something this
> looks like some kind of kernel or glibc problem and it looks like
> we'll to check for EFAULT and fall back to poll (a configure test
> wouldn't help since this is run-time behaviour).

I'd really like knowing what's going on before doing that. epoll was
definitely supported back then, and just falling back to poll seems too
likely to be just papering over bug or portability issue on our side.

Any chance you could provide a strace of a problematic sequence?


- Andres



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Konstantin Knizhnik
Дата:
Сообщение: Re: array of domain types
Следующее
От: Tom Lane
Дата:
Сообщение: Re: epoll_wait returning EFAULT on Linux 3.2.78