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 1g8D1i-0006eM-3P for pgsql-bugs@arkaria.postgresql.org; Thu, 04 Oct 2018 23:27:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g8D1d-0002Et-M2 for pgsql-bugs@arkaria.postgresql.org; Thu, 04 Oct 2018 23:27:21 +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 1g8D1b-0002El-QS for pgsql-bugs@lists.postgresql.org; Thu, 04 Oct 2018 23:27:21 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g8D1W-00042n-PE for pgsql-bugs@lists.postgresql.org; Thu, 04 Oct 2018 23:27:18 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 5C93C21B4C; Thu, 4 Oct 2018 19:27:13 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 04 Oct 2018 19:27:13 -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=1IBlzQZi4dpfqHAUObfb1RNpGAY MGUGzh5XQa6lQ8Lc=; b=RdF/U/j3XQLIJBqNK5pGreUIBDj5tKnKSfy/TgXmYzB chzpoeVtfSeqDQ8bafvNPy4XDnadbipOqIuUYlm2Z7xz13L0F7cg3/6FHsc+gJec DmEHVsKN4Kh9VVNElnp+BPOxb8+Vgb9/4qRIV9W22jqhGSP+/+9ntSOpCY8sjLaZ hfjDTYF6qzoX0fmAM0U/97kPvBkpAsdbTt0kq6pUMJwmfkHCo+J19t+yq5Oj91Rr zF32YDdA7IT+NQRJHeVoDAqby8Bpaf/aIdH1YCjlg1S7YCzJoeX8qJg0ncY/8hPE b4WaDLLR7VooP8SW5U3Lwx+LIxSiwI+OesirbKfRy+w== 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=1IBlzQ Zi4dpfqHAUObfb1RNpGAYMGUGzh5XQa6lQ8Lc=; b=pI33bk/R9uLCPz4628dW8S o7y36foyH6+lXJ0/GBOyGXjQ7v2vcGptaZombobcO2qSlwyOeCiamkQVhnNofsK4 bAN27l6bzy3wwetrjsrAFOmA7d5rFy0wv2uGqmaCzJPBSffEYZURAXPIkcdQC05h Xlv9+1wdVUVtDWG3VR/g6n2WsK1ZGijAn9/a/NZyQYBbBqf6XCbTfq0f9/QNsAbP yYSIp9euOyJTRK6wC0xGecVS7QMI42ZxrkHN9hebkA9xif7Ydt+YAORLHjX8GrwT n4CcEm9RLKKCUAUKK7mbMVU90m0kTzjDJIwyLQT8Q9SLWQwN4zz0Cl9JWklur1Yw == 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 DB4ED102D2; Thu, 4 Oct 2018 19:27:09 -0400 (EDT) Date: Fri, 5 Oct 2018 08:27:06 +0900 From: Michael Paquier To: Pavel Stehule Cc: Sergey Mirvoda , Alvaro Herrera , Andrey Borodin , Andrew Borodin , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15420: Server crash. Segmentation fault when parsing xml file Message-ID: <20181004232706.GA1629@paquier.xyz> References: <20181004143100.45xjxw2r5j2dyd7e@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="T4sUOijqQbZv57TR" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --T4sUOijqQbZv57TR Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 04, 2018 at 05:02:05PM +0200, Pavel Stehule wrote: > =C4=8Dt 4. 10. 2018 v 16:42 odes=C3=ADlatel Sergey Mirvoda > napsal: >> Sure, but bug is mostly about unhandled server crash. Is it normal? >=20 > Nobody can handle process crash. This should be fixed on libxml2 side. If some code crashes in glibc or within a system call, impacting Postgres backends, there is usually little to do, and the correct call is to fix the place where the problem happens. If libxml2 has integrated with a new API which is considered safer to use, then we could consider working on improving Postgres regarding that aspect. -- Michael --T4sUOijqQbZv57TR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlu2ocoACgkQnvQgOdby QH2E5w//UcwTaNEXaYKO5Wi9ydxwODs12Q/c2/xeFYkLGo/N4XzEHZdCEgMQ8Hcc +i101+7lYHUArAi0JhtjZH073ZeY5Dppc1ShEdJa8sv9e2A9y+fnLQF/SdE8MWUi DagRQEg5J05l3V72tBhsPZ1GGRRHhWBuuJqAw9sYwPRUqnSlZ05imXS6BFBTEH6X EqwxHNaMTT5BMP8KltFjRrKH4ryMi1Xi5Rz0r515Ak1hwT4EOPV6i7lIKcFKHEit FNjxmDG+enlHOfSbhhrckQFFnlt3t+k/8hRIuwEwppWL+tmD2uuvJYR+60svddvs rbfi4xzO1rtDmoyONN7+7ccuv6GZZtSQgh5OUvsgXONHPff733/zFVMEkBobrODk /cfgriF12CubZKhVo3jyR+lsjQzmSGz9EjBDvbC/iZSDS+7Rm5CFv3nUUdqRg92B DBx8S79CGxVQTlfbdYDJqXSIKAaIWOe/s6FnhU6nnkZcjrceTAWqhWrJ9iepm/qn VNw6mt9JsPUA3GEpoyWotBfgswWG3B0Uvi3OfKweFysA1JUB4rsQp8t5dQjQxn3k 4vvyXvjTZ7PpDB2lEOLCkx8sUDgFb6yajoJVypiT4Vvzq4/Bc8HeMUuuDhyjeo9o e2NCWw8LaPdtp+6a0K6kxeRVIScDrHgBux6Bk2MFOrJ4CGzSeP8= =PPA4 -----END PGP SIGNATURE----- --T4sUOijqQbZv57TR--