Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDEfm-0002Vw-Mw for pgsql-bugs@arkaria.postgresql.org; Fri, 10 Nov 2017 19:09:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eDEfm-0003RS-6X for pgsql-bugs@arkaria.postgresql.org; Fri, 10 Nov 2017 19:09:02 +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 1eDEf1-0002A8-Mz for pgsql-bugs@postgresql.org; Fri, 10 Nov 2017 19:08:15 +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.89) (envelope-from ) id 1eDEez-0002gM-5F for pgsql-bugs@postgresql.org; Fri, 10 Nov 2017 19:08:14 +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 vAAJ8BI9001416; Fri, 10 Nov 2017 14:08:11 -0500 From: Tom Lane To: vincent.lachenal@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14897: Segfault on statitics SQL request In-reply-to: <20171110185747.31519.28038@wrigleys.postgresql.org> References: <20171110185747.31519.28038@wrigleys.postgresql.org> Comments: In-reply-to vincent.lachenal@gmail.com message dated "Fri, 10 Nov 2017 18:57:47 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1414.1510340891.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 10 Nov 2017 14:08:11 -0500 Message-ID: <1415.1510340891@sss.pgh.pa.us> 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 vincent.lachenal@gmail.com writes: > But one of the resquest I use causes segmentation fault to server process. > The request is : > SELECT > s.protocol, > s.mapper, > c.method, > s.nb_threads, > avg(c.client_end - c.client_start) / 1000000 AS total, > avg(c.server_end - c.server_start) / 1000000 AS server, > avg(c.server_start - c.client_start) / 1000000 AS client_to_server, > avg(c.client_end - c.server_end) / 1000000 AS server_to_client > FROM testsuite s > INNER JOIN testcall c ON s.id =3D c.test_suite_id > GROUP BY (s.protocol, s.mapper, c.method, s.nb_threads) > ORDER BY s.nb_threads, c.method, s.mapper, s.protocol; The query alone doesn't help us much. Can you put together a self-contained test case, including table declarations and some sample data? Also, are you using any non-default configuration settings? Alternatively, if you can get a stack trace from the crash, that might be enough info to diagnose it (no promises though). https://wiki.postgresql.org/wiki/Generating_a_stack_trace_of_a_PostgreSQL_b= ackend regards, tom lane --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs