Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1olX0e-0007UL-9p for pgsql-bugs@arkaria.postgresql.org; Thu, 20 Oct 2022 14:59:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1olWze-0008Ra-Q5 for pgsql-bugs@arkaria.postgresql.org; Thu, 20 Oct 2022 14:57:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1olWze-0008PR-HF for pgsql-bugs@lists.postgresql.org; Thu, 20 Oct 2022 14:57:58 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1olWzc-0001BF-74 for pgsql-bugs@lists.postgresql.org; Thu, 20 Oct 2022 14:57:57 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 29KEvtnq3041793; Thu, 20 Oct 2022 10:57:55 -0400 From: Tom Lane To: kdavydenka@gmail.ru cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17655: crash postgres by query In-reply-to: <17655-c56446e34b34eb86@postgresql.org> References: <17655-c56446e34b34eb86@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Thu, 20 Oct 2022 14:16:55 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3041791.1666277875.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 20 Oct 2022 10:57:55 -0400 Message-ID: <3041792.1666277875@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > Oct 20 14:52:21 server1 kernel: postgres[9328]: segfault at 1e88ff3 ip > 00007f55ad8414ff sp 00007fff0031e7f8 error 4 in > libc-2.17.so[7f55ad6eb000+1c3000] > Oct 20 14:52:21 server1 abrt-hook-ccpp[9329]: Process 35274(postgres) of > user 26 killed by SIGSEGV - dumping core > log from postgres > server process (PID 35274) was terminated by signal 11: Segmentation fau= lt = > Failed process was running: > select customer_id, birth_place from last_golden_record lgr where > birth_place like U&'%\000A%' With neither a stack trace nor a reproducible test case, there is little anyone can do with this report. There's some info about extracting stack traces from crashes at https://wiki.postgresql.org/wiki/Generating_a_stack_trace_of_a_PostgreSQL_= backend but if you could make a self-contained test case that'd be even better. Also: it's possible that this is less about a software bug than about corrupt data. Of course, we'd prefer the server not crash on corrupt data, but sometimes that happens. A simple thing to do that might help in such a case is to REINDEX whatever index(es) the query is using. But first see https://wiki.postgresql.org/wiki/Corruption Also: the 10.x series will reach EOL next month. You should be seriously working on updating to some later release branch. Whether doing so will provide a fix for this problem is hard to say, but it's not out of the question. regards, tom lane