Re: Fwd: BUG #4953: Crash with xml functions

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Giorgio Valoti <giorgio_v(at)me(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Fwd: BUG #4953: Crash with xml functions
Date: 2009-07-31 03:15:55
Message-ID: 20090731031555.GK6459@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Giorgio Valoti wrote:
> Hi,
> I’m forwarding this mail exchange with Peter Eisentraut to the bugs
> list.
> pgSQL version: 8.4
> OS: Mac OS X 10.5.8

I can reproduce this, and the reason seems to be the same problem we
fixed in core XML and that Tom was saying a couple of days ago that was
present in contrib/xml2 as well:

#0 0x00007f1ac590f065 in *__GI_raise (sig=<value optimized out>)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1 0x00007f1ac5912153 in *__GI_abort () at abort.c:88
#2 0x000000000078cbcf in ExceptionalCondition (
conditionName=0x920548 "!(((header->context) != ((void *)0) && (((((Node*)((header->context)))->type) == T_AllocSetContext))))",
errorType=0x920421 "BadArgument",
fileName=0x9203a0 "/pgsql/source/84_rel/src/backend/utils/mmgr/mcxt.c",
lineNumber=589) at /pgsql/source/84_rel/src/backend/utils/error/assert.c:57
#3 0x00000000007b2862 in pfree (pointer=0x120bfc0)
at /pgsql/source/84_rel/src/backend/utils/mmgr/mcxt.c:589
#4 0x00007f1ac345e186 in pgxml_pfree (ptr=0x120bfc0)
at /pgsql/source/84_rel/contrib/xml2/xpath.c:86
#5 0x00007f1ac66da12b in xmlCleanupCharEncodingHandlers__internal_alias ()
at encoding.c:1398
#6 0x00007f1ac66e3103 in xmlCleanupParser__internal_alias () at parser.c:13836
#7 0x00007f1ac345e5c5 in xml_is_well_formed (fcinfo=0x7fffcec1b0e0)
at /pgsql/source/84_rel/contrib/xml2/xpath.c:187

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Maxim.Boguk 2009-07-31 10:31:52 BUG #4957: search_path and pg_dump -T switch
Previous Message Niranjan Pandit 2009-07-31 03:02:57 BUG #4956: Array Construct array() returning blank result