pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Jorge Solórzano <jorsol@gmail.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14584: Segmentation fault importing large XML file
Date: Wed, 08 Mar 2017 14:54:37 -0500
Message-ID: <13153.1489002877@sss.pgh.pa.us> (raw)
In-Reply-To: <CAFj8pRDt-9TnisDrvaB2KRtyxEbC5-f_E_Co7Sq0yOwdNkbjVw@mail.gmail.com>
References: <20170308190209.25050.13160@wrigleys.postgresql.org>
	<CAFj8pRA5s_PakuKExawAF724vVV3HJBTgqT7Z4yprij-34bm9w@mail.gmail.com>
	<CA+cVU8Nm7Of6UuZH79pogesrh0MVVM8G01FNejBiGKKBphb1oA@mail.gmail.com>
	<CAFj8pRDt-9TnisDrvaB2KRtyxEbC5-f_E_Co7Sq0yOwdNkbjVw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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



view thread (7+ messages)  latest in thread

Message-ID: <13153.1489002877@sss.pgh.pa.us>
Permalink:  ../13153.1489002877@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13153.1489002877@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pavel.stehule@gmail.com, jorsol@gmail.com
  Subject: Re: BUG #14584: Segmentation fault importing large XML file
  In-Reply-To: <13153.1489002877@sss.pgh.pa.us>
  References: <20170308190209.25050.13160@wrigleys.postgresql.org> <CAFj8pRA5s_PakuKExawAF724vVV3HJBTgqT7Z4yprij-34bm9w@mail.gmail.com> <CA+cVU8Nm7Of6UuZH79pogesrh0MVVM8G01FNejBiGKKBphb1oA@mail.gmail.com> <CAFj8pRDt-9TnisDrvaB2KRtyxEbC5-f_E_Co7Sq0yOwdNkbjVw@mail.gmail.com> <13153.1489002877@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox