BUG #13992: psql.exe occur a mistake "R6016 - not enough space for thread data"

Поиск
Список
Период
Сортировка
От huawei.zhoujianpeng@huawei.com
Тема BUG #13992: psql.exe occur a mistake "R6016 - not enough space for thread data"
Дата
Msg-id 20160228050011.10543.11794@wrigleys.postgresql.org
обсуждение исходный текст
Список pgsql-bugs
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.

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Thom Brown
Дата:
Сообщение: Server crash with certain encodings
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Server crash with certain encodings