Fwd: BUG #4953: Crash with xml functions
Fwd: BUG #4953: Crash with xml functions
От:
Giorgio Valoti <giorgio_v@me.com>
Дата:
Hi, I=92m forwarding this mail exchange with Peter Eisentraut to the bugs=20=20 list. pgSQL version: 8.4 OS: Mac OS X 10.5.8 Let me know any needed additional detail or how I can help, thank you=20=20 in advance. > Da: Peter Eisentraut > Data: 29 luglio 2009 21:43:10 GMT+02:00 > A: Giorgio Valoti > Oggetto: Re: [BUGS] BUG #4953: Crash with xml functions > > Please send it to the bugs list. > > > On Wednesday 29 July 2009 21:47:59 you wrote: >> Il giorno 29/lug/09, alle ore 11:26, Peter Eisentraut ha scritto: >>> On Wednesday 29 July 2009 11:39:03 Giorgio Valoti wrote: >>>> I get a crash when I invoke xml function like xml_is_well_formed. >>>> >>>> It works with static xml but not if it=92s dynamically generated. >>>> >>>> It crashes even if I first create the xml dynamically and then >>>> invoke the >>>> function with static text. >>> >>> Please provide a reproducible test case. >> >> select xml_is_well_formed(xmlelement(name root)::text); >> >> mmh, this is too easy! >> >> There must be something wrong with my setup. Any clues? >> >> Grazie -- Giorgio Valoti
Re: Fwd: BUG #4953: Crash with xml functions
От:
Alvaro Herrera <alvherre@commandprompt.com>
Дата:
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=)
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.