Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g8RXm-0005mZ-A8 for pgsql-bugs@arkaria.postgresql.org; Fri, 05 Oct 2018 14:57:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g8RXj-0005XR-OS for pgsql-bugs@arkaria.postgresql.org; Fri, 05 Oct 2018 14:57:27 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g8RXj-0005XK-F2 for pgsql-bugs@lists.postgresql.org; Fri, 05 Oct 2018 14:57:27 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g8RXg-0007oW-KF for pgsql-bugs@lists.postgresql.org; Fri, 05 Oct 2018 14:57:26 +0000 Received: from [192.168.127.1] (port=33861 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1g8RXc-0008n5-82; Fri, 05 Oct 2018 14:57:20 +0000 Received: from [127.0.0.1] (port=28308 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1g8RXb-000JSP-HO; Fri, 05 Oct 2018 14:57:19 +0000 From: Andrew Gierth To: Sergey Mirvoda Cc: Michael Paquier , Pavel Stehule , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15420: Server crash. Segmentation fault when parsing xml file In-Reply-To: (Sergey Mirvoda's message of "Fri, 5 Oct 2018 17:03:17 +0500") Message-ID: <87d0sobg6n.fsf@news-spur.riddles.org.uk> References: <15420-6648d2ed070c05d4@postgresql.org> <20181004091103.GC1256@paquier.xyz> <20181004111148.GF1256@paquier.xyz> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Fri, 05 Oct 2018 15:57:19 +0100 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "Sergey" == Sergey Mirvoda 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)