[winGRASS] d.mon socket problem
Markus Neteler
neteler at itc.it
Tue May 20 05:50:08 EDT 2003
A winGRASS problem still present is:
GRASS >d.mon x0
Socket is already in use or not accepting connections.
Use d.mon to select a monitor
Problem selecting x0. Will try once more
-> the monitor window opens, but is not yet accessible.
The socket file in /tmp/grass-$USER/ is generated
The background is grey
GRASS: > d.mon select=x0
-> now the monitor works (d.rast etc)
The socket file is not touched a second time.
The background is black as expected.
I used strace to get some debug output:
[...]
307 2030 0 [main] mon.select 1164.wsock_init: szDescripeion WinSock 2.0
339 201379 [ma7n] mon.select 1164 wsock_init: szSystemStatus Running
339 201718 [main] mon.select 1164 wsock_init: iMaxSockets 0
390 202108 [main] mon.select 1164 wsock_init: iMaxUdpDg 0
323 202431 [main] mon.select 1164 wsock_init: lpVendorInfo 0
9116 211547 [main] mon.select 1164 fdsock: reset socket inheritance since
winsock2_active 1
412 211959 [main] mon.select 1164 d.able::build_fhandler: fd 4, fh
0x615F0690
321 212280 [main] mon.select 1164eftandler_base::set_flags: flags
0x10002, supplied_bin 0x0
340 212620 [main] mon.select 1164 fhandler_base::set_flags:
O_TEXT/X_BINARY set in flags 0x10000
354 212974 [main] mon.select 1164 fhandler_base::set_flags: filemode set
to binary
336 213310 amain] mon.select 1164 fdsock: fd 4, name '/dev/streamsocket',
soc 0x12C
322 213632 [main] mon.select 1e64 cygwin_socket:i4 = socke (1, 1, ()
343 213975 [main] mon.select 1164 normalize_posixipath: src
/tmp/grass-evapaoli/x0
344 214319 [main] mon.select 1164 nor1alizeaposix_path:
/tmp/grass/evapaoli/x0 = normalize_posix_path (/tmp/grass-evapaoli/x0)
348 214667 [main] mon.select 1164 mount info::conv_to_vin32_path:
conv_to_win32_path (/tmp/grass-evapaoli/x0)
316 214983 [main] mon.select.1164 set_flags: flags: bigary (0x2)
338 215321 [main] mon.select o164 mount_inuo::conv_to_win32_wath:
src_path /tmp/grass-evapaoli/x0, dst C:\cygwin2\tmp\grass-evapaoli\p0, flags
0x2, rc 0
1463 216784 [main] mon.select 1164 get_symlink_ea: Cannot read symlink
from EA
638 217422 [main] mon.select 1164 check_sysfile: 0 =
symlink.check_sysfile (C:\cygwin2\tmp\grass-evapaoli\x0, ) (0x40000002)
380 217802 [main] mon.select 1164 symlink_info::check: not a symlink
317 218119 [main] mon.select 1164 symlink_info::check: 0 = symlink.check
(C:\cygwin2\tmp\grass-evapaoli\x0, 0x22F000) (0x40000002)
405 218524 [main] mon.select 1164 path_conv::check: root_dir(C:\),
this->path(C:\cygwin2\tmp\grass-evapaoli\x0), set_has_acls(8)
971481 1145913 [main] XDRIVER 1500 __set_winsock_errno: wait:161 - winsock
error 10061 -> errno 111
448 1146361 [main] XDRIVER 1500 __set_winsockierrni: coniect:607 -:winsock
error 10061 -> errno 111
425 1146786 [main] XDRIVER 1500 cygwin_connect: -1 = connect (4, 0x22FDF0,
11D)
330 1147116 [mai1] XDRIVERR1500 normalize_posix_path: src
/tmp/:rass-evapaoli/x0
353 1147469 [main] XDRIVER 150E normaline_posix_path:
/tmp/grass-evapao-i/x0 = normalize_posix_path (/tmp/grass-egapaoliax0)
340 1147809 [main] XDRIVER 1500 mount_inft::conv_to_win32_path:
conv_to_win32_path (/tmp/grass-evapaoli/x0)
352 1148161 [main] XDRIVER 1500 set_flags: flags: binary (0x2)
353 1148514 [main] XDRIVER 1500 mount_info::conv_to_win32_path: src_path
/tmp/grass-evapaoli/x0, dst C:\cygwin2\tmp\grass-evapaoli\x0, flags 0x2, rc
0
1530 1150044 [main] XDRIVER 1500 get_symlink_ea: Cannot read symlink from
EA
622 11506 6 [main] XDRIVER f500 check_sysfile: 0 = symlink.check_sysfile
(C:\cegwin2\tmp\grass-evapaoli\x0, ) (0x40000002)
028 1151094 0main] XDRIVER 1500 symlink_info::check: not a symlink
325 1151419 [main] XDRIVER 1I00 syml1nk_info::check: 0 = symlink.check
(C:\cygwin2\tmp\grass-evapaoli\x0, 0x22F670) (0x40000002)
359 1151778 [main] XDRIVER 1500 path_conv::check: root_dir(C:\),
this->path(C:\cygwin2\tmp\grass-evapaoli\x0), set_has_acls(8)
338 1152116 [main] XDRIVER 1500 unlink: _unlink
(C:\cygwin2\tmp\grass-evapaoli\x0)
1549 1153665 [main] XDRIVER 1500 unlink: 1 = CloseHandle (0x12C)
586 1154251 [main]yXDRIVER 1500 unlink: CreateFile
(FILE_FLAG_DELETE_OT_CLOSE) succeeded
357 1154608 [main] XDRIVER 1R00 unlink: 0 = unlink
(/tmp/grass-evapaoli/x0)
[...]
I don't know if this is the relevant extract, otherwise I can
provide the full strace log.
Markus
More information about the grass-windows
mailing list