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 1g81Y4-0000Nn-Nf for pgsql-bugs@arkaria.postgresql.org; Thu, 04 Oct 2018 11:12:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g81Y2-0003WB-Rm for pgsql-bugs@arkaria.postgresql.org; Thu, 04 Oct 2018 11:12:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g81Y2-0003W4-Lf for pgsql-bugs@lists.postgresql.org; Thu, 04 Oct 2018 11:12:02 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g81Xu-0003YQ-NW for pgsql-bugs@lists.postgresql.org; Thu, 04 Oct 2018 11:12:02 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id ABFA821B2C; Thu, 4 Oct 2018 07:11:53 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 04 Oct 2018 07:11:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=6H1aOCwiMxU8YtAr/f9DTLOiYfN ZRoErEIfBx489b3A=; b=f2hI+lW+tITSd4WQrtY49gUr6VR3Itjfg4bma9cxv5X V91yk2+FSXgrnPsumGsk8le2UAt8c5tp0PoCrQVF0n1wNYjOddQcB8yv2p4wC5yO fKY4G7lG76RgPufLsy9oPbv0KwRK0amkVFe4iZubDKpZP82wtyKKpclxATbY8WvB NHnGQPes9Xs0mz+fcuk0fOySCBXmg8GvdWRDy/+pRNLlDwYeX8jmVtaNvvhV+yCV AoTHTyJSJVgCSmRKvA2vmBANa7VBoDDoxQT7SbSaYgcs37DnsFmPSPsnFpx8kStv VxjaxnaC8sPk8jUF2MrvdLWwGqryObxpliYk3PcvbRg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=6H1aOC wiMxU8YtAr/f9DTLOiYfNZRoErEIfBx489b3A=; b=M0hAwU+LPEH1KuA/KfQSOF wY85M9A946XPwc6cep6p+Liv5QoNuEFJARwIQwh0qXLw+5H5LtM125RxIZNDdL1u DuLAViG0KHF8y9LNGLGNTpJi7hWw7hH9jAFYzSblinLOwBVx0SfC0RmaXXZxaIgA jFfOPFtrlzg91LKdI8P9USCgasxY10SzpGNmn9r1Lpw/Sd5E6Eu7i/PTn3mCuUIq gy8MlGHJk4jyiL39K4N5t+q+UZ2Q8z/AyFdWU7fQVvQJ96kyBb11W/mtYZDSLh1g aciDNcCnRA+FsbGNpJkBdYXhr7BQmB4iiwLdvLI0S9f9dwjMBpz56G4YmEa1OPng == X-ME-Sender: X-ME-Proxy: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 36665102EB; Thu, 4 Oct 2018 07:11:50 -0400 (EDT) Date: Thu, 4 Oct 2018 20:11:48 +0900 From: Michael Paquier To: Pavel Stehule Cc: sergey@mirvoda.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15420: Server crash. Segmentation fault when parsing xml file Message-ID: <20181004111148.GF1256@paquier.xyz> References: <15420-6648d2ed070c05d4@postgresql.org> <20181004091103.GC1256@paquier.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="1XWsVB21DFCvn2e8" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --1XWsVB21DFCvn2e8 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 04, 2018 at 12:18:05PM +0200, Pavel Stehule wrote: > =C4=8Dt 4. 10. 2018 v 12:12 odes=C3=ADlatel Sergey Mirvoda > I am try to import this xml to Postgres with pgimportdoc >=20 > https://github.com/okbob/pgimportdoc >=20 > and looks like some libxml2 issue. >=20 > pgimportdoc: Unexpected result status: PGRES_FATAL_ERROR > pgimportdoc: Error: ERROR: invalid XML content > DETAIL: line 178950: internal error: Huge input lookup > =EF=BF=BD =D0=BE=D1=80=D0=B3=D0=B0=D0=BD=D0=B5 =D0=9F=D0=B5=D0=BD=D1=81= =D0=B8=D0=BE=D0=BD=D0=BD=D0=BE=D0=B3=D0=BE =D1=84=D0=BE=D0=BD=D0=B4=D0=B0 = =D0=A0=D0=BE=D1=81=D1=81=D0=B8=D0=B9=D1=81=D0=BA=D0=BE=D0=B9 =D0=A4=D0=B5= =D0=B4=D0=B5=D1=80 >=20 > ^ > line 178950: attributes construct error Sergey, what is the version of libxml2 bundled with the Windows installer and Ubuntu? You should normally be able to see which version it is on Windows by looking at the version number of the libxml2 dll... However libxml2 upstream is not smart enough to produce a version file if I recall correctly (please note last time I looked at that I had to add to the upstream tree a custom patch to associate a correct version to the produced dll, making sure that minor MSI upgrades were able to update the version of libxml2 bundled in a Postgres MSI installer I lately maintain). -- Michael --1XWsVB21DFCvn2e8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlu19XQACgkQnvQgOdby QH2ucQ//bkboD4xMRzNCIAJ8twFeDgpAXtKT2t4l9mE32ZJsRS+vRD3X/pmjp6/Q bHZVJhHl9LG95vCytxZancqmlS4u4J8qt7NjhgxoUkn07hMrPlpEa7AraTC0AMD/ knN0sVWH1SleO+GPWQn80VfiwK63sDKRCeVeEu3tQ61CAIN6EoyCTIzkIgapmHye Ch9sNMfp8MhMvZXjm3iE9P1co5IIb4nK/LB4bezXWmPT2BvDCgkQ9R6nBpPb+p0c mcvEd8nkGmsdeEDVMiJrVw2atfGXActYYHKILz/D3y/4r3HrqTj+yY6duiD6AVwC UKXf8L3mLIMoM8IqEJImhsdnqQP/MHqHc8zpEHKdhUyfvkpI+wp/iBSGEasZHQpR 6TRu4q2ABn0dVmS4juaISO0ZX1UlDKvgSDN9tW8LZKCazBml6xa+5oyukjQsBQpc q1KNdK8URnos0CnW52dcQZjy6xLO8Y6mQ38HPxjbiagNsqVUeFOhZFXP+JVZqhjC ZgulUHiF5ZcFXPbjLVt5YIjgTgGFSSm0K6DMJ+PNWUIqiFyF9d/rTPyTRK+ctUPp 6exvCNlrFTNm4MURBA4LGOYfCPO1yUdooxyUSAEWEJ6lhj3DWdfSoUD1XHzUFruD pIsikTh0AReZoCdvl2/0Seq/TeiPPp84BAELwqtXY5t5e9nioHM= =lWds -----END PGP SIGNATURE----- --1XWsVB21DFCvn2e8--