Re: BUG #15420: Server crash. Segmentation fault when parsing xml file

From: Sergey Mirvoda <sergey(at)mirvoda(dot)com>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #15420: Server crash. Segmentation fault when parsing xml file
Date: 2018-10-05 12:03:17
Message-ID: CALkWArgUw=uwy2fY83A_7vBbcoFD6APvNrZmvdruHQ=hxiNDCw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

It is hard to find version of libxml2.dll on Windows, but libxml2 bundleed
win postgresql 9.4 (works well)
definitely different from later ones (2146kb vs 2212kb(9.6) vs 2212(10.1))

Ubuntu Version is 2.9.8 (server crashes hard)
administrator(at)capybara:~$ xmllint --version
xmllint: using libxml version 20908-GITv2.9.8

On Thu, Oct 4, 2018 at 4:11 PM Michael Paquier <michael(at)paquier(dot)xyz> wrote:

> On Thu, Oct 04, 2018 at 12:18:05PM +0200, Pavel Stehule wrote:
> > čt 4. 10. 2018 v 12:12 odesílatel Sergey Mirvoda <sergey(at)mirvoda(dot)com>
> > I am try to import this xml to Postgres with pgimportdoc
> >
> > https://github.com/okbob/pgimportdoc
> >
> > and looks like some libxml2 issue.
> >
> > pgimportdoc: Unexpected result status: PGRES_FATAL_ERROR
> > pgimportdoc: Error: ERROR: invalid XML content
> > DETAIL: line 178950: internal error: Huge input lookup
> > � органе Пенсионного фонда Российской Федер
> >
> > ^
> > line 178950: attributes construct error
>
> Sergey, what is the version of libxml2 bundled with the Windows
> installer and Ubuntu? You should normally be able to see which version
> it is on Windows by looking at the version number of the libxml2 dll...
> However libxml2 upstream is not smart enough to produce a version file
> if I recall correctly (please note last time I looked at that I had to
> add to the upstream tree a custom patch to associate a correct version
> to the produced dll, making sure that minor MSI upgrades were able to
> update the version of libxml2 bundled in a Postgres MSI installer I
> lately maintain).
> --
> Michael
>

--
--Regards, Sergey Mirvoda

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Sergey Mirvoda 2018-10-05 12:08:48 Re: BUG #15420: Server crash. Segmentation fault when parsing xml file
Previous Message Andrew Gierth 2018-10-05 05:08:38 Re: BUG #15420: Server crash. Segmentation fault when parsing xml file