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 1mXMMS-0003wh-IZ for pgsql-general@arkaria.postgresql.org; Mon, 04 Oct 2021 11:42:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mXMMR-0001R7-Hq for pgsql-general@arkaria.postgresql.org; Mon, 04 Oct 2021 11:42:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mXMMQ-0001Qy-Tb for pgsql-general@lists.postgresql.org; Mon, 04 Oct 2021 11:42:23 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mXMMN-0006lf-LU for pgsql-general@postgresql.org; Mon, 04 Oct 2021 11:42:22 +0000 Received: by mail-ed1-x532.google.com with SMTP id dj4so64547095edb.5 for ; Mon, 04 Oct 2021 04:42:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=ZtuaRsf2A9eiBRrRxSMUFZZvIWrCCfo2n4jkoF0VWN4=; b=ao2ps+EhOdemBa2wTAfjbrMzRI6pmaAVBF/0zVmRRbDLPZhtvHtiklOUhMEmZilMY5 jfCwHEotGvI6nRiFuwNxUhS/ne/j9g9VluI5S89hCbpCYr+h5uL0/+6KWRM8NIRXrfDX BtWsiymU1Ni7ySdMw43BRqXOaN40nnqn3/kGGP3L8KQkjJ4f8PBeIcSJ+G5kxso8irTI ol+brKM6ETUlRx5EhuHspM/etKHGyM6939MEXlGNLzDoXZJVVGxXJ52qeEBCRhrbzB0m Ixo6LoJbQR4PJiyWDHHIThh7/rf1qN/mFkHzBnOCwpPTrQmyporLYQNf2dnKzqicjzGB K8cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ZtuaRsf2A9eiBRrRxSMUFZZvIWrCCfo2n4jkoF0VWN4=; b=LVOUzNBLYLossybRP/D8Y/4h/fIcNNz9xmvUKdMoUGOoN15nJoO5EYfJhK9FGaPPrg hAtR77sYgrER/+PP22BOWmqT1BioyaceDsXh3cE41f62P+NbND9TLKRCMQJL7+bRo+Pc xciF/JQvOwcogEYRwK9q4iMcOzx2NF2Wi7Q9nvQzljvb1SlQkS5XFee8nl6zyNijS1CM CUTziyl1RRCPSjIc86/uzxTIOJPAkicr4UQ4Fe8k8H0THKjpu/Y1FbLsYyTKfMai8Qd/ wbo2MRXhYtk+NxzqkX1wNfrCadZGRKv8Uivt2/8hd1QOjagHQcRftPPVg5sVMpUpbprL qWaw== X-Gm-Message-State: AOAM532y6wUjfDCqwCayzQDfgMENINhIlBBPEKbFQnxuttuZwauXlAPX B9+eXQjg6U1j1p8tpf8osSAMB7nMez3JPLmEQ5FLtmKZKbOI6z1kf/Aw7kVVS+flcyAdB1biYo3 mukZil1QEJJTqkxJFXFkTZr7MKsDQ0qS8CVWsQuhRKSbORL1dpdrUp+kau5Q7qzX2MyGuV6C72Y UlrcdQF/cuctStMNWp7k9gOcOhzss+A8Qt4jx6hwy8oEonVn+hXMvZq1GXbSh/2rIzGh1qoei3u OEqfptfyBrbTMydpRdDyTJmGvhX2x59Bzv8Xw== X-Google-Smtp-Source: ABdhPJz/Vdgp/lNcfLK7Fo6DODi5S1I69bIXc/avDaZlsWcjqPS+3Ofn1B4zY2t04iTG4fCvnTMfnA== X-Received: by 2002:a50:cc03:: with SMTP id m3mr12742891edi.278.1633347737597; Mon, 04 Oct 2021 04:42:17 -0700 (PDT) Received: from [10.137.0.18] (static-84-42-175-93.net.upcbroadband.cz. [84.42.175.93]) by smtp.gmail.com with ESMTPSA id s3sm6382434eja.87.2021.10.04.04.42.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Oct 2021 04:42:17 -0700 (PDT) Subject: Re: create a new GIN index for my own type To: "huangning290@yahoo.com" , "pgsql-general@postgresql.org" References: <2030212581.1470350.1633329041369.ref@mail.yahoo.com> <2030212581.1470350.1633329041369@mail.yahoo.com> From: Tomas Vondra Message-ID: <62c8b51c-2fd2-32b6-5b55-17223bee7b2f@enterprisedb.com> Date: Mon, 4 Oct 2021 13:42:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <2030212581.1470350.1633329041369@mail.yahoo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-CLOUD-SEC-AV-Info: enterprisedb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 10/4/21 8:30 AM, huangning290@yahoo.com wrote: > Hi: > I created a new data type, and then I wanted to create a GIN index for > it, but when I created the index, the program would crash 。 > The version of postgresql is 9.6。 > > The following is part of the code, and I also refer to the code of intarray. > I doubt anyone is going to investigate this unless you provide a more complete example - something like an extension where people can do "make install" without having to fill in various pieces of code. To investigate the crash, you need to attach a debugger to the backend and run the CREATE INDEX (or whatever triggers the crash). The debugger should catch the segfault and you'll be able to identify where exactly it crashes and why (and investigate). 1) first get PID of the backend SELECT pg_backend_pid(); 2) then attach a debugger to the backend gdb -p $PID (gdb) c 3) run the CREATE INDEX query 4) get backtrace from the debugger (gdb) bt regards -- Tomas Vondra EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company