Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clhfV-0000gM-WE for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Mar 2017 19:54:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1clhfV-00056v-CV for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Mar 2017 19:54:41 +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.84_2) (envelope-from ) id 1clhfU-00056J-NH for pgsql-bugs@postgresql.org; Wed, 08 Mar 2017 19:54:40 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1clhfS-0006B8-MG for pgsql-bugs@postgresql.org; Wed, 08 Mar 2017 19:54:39 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v28JsbRW013154; Wed, 8 Mar 2017 14:54:37 -0500 From: Tom Lane To: Pavel Stehule cc: =?UTF-8?Q?Jorge_Sol=C3=B3rzano?= , "pgsql-bugs@postgresql.org" Subject: Re: BUG #14584: Segmentation fault importing large XML file In-reply-to: References: <20170308190209.25050.13160@wrigleys.postgresql.org> Comments: In-reply-to Pavel Stehule message dated "Wed, 08 Mar 2017 20:36:08 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <13152.1489002877.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Wed, 08 Mar 2017 14:54:37 -0500 Message-ID: <13153.1489002877@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Pavel Stehule writes: > 2017-03-08 20:17 GMT+01:00 Jorge Solórzano : >> I installed debug symbols for libxml2 if this helps: >> #0 xmlParserPrintFileContextInternal (input=input@entry=0x55afc89ef4b0, >> channel=0x55afc636ca30 , data=0x55afc89e5cc0) at >> ../../error.c:181 > It looks not well handled libxml2 fatal error "internal error: Huge input > lookup" Yeah. The segfault is inside xmlParserPrintFileContext(), so really there is at least one libxml2 bug here and possibly two. Maybe it should have been able to cope with such large input, or maybe not, but for sure its printing functions should have been able to cope with the state at the time the error was reported. I don't think there's much we can do about it; you need to report this to the libxml2 folk. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs