Re: Finding memory corruption in an extension

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Finding memory corruption in an extension
Дата
Msg-id 326715.1610130525@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Finding memory corruption in an extension  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-general
Pavel Stehule <pavel.stehule@gmail.com> writes:
> pá 8. 1. 2021 v 18:48 odesílatel Jack Orenstein <jao@geophile.com> napsal:
>> I'm interested in advice on how to go about hunting down my problem.
>> Something along the lines of a debugging malloc, or valgrind, for Postgres.

> The basic feature is using postgres compiled with --enable-cassert flag. It
> does lot of checks of memory corruptions

Yeah, you should absolutely use --enable-cassert when working on C code.

If you need valgrind, there's advice about how to run it at

https://wiki.postgresql.org/wiki/Valgrind

            regards, tom lane



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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: Finding memory corruption in an extension
Следующее
От: raf
Дата:
Сообщение: Re: How to keep format of views source code as entered?