Re: [HACKERS] [sqlsmith] crash in RestoreLibraryState duringlow-memory testing

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: [HACKERS] [sqlsmith] crash in RestoreLibraryState duringlow-memory testing
Дата
Msg-id CA+TgmoYFUeN_ifa9w0GccT+-NOXB=LpQPDixF+2wR9U-sy0PDA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] [sqlsmith] crash in RestoreLibraryState during low-memory testing  (Andreas Seltenreich <seltenreich@gmx.de>)
Список pgsql-hackers
On Tue, Oct 3, 2017 at 3:04 AM, Andreas Seltenreich <seltenreich@gmx.de> wrote:
> Tom Lane writes:
>> Presumably somebody could dig into the libc source code and prove or
>> disprove this, though it would sure help to know exactly what platform
>> and version Andreas is testing on.
>
> This is the code in glibc-2.24 around the crash site:
>
> ,----[ glibc-2.24/elf/dl-load.c:442 ]
> |       to_free = cp = expand_dynamic_string_token (l, cp, 1);
> |
> |       size_t len = strlen (cp);
> `----
>
> …while expand_dynamic_string_token will indeed return NULL on a failed
> malloc.  Code in the most recent glibc looks the same, so I'll carry
> this issue over to the glibc bugzilla then.

You know, I was pretty impressed with sqlsmith when it was only
finding bugs in PostgreSQL.  Finding bugs in glibc is even more
impressive.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: [HACKERS] why subplan is 10x faster then function?
Следующее
От: Jeff Janes
Дата:
Сообщение: Re: [HACKERS] Possible SSL improvements for a newcomer to tackle