puzzling JSON bug

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: puzzling JSON bug
Date: 2013-04-04 17:17:27
Message-ID: 515DB5A7.8090307@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephen Frost 2013-04-04 17:54:24 Re: Hash Join cost estimates
Previous Message Bruce Momjian 2013-04-04 16:56:37 Re: psql crash fix