Re: Potential reference miscounts and segfaults in plpython.c

Поиск
Список
Период
Сортировка
От Jan Urbański
Тема Re: Potential reference miscounts and segfaults in plpython.c
Дата
Msg-id 4F421AF7.1080308@wulczer.org
обсуждение исходный текст
Ответ на Re: Potential reference miscounts and segfaults in plpython.c  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Potential reference miscounts and segfaults in plpython.c  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On 20/02/12 04:29, Tom Lane wrote:
> Jan Urbański <wulczer@wulczer.org> writes:
>>> On 18/02/12 21:17, Tom Lane wrote:
>>>> Dave Malcolm at Red Hat has been working on a static code analysis tool
>>>> for Python-related C code.  He reports here on some preliminary results
>>>> for plpython.c:
>>>> https://bugzilla.redhat.com/show_bug.cgi?id=795011
> 
>> Here's a patch that fixes everything I was sure was an actual bug. The
>> rest of the warnings seem to be caused by the tool not knowing that
>> elog(ERROR) throws a longjmp and things like "we never unref this
>> object, so it can't disappear mid-execution".
> 
> My only comment is whether elog(ERROR) is appropriate, ie, do we consider
> these to be internal errors that users will never see in practice?

AFAICS these errors can only happen on out of memory conditions or other
internal errors (like trying to create a list with a negative length).

Cheers,
Jan


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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: 16-bit page checksums for 9.2
Следующее
От: Itagaki Takahiro
Дата:
Сообщение: array_to_json re-encodes ARRAY of json type