Re: Server crash due to SIGBUS(Bus Error) when trying to access the memory created using dsm_create().

Поиск
Список
Период
Сортировка
От Claudio Freire
Тема Re: Server crash due to SIGBUS(Bus Error) when trying to access the memory created using dsm_create().
Дата
Msg-id CAGTBQpZoEX7bHLMFDVKHAnf7VKLmCCEb=C=Zv0omnc60r4uihg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Server crash due to SIGBUS(Bus Error) when trying to access the memory created using dsm_create().  (amul sul <sul_amul@yahoo.co.in>)
Список pgsql-hackers
On Fri, Aug 12, 2016 at 1:55 PM, amul sul <sul_amul@yahoo.co.in> wrote:
> No segfault during dsm_create,  mmap returns  the memory address  which is
> inaccessible.
>
> Let me see how can I disable kernel overcommit behaviour, but  IMHO,  we
> should prevent ourselves from crashing,  shouldn't we?

Overcommit can be caught at dsm_create time with an mlock call (note,
that MAP_LOCKED isn't the same). Even a transient lock (mlock +
munlock) could prevent sigbus due to overcommit.



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Add hint for function named "is"
Следующее
От: Karan Sikka
Дата:
Сообщение: Re: TODO item: Implement Boyer-Moore searching in LIKE queries