puzzling JSON bug

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема puzzling JSON bug
Дата
Msg-id 515DB5A7.8090307@dunslane.net
обсуждение исходный текст
Ответы Re: puzzling JSON bug  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
David Wheeler has presented me with a nasty bug case.

If I do this:
   select '{"members": { "add": [3, 4]}}'::json #> '{members,add}';

then I get a crash.

If I comment out the pfree() at json.c:parse_object_field() lines 378-9 
then I get back the right result but instead get a warning like this:
   WARNING:  problem in alloc set ExprContext: bogus aset link in block   0x1efaa80, chunk 0x1efb1f0


I'm not quite sure where I should go looking for what I've done wrong here.

cheers

andrew



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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Regex with > 32k different chars causes a backend crash
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: Hash Join cost estimates