Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h2KKB-0004nE-LL for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Mar 2019 18:34: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 1h2KKA-0000oa-9F for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Mar 2019 18:34:26 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h2KK9-0000iH-T7 for pgsql-hackers@lists.postgresql.org; Fri, 08 Mar 2019 18:34:26 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h2KK6-0001dA-K3 for pgsql-hackers@lists.postgresql.org; Fri, 08 Mar 2019 18:34:24 +0000 Received: by mail-qk1-x741.google.com with SMTP id x6so11747557qki.6 for ; Fri, 08 Mar 2019 10:34:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=T9fQILEn3I5+f/YcxIONDLQn4wvmllQl9598vdd+bpc=; b=Z1BAW8/MD0MN2v9dAG8I/Nb4JFc9vSNPnPYT2mAx6I5ozCRMi8PwqiWRJKhg9ehlo5 +EMwSumAkNGmRjvMx8A5EORKxlT0lBxZPBNBSHPDkiijj/K7fv072csMJYIT0XyMbsKG x8vuYzUzNXuTwEyoGzD1Fb4L9MQCCU0LsokJ3qpcXIGOSS2wQRfC1i5+LV4VJ0brknBg LDYmDhHxGdL1KH8tg4iuhIqaECU9FL6o/IWdxIOLvJlWYIpZVZT/3tGXHGdDGPwFrlwS XW2RmYQAM9fUkNihuD6BbXh7O7/R4QsbZGuIn0AmhHNudkyabIGmFiOKKMXUuHv+4AqN 6OsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=T9fQILEn3I5+f/YcxIONDLQn4wvmllQl9598vdd+bpc=; b=bmVUStfVrAOgBVwnx4vL0Ta1WSLMeODXVSriOYljg82L7LUiFw+hyYPTWDxN1Fjcq6 EipwiLIWBCA9pNcMBn2eX6idFJ9Ty7FitlaondhndE9rBPnLLUAXA2zhGvCzKhVXa2cx 587wvvspp9IHOwVlh3KxTd+GPMEiKrYRsexl4V6Qg6OF7/U9z9eFI+wgrxcJiWgU+mmy qqvvY8gLPXMi3xuxYNaDtTQmAM5z6czz27mVolS8LZe2/0vi0BUhKk91vWT+UMgst+UU o9/g3A+77wsZ3TkWW5LSq3q1/LV7/aCdNe6EwF9mod5EWrvdgPObVKQ4jO/bj4T5snrP v5KQ== X-Gm-Message-State: APjAAAV9RJsMz9OEG3pfKWhdVs6UqbcyiKApkH+xZ3/Uw0gnFxgrOVi+ A84vihFZVMy8yBDGYsiaJ6+wvA== X-Google-Smtp-Source: APXvYqyszHS8b4rZrYgYzJQOSE0ekYeMTxom4zI8mpzAMGuCxrLiv4J1xIeLqGq/rXDm0DTbMArJWA== X-Received: by 2002:a37:bc04:: with SMTP id m4mr15268462qkf.41.1552070061661; Fri, 08 Mar 2019 10:34:21 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([201.186.80.67]) by smtp.gmail.com with ESMTPSA id h186sm4634703qkd.15.2019.03.08.10.34.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Mar 2019 10:34:20 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 9BE38121E60; Fri, 8 Mar 2019 15:34:17 -0300 (-03) Date: Fri, 8 Mar 2019 15:34:17 -0300 From: Alvaro Herrera To: Pavel Stehule Cc: Chapman Flack , Markus Winand , PostgreSQL Hackers Subject: Re: PostgreSQL vs SQL/XML Standards Message-ID: <20190308183417.GA4442@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk (I spent some time trying to reproduce the original bug, but was interrupted for lunch before getting a useful installation. I find it a bit strange that it doesn't crash in x86_64, mind ...) On 2019-Mar-08, Pavel Stehule wrote: > It fixes current issue, but I afraid so these two routines are not > replaceable. xmlFreeNodeList doesn't release xmlFreeDtd, XML_ATTRIBUTE_NODE > is not checked. :-( > Maybe we can call explicitly xmlFreeDoc instead xmlFreeNode > > some like > > if (cur_copy->type == XML_DOCUMENT_NODE) > xmlFreeDoc((xmlDocPtr) cur_copy); > else > xmlFreeNode(cur_copy); > > This looks most correct fix for me. What do you think? Seems like that should work, yeah ... -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services