pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Sergey Mirvoda <sergey@mirvoda.com>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Pavel Stehule <pavel.stehule@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15420: Server crash. Segmentation fault when parsing xml file
Date: Fri, 05 Oct 2018 15:57:19 +0100
Message-ID: <87d0sobg6n.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <CALkWArgUw=uwy2fY83A_7vBbcoFD6APvNrZmvdruHQ=hxiNDCw@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>
	<20181004111148.GF1256@paquier.xyz>
	<CALkWArgUw=uwy2fY83A_7vBbcoFD6APvNrZmvdruHQ=hxiNDCw@mail.gmail.com>

>>>>> "Sergey" == Sergey Mirvoda <sergey@mirvoda.com> writes:

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

Unfortunately the version of libxml2 that pg is using on that system is
in fact 2.9.4, not 2.9.8:

root@capybara:~# ldd /usr/lib/postgresql/10/bin/postgres | fgrep xml
        libxml2.so.2 => /usr/lib/x86_64-linux-gnu/libxml2.so.2 (0x00007f332517f000)

ii  libxml2:amd64               2.9.4+dfsg1-6.1ubu amd64              GNOME XML library

and poking at it with gdb shows exactly the same bug that I found on my
system, though on yours it fails at a somewhat different place (when
trying to print the file context as part of the error message, but the
basic problem is still that input->cur is off in the weeds).

-- 
Andrew (irc:RhodiumToad)




view thread (39+ messages)  latest in thread

Message-ID: <87d0sobg6n.fsf@news-spur.riddles.org.uk>
Permalink:  ../87d0sobg6n.fsf@news-spur.riddles.org.uk/
Also on:    postgresql.org/message-id/87d0sobg6n.fsf@news-spur.riddles.org.uk

 · 

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: andrew@tao11.riddles.org.uk, sergey@mirvoda.com, michael@paquier.xyz, pavel.stehule@gmail.com
  Subject: Re: BUG #15420: Server crash. Segmentation fault when parsing xml file
  In-Reply-To: <87d0sobg6n.fsf@news-spur.riddles.org.uk>
  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> <CALkWArgUw=uwy2fY83A_7vBbcoFD6APvNrZmvdruHQ=hxiNDCw@mail.gmail.com> <87d0sobg6n.fsf@news-spur.riddles.org.uk>

* 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