Re: [BUGS] BUG #14584: Segmentation fault importing large XML file - Mailing list pgsql-bugs

From Tom Lane
Subject Re: [BUGS] BUG #14584: Segmentation fault importing large XML file
Date
Msg-id 13153.1489002877@sss.pgh.pa.us
Whole thread Raw
In response to Re: [BUGS] BUG #14584: Segmentation fault importing large XML file  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: [BUGS] BUG #14584: Segmentation fault importing large XML file  (Jorge Solórzano <jorsol@gmail.com>)
List pgsql-bugs
Pavel Stehule <pavel.stehule@gmail.com> writes:
> 2017-03-08 20:17 GMT+01:00 Jorge Solórzano <jorsol@gmail.com>:
>> I installed debug symbols for libxml2 if this helps:
>> #0  xmlParserPrintFileContextInternal (input=input@entry=0x55afc89ef4b0,
>> channel=0x55afc636ca30 <appendStringInfo>, data=0x55afc89e5cc0) at
>> ../../error.c:181

> It looks not well handled libxml2 fatal error "internal error: Huge input
> lookup"

Yeah.  The segfault is inside xmlParserPrintFileContext(), so really there
is at least one libxml2 bug here and possibly two.  Maybe it should have
been able to cope with such large input, or maybe not, but for sure its
printing functions should have been able to cope with the state at the
time the error was reported.

I don't think there's much we can do about it; you need to report this
to the libxml2 folk.

            regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

pgsql-bugs by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: [BUGS] BUG #14584: Segmentation fault importing large XML file
Next
From: Jorge Solórzano
Date:
Subject: Re: [BUGS] BUG #14584: Segmentation fault importing large XML file