Обсуждение: BUG #13992: psql.exe occur a mistake "R6016 - not enough space for thread data"
BUG #13992: psql.exe occur a mistake "R6016 - not enough space for thread data"
От
huawei.zhoujianpeng@huawei.com
Дата:
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.