Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tWEKP-00F8kl-Rh for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Jan 2025 12:41:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tWEKP-00Fwpz-5C for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Jan 2025 12:41:28 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tWEKO-00Fwpr-S0 for pgsql-hackers@lists.postgresql.org; Fri, 10 Jan 2025 12:41:28 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tWEKL-000sUP-1T for pgsql-hackers@postgresql.org; Fri, 10 Jan 2025 12:41:27 +0000 Received: from [192.168.11.6] (p4062048-ipxg13601funabasi.chiba.ocn.ne.jp [153.216.203.48]) by oss.nttdata.com (Postfix) with ESMTPSA id 9BEC2619AD; Fri, 10 Jan 2025 21:41:21 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at oss.nttdata.com Message-ID: Date: Fri, 10 Jan 2025 21:41:21 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pgbench error: (setshell) of script 0; execution of meta-command failed To: Andy Fan , pgsql-hackers References: <87msfz5qv2.fsf@163.com> <87ikqn5em7.fsf@163.com> Content-Language: en-US From: Fujii Masao In-Reply-To: <87ikqn5em7.fsf@163.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025/01/10 16:09, Andy Fan wrote: > Andy Fan writes: > >> Hi: >> >> I run into the {subject} issue with the below setup. >> >> cat foo.sql >> >> \setshell txn_mode echo ${TXN_MODE} >> \setshell speed echo ${SPEED} >> \setshell sleep_ms echo ${SLEEP_MS} >> \setshell subtxn_mode echo ${SUBTXN_MODE} >> >> select 1; >> >> $ TXN_MODE=-1 SPEED=1 SLEEP_MS=0 SUBTXN_MODE=-1 pgbench -n -ffoo.sql postgres -T5 -c4 --exit-on-abort >> >> I *randomly*(7/8) get errors like: >> >> pgbench (18devel) >> pgbench: error: client 2 aborted in command 0 (setshell) of script 0; execution of meta-command failed >> pgbench: error: Run was aborted due to an error in thread 0 Interestingly, my git bisect pointed to the following commit as the cause of this issue, even though it seems unrelated to the pgbench problem at all. It’s possible my git bisect result is incorrect, but when I reverted this commit on HEAD, the pgbench issue didn’t occur during my tests. ---------------------- 06843df4abc5a0c24e4bd154a8a1327e074fa3ae is the first bad commit commit 06843df4abc5a0c24e4bd154a8a1327e074fa3ae Author: Tom Lane Date: Fri Sep 29 14:07:30 2023 -0400 Suppress macOS warnings about duplicate libraries in link commands. ---------------------- Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION