Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aaE69-0006TA-F4 for pgsql-bugs@arkaria.postgresql.org; Mon, 29 Feb 2016 03:02:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aaE68-0001sF-T8 for pgsql-bugs@arkaria.postgresql.org; Mon, 29 Feb 2016 03:02:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aZtTm-0001oX-Hd for pgsql-bugs@postgresql.org; Sun, 28 Feb 2016 05:01:14 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aZtTc-00021W-UA for pgsql-bugs@postgresql.org; Sun, 28 Feb 2016 05:01:11 +0000 MIME-Version: 1.0 Subject: BUG #13992: psql.exe occur a mistake "R6016 - not enough space for thread data" To: pgsql-bugs@postgresql.org From: huawei.zhoujianpeng@huawei.com Date: Sun, 28 Feb 2016 05:00:11 +0000 Message-ID: <20160228050011.10543.11794@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.2 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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 The following bug has been logged on the website: Bug reference: 13992 Logged by: It will occurs a mistake "R6016 - not enough space for thread data" while running psql.exe repeatedl Email address: huawei.zhoujianpeng@huawei.com PostgreSQL version: 9.2.15 Operating system: Windows 7 Professional Description: 1. My test Platform: Windows 7 Professional Service Pack 1 32bit Microsoft Windows [Version 6.1.7601] 2. test steps: step1: download postgresql-9.2.15-1-windows-binaries.zip step2: uncompress all sub-directories to "C:\Program Files\gaussdb" step3: initdb C:\Program Files\gaussdb\bin>initdb -D "d:\data" step4: start server C:\Program Files\gaussdb\bin>pg_ctl start -D d:\data step5: Connect to the database to perform a simple query by constantly calling psql.exe by a bat script. the script is very easy, it's source code as followings: @echo off set n=0 :myAuto "C:\Program Files\gaussdb\bin\psql.exe" -d postgres -c "select 1;" echo %n% set /a n+=1 if %n%==1000000000 (exit) goto myAuto When it is running for a period of time, an error will occur as followings: Runtime Error! Program: R6016 - not enough space for thread data 3. I search some error about R6016, microsoft has some explain https://msdn.microsoft.com/en-us/library/d509d9f9.aspx and https://support.microsoft.com/en-us/kb/126709#/en-us/kb/126709 but i still don't know the reason, is it a bug of psql.exe or some other reason? and win7 64bit platform can also occur the error besides win7 32bit platform. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs