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 1h25VC-0006hG-3l for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Mar 2019 02:44:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h25V9-0003Jl-Nt for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Mar 2019 02:44:47 +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 1h25V9-0003JY-Co for pgsql-hackers@lists.postgresql.org; Fri, 08 Mar 2019 02:44:47 +0000 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h25V2-0005Tl-1w for pgsql-hackers@lists.postgresql.org; Fri, 08 Mar 2019 02:44:45 +0000 Received: by mail-qt1-x844.google.com with SMTP id o6so19703142qtk.6 for ; Thu, 07 Mar 2019 18:44:39 -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=+RDaoIgMoZmznnfDPdO3Zyvyaf6Qx7hYxRMhVT0qZJk=; b=heLNfPcqIZwHh6zMYFxQCOiEBU1EGWXkpbn1gj7cR+4Ypc4OFSYdF+x2R8MU0+wY9B sKOZUPGb/3d4M1GWyrqLd4FShV/4QbSMqU7tr7HRpvI3vQVCsnyjbZzeocYZlN0hf8oU 9bku7JIiseQjaHtBYiiMb03G/Pxiqp++zoM7Lzyn40cVdlVIilJSEBUnsBre90tjpPsi DtL+JL6KwS1P41qfqdxokTrpqH9gdRFvZeuEyEJyGbc1UttnaEBUh7EEgC4RJ3hRlRBJ WvzLZap/wbdZvUIDyUcCuSCJMNqACFvotH3X5/zOHecvBg2nU6WOYMPqbjfhAgaLl1vo pEyQ== 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=+RDaoIgMoZmznnfDPdO3Zyvyaf6Qx7hYxRMhVT0qZJk=; b=t+8IoAfSh7qY5RwX4HI5RZ5eHUdz2TG8m8gfezEfxwvVyRO4uWXbLn362GNYN3BTAd qkFKg4YhjT8vUWpeVtQuM7ca4dy+b3r4aQq6ECMZjAzdLDLYHJT+m5W5VTTb2j2zv+nl isv1aRVocema68Sx+l8WhZ+rgNUwfFIF/yriCKo8/dF9TM79LvX7+9rFZWlqI+Lnrud+ paQHJyAkmi1iOWpUtbuwZQ8p6jUcHEtuRXJ3SBcLJyOzhB9uL0WrkS4juFb74Porv3Qk CyFLWMKwoRUC8NAeb1wDBA4L6lQBEqrgICvk+QIwms+XKzA+urU/uwNlaGRWBzi3Ty5Z gffA== X-Gm-Message-State: APjAAAUqUU2rlxssKKjbLpHsxDvt81XWKcNJcoKziyUDpfqlpc7imHxG aEfOA2NS7DyYXzaGigvKAtNIEOxTb8vwhQ== X-Google-Smtp-Source: APXvYqx0VmSsgvJJJaafRx0ZYKNdhpHw+PKmYSUOuI1slOCvhz2qHAxxGtWSc7Yt823j0MkADJuB/Q== X-Received: by 2002:a0c:9dcf:: with SMTP id p15mr13388540qvf.87.1552013079197; Thu, 07 Mar 2019 18:44:39 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([201.186.80.67]) by smtp.gmail.com with ESMTPSA id 14sm3609622qkf.23.2019.03.07.18.44.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Mar 2019 18:44:38 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 74A34121C68; Thu, 7 Mar 2019 23:44:36 -0300 (-03) Date: Thu, 7 Mar 2019 23:44:36 -0300 From: Alvaro Herrera To: Chapman Flack , Markus Winand , Pavel Stehule Cc: PostgreSQL Hackers Subject: Re: PostgreSQL vs SQL/XML Standards Message-ID: <20190308024436.GA2374@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190307212629.GA23767@alvherre.pgsql> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Mar-07, Alvaro Herrera wrote: > On 2019-Feb-11, Chapman Flack wrote: > > > xmltable-xpath-result-processing-bugfix-6.patch includes a regress/expected > > output for the no-libxml case that was left out of -5. > > Pushed this one, with some trivial changes: I renamed and relocated > Pavel's function to strdup-and-free and fused the new test cases to use > less queries for the same functionality. Naturally I had to adjust the > expected files ... I tried to do my best but there's always a little > something that sneaks under one's nose. So we now have a double-free bug here or something ... Too tired right now to do anything about it. https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=grison&dt=2019-03-08%2002%3A00%3A02 ================== stack trace: pgsql.build/src/test/regress/tmp_check/data/core ================== [New LWP 20275] warning: Can't read pathname for load map: Input/output error. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1". Core was generated by `postgres: pgbuildfarm regression [local] SELECT '. Program terminated with signal 11, Segmentation fault. #0 0x76a32e04 in free () from /lib/arm-linux-gnueabihf/libc.so.6 #0 0x76a32e04 in free () from /lib/arm-linux-gnueabihf/libc.so.6 #1 0x76e28380 in xmlFreeNode () from /usr/lib/arm-linux-gnueabihf/libxml2.so.2 #2 0x00481f94 in xml_xmlnodetoxmltype (cur=, xmlerrcxt=) at xml.c:3751 #3 0x004823dc in XmlTableGetValue (state=0x148c370, colnum=1994818404, typid=2124685192, typmod=0, isnull=0x7ea42117) at xml.c:4540 #4 0x0026df60 in tfuncLoadRows (econtext=0x2, tstate=0x14a8578) at nodeTableFuncscan.c:489 #5 tfuncFetchRows (tstate=0x14a8578, econtext=0x2) at nodeTableFuncscan.c:318 #6 0x0026e248 in TableFuncNext (node=0x14a83e0) at nodeTableFuncscan.c:65 #7 0x0023e640 in ExecScanFetch (recheckMtd=0x23e640 , accessMtd=0x26db1c , node=0x14a83e0) at execScan.c:93 #8 ExecScan (node=0x14a83e0, accessMtd=0x26db1c , recheckMtd=0x23e640 ) at execScan.c:143 #9 0x0023c638 in ExecProcNodeFirst (node=0x14a83e0) at execProcnode.c:445 #10 0x00235630 in ExecProcNode (node=0x14a83e0) at ../../../src/include/executor/executor.h:241 #11 ExecutePlan (execute_once=, dest=0x14b8d08, direction=, numberTuples=0, sendTuples=, operation=CMD_SELECT, use_parallel_mode=, planstate=0x14a83e0, estate=0x14a82a0) at execMain.c:1643 #12 standard_ExecutorRun (queryDesc=0x142c0e0, direction=, count=0, execute_once=true) at execMain.c:362 #13 0x003955f4 in PortalRunSelect (portal=0x13e3f48, forward=, count=0, dest=) at pquery.c:929 #14 0x00396a0c in PortalRun (portal=0x0, count=0, isTopLevel=, run_once=, dest=0x14b8d08, altdest=0x14b8d08, completionTag=0x7ea42414 "") at pquery.c:770 #15 0x003923c8 in exec_simple_query (query_string=0x7ea42414 "") at postgres.c:1215 #16 0x00393e8c in PostgresMain (argc=, argv=, dbname=0x0, username=) at postgres.c:4256 #17 0x000849a8 in BackendRun (port=0x13967b8) at postmaster.c:4399 #18 BackendStartup (port=0x13967b8) at postmaster.c:4090 #19 ServerLoop () at postmaster.c:1703 #20 0x0031607c in PostmasterMain (argc=, argv=) at postmaster.c:1376 #21 0x000864d4 in main (argc=7301080, argv=0x8) at main.c:228 -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services