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 1g8Q47-0000rq-78 for pgsql-bugs@arkaria.postgresql.org; Fri, 05 Oct 2018 13:22:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g8Q45-0005TN-IZ for pgsql-bugs@arkaria.postgresql.org; Fri, 05 Oct 2018 13:22:45 +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 1g8Q45-0005TG-91 for pgsql-bugs@lists.postgresql.org; Fri, 05 Oct 2018 13:22:45 +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 1g8Q42-0005YZ-DT for pgsql-bugs@lists.postgresql.org; Fri, 05 Oct 2018 13:22:43 +0000 Received: from [192.168.127.1] (port=55896 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 1g8Q3y-0008cH-Cb; Fri, 05 Oct 2018 13:22:38 +0000 Received: from [127.0.0.1] (port=38698 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1g8Q3x-000J2v-NH; Fri, 05 Oct 2018 13:22:37 +0000 From: Andrew Gierth To: Pavel Stehule Cc: Sergey Mirvoda , Andrey Borodin , Andrew Borodin , Michael Paquier , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15420: Server crash. Segmentation fault when parsing xml file In-Reply-To: (Pavel Stehule's message of "Fri, 5 Oct 2018 14:44:58 +0200") Message-ID: <87y3bcbkcm.fsf@news-spur.riddles.org.uk> References: <15420-6648d2ed070c05d4@postgresql.org> <20181004091103.GC1256@paquier.xyz> <0FD7884D-E9D9-41DF-AA05-15E7420F996A@yandex-team.ru> <87tvm1cbkk.fsf@news-spur.riddles.org.uk> <87pnwpc7wi.fsf@news-spur.riddles.org.uk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Fri, 05 Oct 2018 14:22:37 +0100 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "Pavel" == Pavel Stehule writes: Pavel> There are different parsing methods Pavel> xmlCtxtReadDoc versus xmlParseBalancedChunkMemory Pavel> The problem is with xmlParseBalancedChunkMemory No, it's not. 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. -- Andrew.