[Computer-go] cgos client crash: too many open files

Don Dailey dailey.don at gmail.com
Wed May 2 14:24:49 PDT 2012


On Wed, May 2, 2012 at 5:22 PM, Don Dailey <dailey.don at gmail.com> wrote:

> Specifically,  if you are on windows is it 32 or 64 bit and if you on
> linux is it 64 or 32 bit?
>
> I can also send you a corrected "cgosGtp.kit" which runs on all platforms
> as long as you have the appropriate runtime binary which is the best way to
> run these things.
>


Don



>
> Don
>
>
> On Wed, May 2, 2012 at 5:20 PM, Don Dailey <dailey.don at gmail.com> wrote:
>
>> Rémi,
>>
>> I have a change you might try but I'm not positive about whether it will
>> help.    I would prefer to make a version for you to check out first -
>> which platform are you on?
>>
>> Don
>>
>>
>> On Wed, May 2, 2012 at 4:42 PM, Rémi Coulom <Remi.Coulom at free.fr> wrote:
>>
>>> After a few days of running my program on CGOS, the 9x9 client crashed
>>> with the error message below. "lsof" shows that tclsh has a lot of open
>>> files. Maybe there is something that needs to be closed somewhere. Anybody
>>> got the same problem? Maybe that only happens when there are many players
>>> and the client re-opens a new file each time there is a new player.
>>>
>>> Rémi
>>>
>>> Server: cgos.boardspace.net
>>>  Port: 6867
>>>
>>> PLAYER              PRIORITY
>>> ------------------  --------
>>> CS-1250k               25.0%
>>> CS-250k                25.0%
>>> CS-50k                 25.0%
>>> CS-10k                 25.0%
>>>
>>> New player: CS-1250k
>>>
>>> couldn't execute "./cs9-1250k.sh": too many open files
>>>    while executing
>>> "open "|$invoke" r+"
>>>    (procedure "openPlayer" line 7)
>>>    invoked from within
>>> "openPlayer $name $password $invoke"
>>>    (procedure "switchPlayer" line 49)
>>>    invoked from within
>>> "switchPlayer"
>>>    ("gameover" arm line 14)
>>>    invoked from within
>>> "switch -exact $cmd {
>>>
>>>                info {
>>>                    # informational mssage from CGOS only
>>>                    # -----------------------------------
>>>                    log [string range $s 5..."
>>>    ("while" body line 27)
>>>    invoked from within
>>> "while {1} {
>>>
>>>    set err [catch {set sock [socket $cgos_server $cgos_port]} msg]
>>>
>>>    if { $err } {
>>>        log "Server startup return code: $err   msg: $msg..."
>>>    (file "./cgosGtp.tcl" line 402)
>>>
>>>
>>> ====================================================================================================
>>> output of "lsof":
>>> (400 similar lines snipped)
>>> tclsh     31785        coulom  400u     sock     0,4            9589142
>>> can't identify protocol
>>> tclsh     31785        coulom  401u     sock     0,4            9595353
>>> can't identify protocol
>>> tclsh     31785        coulom  402u     sock     0,4            9596062
>>> can't identify protocol
>>> tclsh     31785        coulom  403u     sock     0,4            9600736
>>> can't identify protocol
>>> tclsh     31785        coulom  404u     sock     0,4            9603055
>>> can't identify protocol
>>> tclsh     31785        coulom  405u     sock     0,4            9608415
>>> can't identify protocol
>>> tclsh     31785        coulom  406u     sock     0,4            9610568
>>> can't identify protocol
>>> tclsh     31785        coulom  407u     sock     0,4            9611420
>>> can't identify protocol
>>> tclsh     31785        coulom  408u     sock     0,4            9613458
>>> can't identify protocol
>>> tclsh     31785        coulom  409u     sock     0,4            9617849
>>> can't identify protocol
>>> tclsh     31785        coulom  410u     sock     0,4            9623717
>>> can't identify protocol
>>> tclsh     31785        coulom  411u     sock     0,4            9625689
>>> can't identify protocol
>>> tclsh     31785        coulom  412u     sock     0,4            9628467
>>> can't identify protocol
>>> tclsh     31785        coulom  413u     IPv4 9628958                TCP
>>> cluster-mostrare.lille.inria.fr:35136->
>>> ip14.50-31-1.static.steadfastdns.net:6819 (CLOSE_WAIT)
>>> tclsh     31785        coulom  414u     IPv4 9631218                TCP
>>> cluster-mostrare.lille.inria.fr:56096->
>>> ip14.50-31-1.static.steadfastdns.net:6819 (CLOSE_WAIT)
>>> tclsh     31785        coulom  415u     IPv4 9634615                TCP
>>> cluster-mostrare.lille.inria.fr:50507->
>>> ip14.50-31-1.static.steadfastdns.net:6819 (ESTABLISHED)
>>> tclsh     31785        coulom  416w     FIFO     0,6            9634536
>>> pipe
>>> tclsh     31785        coulom  417r     FIFO     0,6            9634537
>>> pipe
>>> tclsh     31785        coulom  419u      REG     8,8       0      34137
>>> /tmp/tcleTg8Cq (deleted)
>>>
>>> _______________________________________________
>>> Computer-go mailing list
>>> Computer-go at dvandva.org
>>> http://dvandva.org/cgi-bin/mailman/listinfo/computer-go
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://computer-go.org/pipermail/computer-go/attachments/20120502/3af855e3/attachment.html>


More information about the Computer-go mailing list