Re: [HACKERS] Regressions failures with libxml2 on ArchLinux - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: [HACKERS] Regressions failures with libxml2 on ArchLinux
Date
Msg-id CAB7nPqQrQO5=PAeNPLge6O_YdB52i7J0MNArAPs_VnztArosOg@mail.gmail.com
Whole thread Raw
In response to [HACKERS] Regressions failures with libxml2 on ArchLinux  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-hackers
On Sat, Aug 12, 2017 at 8:46 PM, Michael Paquier
<michael.paquier@gmail.com> wrote:
> I have not investigated much this problem yet, but has somebody else
> seen those diffs?

Coming back to that... Downgrading down to 2.9.4+4+g3169602-1 is
proving to put things back the way they should. Even downgrading to
2.9.4+91+g872fea94-1 did not help much, and 2.9.4+96+gfb56f80e-1 is
the newest version.

I have logged an issue to archlinux website to let them know about the
regression, because they are shipping a broken package:
https://bugs.archlinux.org/task/55134

Using this information I have done as well some bisecting of libxml2,
to finish with the following commit as culprit:
commit 46dc989080d5d6b7854de8fb3cb3de55ecbf0621
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Date:   Thu Jun 8 02:24:56 2017 +0200
   Don't switch encoding for internal parameter entities
   This is only needed for external entities. Trying to switch the encoding   for internal entities could also cause a
memoryleak in recovery mode.
 

So I have logged as well a bug for the upstream folks:
https://bugzilla.gnome.org/show_bug.cgi?id=786267

Please note that I have not concluded yet if PostgreSQL is to blame or
not in this case with its use of the libxml2 APIs...
-- 
Michael



pgsql-hackers by date:

Previous
From: Ashutosh Bapat
Date:
Subject: Re: [HACKERS] scan on inheritance parent with no children in current session
Next
From: Michael Paquier
Date:
Subject: Re: [HACKERS] pg_stop_backup(wait_for_archive := true) on standby server