From: Michael Paquier <michael@paquier.xyz>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: sergey@mirvoda.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15420: Server crash. Segmentation fault when parsing xml file
Date: Thu, 4 Oct 2018 20:11:48 +0900
Message-ID: <20181004111148.GF1256@paquier.xyz> (raw)
In-Reply-To: <CAFj8pRDStCJR2KppoV+0+6ZSxaVx2vuEEkLef=2AKULDL-T-Dg@mail.gmail.com>
References: <15420-6648d2ed070c05d4@postgresql.org>
<20181004091103.GC1256@paquier.xyz>
<CALkWArhSqk3RVefP-UHrz8FxE0F4Wyas3yHyyf_1QKqVM_84=g@mail.gmail.com>
<CAFj8pRDStCJR2KppoV+0+6ZSxaVx2vuEEkLef=2AKULDL-T-Dg@mail.gmail.com>
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@mirvoda.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
Attachments:
signature.asc (application/pgp-signature, 832B) download
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: michael@paquier.xyz, pavel.stehule@gmail.com, sergey@mirvoda.com
Subject: Re: BUG #15420: Server crash. Segmentation fault when parsing xml file
In-Reply-To: <20181004111148.GF1256@paquier.xyz>
References: <15420-6648d2ed070c05d4@postgresql.org> <20181004091103.GC1256@paquier.xyz> <CALkWArhSqk3RVefP-UHrz8FxE0F4Wyas3yHyyf_1QKqVM_84=g@mail.gmail.com> <CAFj8pRDStCJR2KppoV+0+6ZSxaVx2vuEEkLef=2AKULDL-T-Dg@mail.gmail.com> <20181004111148.GF1256@paquier.xyz>
* 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