Re: [HACKERS] patch for memory overrun on Linux(i386)

Поиск
Список
Период
Сортировка
От ocie@paracel.com
Тема Re: [HACKERS] patch for memory overrun on Linux(i386)
Дата
Msg-id 9803220037.AA03698@dolomite.paracel.com
обсуждение исходный текст
Ответ на patch for memory overrun on Linux(i386)  (Maurice Gittens <mgittens@david.gits.nl>)
Ответы Re: [HACKERS] patch for memory overrun on Linux(i386)  (The Hermit Hacker <scrappy@hub.org>)
Список pgsql-hackers
Maurice Gittens wrote:
>
> Hi,
>
> It turns of that one of the bugs I detected with Electric Fence
> is caused by an assumption that memory return by palloc and malloc
> is aligned on 8 bytes boundaries (double alignment).
> Adjusting this to correspond with the reality of the malloc
> implementation on my pentium based linux box fixes the problem.
>
> The following simple patch to include/utils/memutils.h
> will fix the problem.
>
> 85c85
> < #if ! defined(sco)
> ---
> > #if ! defined(sco) && !defined(linux)

I may be off on this one, but I thought that memory alignment was a
cpu, and not necessarily an OS issue.  I.E. Solaris x86 might show the
"misalignment", while Linux Alpha would not.

Ocie Mitchell

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

Предыдущее
От: The Hermit Hacker
Дата:
Сообщение: Re: [HACKERS] patch for memory overrun on Linux(i386)
Следующее
От: Mattias Kregert
Дата:
Сообщение: Re: sched_yield()