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 1iFh9H-0000wv-20 for pgsql-bugs@arkaria.postgresql.org; Wed, 02 Oct 2019 16:06:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iFh9F-000262-NT for pgsql-bugs@arkaria.postgresql.org; Wed, 02 Oct 2019 16:06:41 +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 1iFgk7-0004Wl-0h for pgsql-bugs@lists.postgresql.org; Wed, 02 Oct 2019 15:40:43 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iFgk3-0003Wj-NZ for pgsql-bugs@lists.postgresql.org; Wed, 02 Oct 2019 15:40:41 +0000 Received: by mail-wr1-x444.google.com with SMTP id w12so20228766wro.5 for ; Wed, 02 Oct 2019 08:40:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=naviter-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=9lJtPpCs37M+3DNgU8ZQaVuJuxyn/+vPEHjE2+86g2c=; b=MzNrdkaQ6L1oPHHEPNg0pQnlDrvc+J53BtUhsgGZ7HeEkdehvGTJGd+gGnz1aBwIM+ wxcZS8Vykf74IbRHVtYmA4uPt4e7uwFLbeTpAdhoPSujj2vDc1H3mwxFVBNhptdEs0xD JCVkUQCfiHsp9uSVocnzu80lD9PFNMU3ngb2TwfZtcGvukYz29SlyLV/93cWoIDtFLnP 1CRK3bQ1lFMQaT8z0Ym5fI5BI36mwEG2gl52jKqTUhaplsePzW75BjNIB8OeY45jI/ng 8qnRh8QAnoiG4iwEFni5Gg96/e/RmqEBQpWagAWUCduScZc6L0sPgneDeBTz1IR0omBs YNaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding:content-language; bh=9lJtPpCs37M+3DNgU8ZQaVuJuxyn/+vPEHjE2+86g2c=; b=E/EftP3FznBOaM38mWhYatgnWsWJP6teWy2opj4vNVOH8/W1ebXgOHKlepuw8ppyPE REICKOSnE4W6W2Etis6Fz0DZqMycHFQwJxNt5dI1z6QGuQJXOtsbG8mK8INtF4I2ng5M 851sGWFtSyQ1BfeUoFCRMJm4JOicQtbmGEymTKgY7fqhlv8LNudi6k1yDB1fuRC7QSZc qNsfxn9sBD92CQetQy5rdiVGM63evCDzPciM4eS2ATZS0uRdsguFYFQR9MidZ4zTCpry xDBEBnkBD/hiqe6DxoNHltwjklxhFzEiZp+i+qPP8OwwJDxrC5MrNhp0uPaznrZzzk5D RCdQ== X-Gm-Message-State: APjAAAX2lFgRwYBCF+Ywr6g5ntW0IVkOIc57fV+gjcH5wLeCRUzUoRiT FsFU6W/5dqr8y4xYQI+uGU6O+2SLCtg= X-Google-Smtp-Source: APXvYqyHDJIvOKqKpa4ZGH/LN9+MXFcexHz0GASxBWzW8uI6zfr4Jol/4VMC/8/i4ml9aHZ/QRbwhw== X-Received: by 2002:a05:6000:1281:: with SMTP id f1mr3315373wrx.247.1570030837543; Wed, 02 Oct 2019 08:40:37 -0700 (PDT) Received: from ?IPv6:2a01:260:1022:2:fc6c:b823:ca28:9103? ([2a01:260:1022:2:fc6c:b823:ca28:9103]) by smtp.googlemail.com with ESMTPSA id f66sm9815634wmg.2.2019.10.02.08.40.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Oct 2019 08:40:37 -0700 (PDT) Subject: Re: BUG #16033: segmentation fault when runing update To: Tom Lane Cc: pgsql-bugs@lists.postgresql.org References: <16033-6c9a1ddbdad9f296@postgresql.org> <32600.1570024314@sss.pgh.pa.us> From: Miha Vrhovnik Organization: Naviter d.o.o. Message-ID: <96a2b703-9e74-bc35-c700-bccbf8678c66@naviter.com> Date: Wed, 2 Oct 2019 17:40:35 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <32600.1570024314@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 02/10/2019 15:51, Tom Lane wrote: > PG Bug reporting form writes: >> We are launching a ne service and decided to test the new 12rc1 >> It happens that from time to time the postgresql crashes with segmentation >> fault. > We're unlikely to be able to do anything about this without more > information. A self-contained test case would be ideal, otherwise > maybe you could get a stack trace from the crash? > > https://wiki.postgresql.org/wiki/Generating_a_stack_trace_of_a_PostgreSQL_backend > > regards, tom lane FYI: This is PG12 specific I've moved the service to 11.5 and it works without problems. Unfortunately I'd need a bit of hand holding for generating a core as I've added the `ulimit -c unlimited` at the top of the init.d file but to no avail. cat /etc/init.d/postgresql #!/bin/sh set -e ulimit -c unlimited ### BEGIN INIT INFO # Provides:             postgresql # Required-Start:       $local_fs $remote_fs $network $time # Required-Stop:        $local_fs $remote_fs $network $time # Should-Start:         $syslog # Should-Stop:          $syslog # Default-Start:        2 3 4 5 # Default-Stop:         0 1 6 # Short-Description:    PostgreSQL RDBMS server ### END INIT INFO # Setting environment variables for the postmaster here does not work; please # set them in /etc/postgresql///environment instead. [ -r /usr/share/postgresql-common/init.d-functions ] || exit 0 . /usr/share/postgresql-common/init.d-functions # versions can be specified explicitly if [ -n "$2" ]; then     versions="$2 $3 $4 $5 $6 $7 $8 $9" else     get_versions fi case "$1" in     start|stop|restart|reload)         if [ "$1" = "start" ]; then             create_socket_directory         fi         if [ -z "`pg_lsclusters -h`" ]; then             log_warning_msg 'No PostgreSQL clusters exist; see "man pg_createcluster"'             exit 0         fi         for v in $versions; do             $1 $v || EXIT=$?         done         exit ${EXIT:-0}         ;;     status)         LS=`pg_lsclusters -h`         # no clusters -> unknown status         [ -n "$LS" ] || exit 4         echo "$LS" | awk 'BEGIN {rc=0} {if (match($4, "down")) rc=3; printf ("%s/%s (port %s): %s\n", $1, $2, $3, $4)}; END {exit rc}'         ;;     force-reload)         for v in $versions; do             reload $v         done         ;;     *)         echo "Usage: $0 {start|stop|restart|reload|force-reload|status} [version ..]"         exit 1         ;; esac exit 0 find / -name core /dev/core find: ‘/sys/kernel/debug’: Permission denied find: ‘/sys/fs/pstore’: Permission denied find: ‘/sys/fs/fuse/connections/65’: Permission denied find: ‘/sys/fs/fuse/connections/64’: Permission denied /proc/sys/net/core find: ‘/proc/tty/driver’: Permission denied BTW this is running in unprivileged LXC container. -- Z lepimi pozdravi / with kind regards, Miha Vrhovnik