pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Sergey Mirvoda <sergey@mirvoda.com>
Cc: Andrey Borodin <x4mmm@yandex-team.ru>
Cc: Andrew Borodin <borodin@octonica.com>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15420: Server crash. Segmentation fault when parsing xml file
Date: Fri, 05 Oct 2018 14:38:52 +0100
Message-ID: <87tvm0bjpt.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <CAFj8pRDZo4w0iunJ3z6Sh=0Lw2oOc9Hj+QTjUFnuyKdvY8Dzwg@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>
	<CAFj8pRBzoi7GhaJEVg16zgiqe9y5t_yV3t5aAua5P46=aQQrkg@mail.gmail.com>
	<CALkWArg-fBxB+pHn440BFm_+eOmihPny44ObqBGoEZG9Y9DAiQ@mail.gmail.com>
	<0FD7884D-E9D9-41DF-AA05-15E7420F996A@yandex-team.ru>
	<87tvm1cbkk.fsf@news-spur.riddles.org.uk>
	<FB4290EC-851A-4BE4-A5F5-3A96FBEE014F@yandex-team.ru>
	<87pnwpc7wi.fsf@news-spur.riddles.org.uk>
	<CALkWAriUN-6GsYyURvAB5f5+HsDbb_bx1YgsXMjs0xsMvCd-xQ@mail.gmail.com>
	<CAFj8pRBDcq=-3waVae98+KpoxDySbJOvLQ2yhCup4dgdCViJpQ@mail.gmail.com>
	<87y3bcbkcm.fsf@news-spur.riddles.org.uk>
	<CAFj8pRDZo4w0iunJ3z6Sh=0Lw2oOc9Hj+QTjUFnuyKdvY8Dzwg@mail.gmail.com>

>>>>> "Pavel" == Pavel Stehule <pavel.stehule@gmail.com> writes:

 >> I don't yet know about 2.9.8, but the crash with 2.9.4 is a bug in
 >> libxml2's error handling which has _nothing to do_ with which API
 >> you use. Read the analysis I posted.

 Pavel> ok. Probably there are more than one issue. 1. crash, 2. raising
 Pavel> huge input lookup, maybe other.

It's certainly possible that the error that provokes the crash is
libxml2 complaining that the tag name is too long or whatever.

 Pavel> libxml2 is great library,

HAH. From reading the code, as I have been for much of today, it's
pretty damn bad.

Interestingly, the FreeBSD package build of PG now disables XML by
default on account of libxml2's very poor security record. We need a
better XML library :-(

-- 
Andrew.




view thread (39+ messages)  latest in thread

Message-ID: <87tvm0bjpt.fsf@news-spur.riddles.org.uk>
Permalink:  ../87tvm0bjpt.fsf@news-spur.riddles.org.uk/
Also on:    postgresql.org/message-id/87tvm0bjpt.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, pavel.stehule@gmail.com, sergey@mirvoda.com, x4mmm@yandex-team.ru, borodin@octonica.com, michael@paquier.xyz
  Subject: Re: BUG #15420: Server crash. Segmentation fault when parsing xml file
  In-Reply-To: <87tvm0bjpt.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> <CAFj8pRBzoi7GhaJEVg16zgiqe9y5t_yV3t5aAua5P46=aQQrkg@mail.gmail.com> <CALkWArg-fBxB+pHn440BFm_+eOmihPny44ObqBGoEZG9Y9DAiQ@mail.gmail.com> <0FD7884D-E9D9-41DF-AA05-15E7420F996A@yandex-team.ru> <87tvm1cbkk.fsf@news-spur.riddles.org.uk> <FB4290EC-851A-4BE4-A5F5-3A96FBEE014F@yandex-team.ru> <87pnwpc7wi.fsf@news-spur.riddles.org.uk> <CALkWAriUN-6GsYyURvAB5f5+HsDbb_bx1YgsXMjs0xsMvCd-xQ@mail.gmail.com> <CAFj8pRBDcq=-3waVae98+KpoxDySbJOvLQ2yhCup4dgdCViJpQ@mail.gmail.com> <87y3bcbkcm.fsf@news-spur.riddles.org.uk> <CAFj8pRDZo4w0iunJ3z6Sh=0Lw2oOc9Hj+QTjUFnuyKdvY8Dzwg@mail.gmail.com> <87tvm0bjpt.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