Re: Segfault using heap_form_tuple

Поиск
Список
Период
Сортировка
От Claudio Rossi
Тема Re: Segfault using heap_form_tuple
Дата
Msg-id JZ2MOZ$5D0E7244B1C97C7FDB2AB2D1D8FDDF42@libero.it
обсуждение исходный текст
Ответ на Segfault using heap_form_tuple  ("Claudio Rossi" <wind.claudio@inwind.it>)
Список pgsql-hackers
> >  nulls = (bool *)palloc(natts*sizeof(bool *));
> >
>
> May not be related to segfault you are seeing, but this looks completely wrong.
> You want array of bool and not (bool *).

Yeah, you are right but in the original code it's:

values = (Datum *) palloc(natts * sizeof(Datum));
nulls = (bool *) palloc(natts * sizeof(bool));

I just typed it wrong, I didn't copy and paste. I also forgot to add this line (from valgrind log) at the beginning of
errorsequence: 

==30549== Warning: set address range perms: large range 496753892 (undefined)

I'm clueless, any hints?



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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Commit fest queue
Следующее
От: "Claudio Rossi"
Дата:
Сообщение: Re: Segfault using heap_form_tuple