[Freeciv-Dev] [bug #24249] client cannot start server

2016-01-02 Thread Marko Lindqvist
Follow-up Comment #20, bug #24249 (project freeciv):

> I wonder if it tries to bind the exactly same thing twice and latter attempt
fails because it already got it itself.

We've debugged this with chrisk, and this seems to be the case. First it
success in binding "127.0.0.1:5557" and then it fails to bind
"127.0.0.1:5557".

___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #24249] client cannot start server

2016-01-02 Thread Marko Lindqvist
Update of bug #24249 (project freeciv):

Category:None => general
  Status:None => In Progress

___

Follow-up Comment #21:

I don't think there's anything illegal in getaddrinfo() giving same address
multiple times. I would expect that to happen with setups with multiple
network interfaces.

WIP patch to skip duplicate addresses attached for testing.

(file #26241)
___

Additional Item Attachment:

File name: DuplicateAddr.patchSize:20 KB


___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #24249] client cannot start server

2016-01-02 Thread Christian Knoke
Follow-up Comment #22, bug #24249 (project freeciv):

The patch does not work for me. No change for the matter.

OTOH, with the patched revision, I just got a "connection rejected"
("Verbindungsaufbau abgelehnt") in the client, trying to connect to a
seperately started server. None of the programs log anything on debug=4. At
the same time, netstat shows this:

tcp0  0 127.0.0.1:5556  0.0.0.0:*   LISTEN
 1000   25967   1161/freeciv-server
udp0  0 0.0.0.0:45550.0.0.0:* 
 1000   25968   1161/freeciv-server
udp0  0 0.0.0.0:45560.0.0.0:* 
 1000   26251   1162/freeciv-gtk3

freeciv-server was started with --bind 127.0.0.1

Related or not. 



___

Reply to this item at:

  

___
  Nachricht gesendet von/durch Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #24249] client cannot start server

2016-01-01 Thread Christian Knoke
Follow-up Comment #15, bug #24249 (project freeciv):

The socket ist opened in sernet.c:1172 (succesfully, can see with netstat) and
closed shortly after in 1189/1191.



___

Reply to this item at:

  

___
  Nachricht gesendet von/durch Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #24249] client cannot start server

2016-01-01 Thread Marko Lindqvist
Follow-up Comment #18, bug #24249 (project freeciv):

So it says that the list size is 2:
> bind failure: Address already in use (2 failed)
...but lists only one:
> Host: 127.0.0.1, Port: 5557

1) Wasn't there even "Last message repeated 2 times" after this?
2) Are you sure you have a build where you changed LOG_DEBUG to LOG_NORMAL in
use? One of them is logged on LOG_NORMAL level outside the loop even without
any changes to the code.


___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #24249] client cannot start server

2016-01-01 Thread Christian Knoke
Follow-up Comment #17, bug #24249 (project freeciv):

> > closed shortly after in 1189/1191.


> That's exactly why I would have liked to see the list of all (according to
your log: 2) addresses as logged from line 1217. Can you make that LOG_NORMAL
for your test, if you can't get the LOG_DEBUG level log out? 

I changed it in sernet.c

-->-->--
3: [T000 - 2016/01/01 23:58:32] in log_init() [log.c::231]: log started
4: [T000 - 2016/01/01 23:58:32] in log_init() [log.c::232]: LOG_DEBUG test
3: [T000 - 2016/01/01 23:58:32] in server_open_socket() [sernet.c::1114]:
Server attempting to listen on localhost:5557
0: [T000 - 2016/01/01 23:58:32] in server_open_socket() [sernet.c::1210]: bind
failure: Address already in use (2 failed)
2: [T000 - 2016/01/01 23:58:32] (null)Backtrace:
2: [T000 - 2016/01/01 23:58:32] (null)0:
freeciv-server(backtrace_print+0x16) [0x82962c6]
2: [T000 - 2016/01/01 23:58:32] (null)1: freeciv-server(vdo_log+0x76)
[0x8299a56]
2: [T000 - 2016/01/01 23:58:32] (null)2: freeciv-server(do_log+0x2a)
[0x8299a9a]
2: [T000 - 2016/01/01 23:58:32] (null)3:
freeciv-server(server_open_socket+0x279) [0x81386f9]
2: [T000 - 2016/01/01 23:58:32] (null)4: freeciv-server(srv_main+0x62)
[0x807d902]
2: [T000 - 2016/01/01 23:58:32] (null)5: freeciv-server(main+0x25b)
[0x807482b]
2: [T000 - 2016/01/01 23:58:32] (null)6:
/lib/i386-linux-gnu/i686/cmov/libc.so.6(__libc_start_main+0xf3) [0xb5a9ea63]
2: [T000 - 2016/01/01 23:58:32] (null)7: freeciv-server() [0x8075116]
2: [T000 - 2016/01/01 23:58:32] in sockaddr_debug() [netintf.c::290]: Host:
127.0.0.1, Port: 5557
--<--<--


___

Reply to this item at:

  

___
  Nachricht gesendet von/durch Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #24249] client cannot start server

2016-01-01 Thread Christian Knoke
Follow-up Comment #19, bug #24249 (project freeciv):

> 1) Wasn't there even "Last message repeated 2 times" after this? 

no

> 2) Are you sure you have a build where you changed LOG_DEBUG to LOG_NORMAL
in use? One of them is logged on LOG_NORMAL level outside the loop even
without any changes to the code. 

I have no changes besides 2*LOG_DEBUG in sernet.c

I get the impression that debug level 4 in server does not work. Or there are
no other level 4 messages implemented. As you can see, the only level 4
message displayed ist the "test" that you patched in. I start freeciv-server
on the command line with -d 4, but gtk3 client starts it always with -d 3.

Christian


___

Reply to this item at:

  

___
  Nachricht gesendet von/durch Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #24249] client cannot start server

2016-01-01 Thread Christian Knoke
Follow-up Comment #14, bug #24249 (project freeciv):


1. used revision 31289 with improved logging

2. my compile options:
--enable-svnrev
--enable-gitrev
--enable-xml-registry
--with-followtag
--enable-dev-save-compat=yes
--with-readline
--enable-freeciv-manual=html
--enable-mapimg=no
--enable-sdl-mixer
--enable-ruledit=no
--enable-debug=yes
--enable-ipv6=no
--enable-sys-lua=no
--with-missinglist

3. I start with 

$ LANG= freeciv-gtk3 --log ...

freeciv-server though, is started from within freeciv-gtk3 always with debug
level 3, no matter what debug level I choose on the command line. I provide 2
logs (shortened) level 3 and 4 for demonstration and comparison.

4. The best for the end.

Trying to start freeciv-server with the exact command line that freeciv-gtk3
calls.

With option --bind localhost the start goes fail.

$ LANG= freeciv-server -p 5557 --bind localhost -q 1 -e --saves
~/.freeciv/saves --scenarios ~/.freeciv/scenarios -A none --debug 4  --log
nolog
Encodings: Data=UTF-8, Local=ISO-8859-1, Internal=UTF-8
This is the server for Freeciv version 2.90.99-dev (r31289)
You can learn a lot about Freeciv at http://www.freeciv.org/
0: bind failure: Address already in use (2 failed)
2: Backtrace:
2: 0: freeciv-server(backtrace_print+0x16) [0x82962c6]
2: 1: freeciv-server(vdo_log+0x76) [0x8299a56]
2: 2: freeciv-server(do_log+0x2a) [0x8299a9a]
2: 3: freeciv-server(server_open_socket+0x279) [0x81386f9]
2: 4: freeciv-server(srv_main+0x62) [0x807d902]
2: 5: freeciv-server(main+0x25b) [0x807482b]
2: 6: /lib/i386-linux-gnu/i686/cmov/libc.so.6(__libc_start_main+0xf3)
[0xb5b40a63]
2: 7: freeciv-server() [0x8075116]
2: Host: 127.0.0.1, Port: 5557
$

Without the option --bind localhost, everything goes fine

$ LANG= freeciv-server -p 5557 -q 1 -e --saves ~/.freeciv/saves --scenarios
~/.freeciv/scenarios -A none --debug 4  --log nologEncodings: Data=UTF-8,
Local=ISO-8859-1, Internal=UTF-8
This is the server for Freeciv version 2.90.99-dev (r31289)
You can learn a lot about Freeciv at http://www.freeciv.org/
2: Loading rulesets.

That also proves, that the socket is free, when the client starts the server.
I can start freeciv-server -p 5557 at the same time where the client says it
can't.

see file serverlogs

Christian



(file #26231, file #26232, file #26233, file #26234)
___

Additional Item Attachment:

File name: gtk3-level3-log2   Size:6 KB
File name: gtk3-level4-log2   Size:8 KB
File name: serverlogs Size:15 KB
File name: server-level4-nobind-log2.xz   Size:10 KB


___

Reply to this item at:

  

___
  Nachricht gesendet von/durch Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #24249] client cannot start server

2016-01-01 Thread Marko Lindqvist
Follow-up Comment #16, bug #24249 (project freeciv):

> closed shortly after in 1189/1191.

That's exactly why I would have liked to see the list of all (according to
your log: 2) addresses as logged from line 1217. Can you make that LOG_NORMAL
for your test, if you can't get the LOG_DEBUG level log out?

We already see that the *failing* bind() is about "127.0.0.1:5557" I wonder if
it tries to bind the exactly same thing twice and latter attempt fails because
it already got it itself.

___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #24249] client cannot start server

2015-12-31 Thread Christian Knoke
Follow-up Comment #11, bug #24249 (project freeciv):

Ok, for a very short tine, a single run of ps aux, I see 

chris28778  0.0  0.1  44012  4024 pts/1R+   21:58   0:00
freeciv-server -p 5557 --bind localhost -q 1 -e --saves ~/.freeciv/saves
--scenarios ~/.freeciv/scenarios -A none --debug 3 --log log1

chris27939  9.0  1.9 180300 41120 pts/1Sl+  21:58   0:01 freeciv-gtk3
--debug 4 --log log1
chris28778  0.0  0.0  0 0 pts/1Z+   21:58   0:00
[freeciv-server] 

and that reveals why the debug message you wanted is not there...



___

Reply to this item at:

  

___
  Nachricht gesendet von/durch Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #24249] client cannot start server

2015-12-31 Thread Christian Knoke
Follow-up Comment #12, bug #24249 (project freeciv):

I recompiled  w/o --enable-ipv6=no and here is the relevant portion of the
log:

4: in set_client_page() [update_queue.c::483]: Requested page: PAGE_MAIN.
4: in genhash_new_nbuckets() [genhash.c::214]: New genhash table with 29
buckets
4: in real_set_client_page() [pages.c::3162]: Switching client page from (no
page) to PAGE_MAIN.
4: in get_mapview_scroll_window() [mapview_common.c::805]: x:
0.00<-1->1.00; y: 0.00<-1.00->1
4: in genhash_new_nbuckets() [genhash.c::214]: New genhash table with 29
buckets

[pressed button: Start New Game]


3: in client_start_server() [connectdlg_common.c::285]: Arguments to spawned
server: -p 5557 --bind localhost -q 1 -e --saves ~/.freeciv/saves
Encodings: Data=UTF-8, Local=ISO-8859-1, Internal=UTF-8
This is the server for Freeciv version 2.90.99-dev (r31275)
You can learn a lot about Freeciv at http://www.freeciv.org/
3: [T000 - 2015/12/31 22:33:09] in log_init() [log.c::231]: log started
3: [T000 - 2015/12/31 22:33:09] in server_open_socket() [sernet.c::1113]:
Server attempting to listen on localhost:5557
2: [T000 - 2015/12/31 22:33:09] in load_rulesetdir() [ruleset.c::7273]:
Loading rulesets.
2: Loading rulesets.


___

Reply to this item at:

  

___
  Nachricht gesendet von/durch Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #24249] client cannot start server

2015-12-31 Thread Christian Knoke
Follow-up Comment #10, bug #24249 (project freeciv):


Looks like the server never comes up. I kinda supervised ps and netstat 

$ while true ; do ps aux ; done | grep freeciv | grep -v grep
$ netstat -tanepc

and started

$ LANG= freeciv-gtk3 --debug 4 --log log1

but got no related level 4 messages.

Christian



(file #26222)
___

Additional Item Attachment:

File name: log1.bz2   Size:120 KB


___

Reply to this item at:

  

___
  Nachricht gesendet von/durch Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #24249] client cannot start server

2015-12-31 Thread Christian Knoke
Follow-up Comment #13, bug #24249 (project freeciv):

This is  a very wild guess of mine

since I followed this portion of code in passing years

I think the server THINKS it cannot use the socket because this piece of
information is inherited from the exec call.

chrisk


___

Reply to this item at:

  

___
  Nachricht gesendet von/durch Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #24249] client cannot start server

2015-12-30 Thread Marko Lindqvist
Follow-up Comment #9, bug #24249 (project freeciv):

After logging that "bind failed: Address already in use", server gives
LOG_DEBUG level output about all the addresses in the list of addresses to
handle. Can you get that with something like
freeciv-server --bind localhost -d 4:netintf.c
where path to the source file is the same as from your build directory (I had
to do "-d 4:../../../src/utility/netintf.c" myself in order to test that it
works)

___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #24249] client cannot start server

2015-12-30 Thread Christian Knoke
Follow-up Comment #7, bug #24249 (project freeciv):

don't think so

I doublechecked when I read the message and the port was not in use, nor was
freeciv-server running.



___

Reply to this item at:

  

___
  Nachricht gesendet von/durch Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #24249] client cannot start server

2015-12-30 Thread Christian Knoke
Follow-up Comment #1, bug #24249 (project freeciv):



maybe ipv6?

./configure --enable-dev-save-compat=yes --enable-svnrev --enable-xml-registry
--enable-debug=yes --enable-gprof --enable-freeciv-manual=html --with-readline
--with-followtag --enable-mapimg=no --enable-sdl-mixer --enable-ipv6=no
--enable-sys-lua=no --enable-ruledit=no --with-missinglist

Freeciv version 2.90.99-dev (r31265) 

~$ LANG= freeciv-gtk3 
...
1: Failed to connect to spawned server!
2: Backtrace:
2: 0: freeciv-gtk3(backtrace_print+0x1f) [0x826651f]
2: 1: freeciv-gtk3(vdo_log+0x63) [0x826b433]
2: 2: freeciv-gtk3(do_log+0x28) [0x826b468]
2: 3: freeciv-gtk3(client_start_server+0x395) [0x80b0695]
2: 4: freeciv-gtk3(client_start_server_and_set_page+0xa3) [0x8111f03]
2: 5:
/usr/lib/i386-linux-gnu/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOIDv+0x47)
[0xb4e894e7]
2: 6: /usr/lib/i386-linux-gnu/libgobject-2.0.so.0(+0xda5f) [0xb4e87a5f]
2: 7:
/usr/lib/i386-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0x889)
[0xb4ea17f9]
2: 8: /usr/lib/i386-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x25)
[0xb4ea20d5]
2: 9: /usr/lib/i386-linux-gnu/libgtk-3.so.0(gtk_button_clicked+0x71)
[0xb544b731]
2:10: /usr/lib/i386-linux-gnu/libgtk-3.so.0(+0xf190d) [0xb544b90d]
2:11: /usr/lib/i386-linux-gnu/libgtk-3.so.0(+0xf1966) [0xb544b966]
2:12:
/usr/lib/i386-linux-gnu/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOIDv+0x27)
[0xb4e894c7]
2:13: /usr/lib/i386-linux-gnu/libgobject-2.0.so.0(+0xc2e2) [0xb4e862e2]
2:14: /usr/lib/i386-linux-gnu/libgobject-2.0.so.0(+0xda5f) [0xb4e87a5f]
2:15:
/usr/lib/i386-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0x889)
[0xb4ea17f9]
2:16: /usr/lib/i386-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x25)
[0xb4ea20d5]
2:17: /usr/lib/i386-linux-gnu/libgtk-3.so.0(+0xef75b) [0xb544975b]
2:18: /usr/lib/i386-linux-gnu/libffi.so.6(ffi_call_SYSV+0x1a)
[0xb3e6da82]
2:19: /usr/lib/i386-linux-gnu/libffi.so.6(ffi_call+0x76) [0xb3e6d556]
2:20:
/usr/lib/i386-linux-gnu/libgobject-2.0.so.0(g_cclosure_marshal_generic_va+0x21d)
[0xb4e883bd]
2:21: /usr/lib/i386-linux-gnu/libgobject-2.0.so.0(+0xda5f) [0xb4e87a5f]
2:22:
/usr/lib/i386-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0x889)
[0xb4ea17f9]
2:23: /usr/lib/i386-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x25)
[0xb4ea20d5]
2:24: /usr/lib/i386-linux-gnu/libgtk-3.so.0(+0x19d3d4) [0xb54f73d4]
2:25:
/usr/lib/i386-linux-gnu/libgobject-2.0.so.0(g_cclosure_marshal_VOID__BOXEDv+0x4e)
[0xb4e8a47e]
2:26: /usr/lib/i386-linux-gnu/libgobject-2.0.so.0(+0xc2e2) [0xb4e862e2]
2:27: /usr/lib/i386-linux-gnu/libgobject-2.0.so.0(+0xda5f) [0xb4e87a5f]
2:28:
/usr/lib/i386-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0x889)
[0xb4ea17f9]
2:29: /usr/lib/i386-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x25)
[0xb4ea20d5]
2:30: /usr/lib/i386-linux-gnu/libgtk-3.so.0(+0x19a9cd) [0xb54f49cd]
2:31: /usr/lib/i386-linux-gnu/libgtk-3.so.0(+0x19bed1) [0xb54f5ed1]
2:32: /usr/lib/i386-linux-gnu/libgtk-3.so.0(+0x19ea44) [0xb54f8a44]
2:33:
/usr/lib/i386-linux-gnu/libgtk-3.so.0(gtk_event_controller_handle_event+0x8b)
[0xb54c9acb]
2:34: /usr/lib/i386-linux-gnu/libgtk-3.so.0(+0x31c14f) [0xb567614f]
2:35: /usr/lib/i386-linux-gnu/libgtk-3.so.0(+0x1e44cd) [0xb553e4cd]
2:36: /usr/lib/i386-linux-gnu/libgobject-2.0.so.0(+0xc2e2) [0xb4e862e2]
2:37: /usr/lib/i386-linux-gnu/libgobject-2.0.so.0(+0xda5f) [0xb4e87a5f]
2:38:
/usr/lib/i386-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0x3e3)
[0xb4ea1353]
2:39: /usr/lib/i386-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x25)
[0xb4ea20d5]
2:40: /usr/lib/i386-linux-gnu/libgtk-3.so.0(+0x3200ac) [0xb567a0ac]
2:41: /usr/lib/i386-linux-gnu/libgtk-3.so.0(+0x1e1982) [0xb553b982]
2:42: /usr/lib/i386-linux-gnu/libgtk-3.so.0(gtk_main_do_event+0x6f1)
[0xb553d961]
2:43: /usr/lib/i386-linux-gnu/libgdk-3.so.0(+0x202e8) [0xb52b12e8]
2:44: /usr/lib/i386-linux-gnu/libgdk-3.so.0(+0x47f37) [0xb52d8f37]
2:45: /lib/i386-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x244)
[0xb4d98da4]
2:46: /lib/i386-linux-gnu/libglib-2.0.so.0(+0x470c9) [0xb4d990c9]
2:47: /lib/i386-linux-gnu/libglib-2.0.so.0(g_main_loop_run+0xf9)
[0xb4d99479]
2:48: /usr/lib/i386-linux-gnu/libgtk-3.so.0(gtk_main+0x9e) [0xb553c9de]
2:49: freeciv-gtk3(ui_main+0x184e) [0x808814e]
2:50: freeciv-gtk3(client_main+0x3b4) [0x80ae6c4]
2:51: freeciv-gtk3(main+0x20) [0x8085150]
2:52: /lib/i386-linux-gnu/i686/cmov/libc.so.6(__libc_start_main+0xf3)
[0xb4ba4a63]
2:53: freeciv-gtk3() [0x8085181]

~$ LANG= freeciv-server -p 5557 --bind localhost -q 1 -e --saves
~/.freeciv/saves --scenarios ~/.freeciv/scenarios -A none
Encodings: Data=UTF-8, Local=ISO-8859-1, Internal=UTF-8
This is the server for Freeciv version 2.90.99-dev (r31265)
You can learn a lot about Freeciv at http://www.freeciv.org/
0: bind failed: Address already in use
2: 

[Freeciv-Dev] [bug #24249] client cannot start server

2015-12-30 Thread Jacob Nevins
Follow-up Comment #3, bug #24249 (project freeciv):

Sounds similar to bug #23392.

___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #24249] client cannot start server

2015-12-30 Thread Marko Lindqvist
Follow-up Comment #5, bug #24249 (project freeciv):

Nevermind. It wouldn't give this error about program already running in that
port:

> 0: bind failed: Address already in use


It's one of
1) Client fails to detect that port is already in use
2) Client itself fails to free the port (quickly enough) after testing it
3) Very unfortunate timing causing port to get reserved between client
detecting it to be free and server trying to get it
4) The error message itself is in error


___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #24249] client cannot start server

2015-12-30 Thread Christian Knoke
Follow-up Comment #6, bug #24249 (project freeciv):

> Just recording a thought here: Maybe "localhost" gets resolved 
> as IPv6 address, which then is not supported by freeciv.

> Can you test with IPv6 enabled build? 

the host maybe ipv6 capable, but the local net is all ipv4 and the nameserver
serves nothing else

/etc/hosts looks like this:
127.0.0.1   localhost
127.0.1.1   ......

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

I have recompiled with   
IPv6 support:  yes
and the bug does not occur then

if the server and client are restricted to ipv4, they should
happily run here

Christian


___

Reply to this item at:

  

___
  Nachricht gesendet von/durch Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #24249] client cannot start server

2015-12-30 Thread Jacob Nevins
Update of bug #24249 (project freeciv):

 Release:   trunk => trunk r31265   


___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #24249] client cannot start server

2015-12-30 Thread Marko Lindqvist
Follow-up Comment #4, bug #24249 (project freeciv):

> --enable-ipv6=no

+

> if I replace --bind localhost with --bind 127.0.0.1

Just recording a thought here: Maybe "localhost" gets resolved as IPv6
address, which then is not supported by freeciv.

Can you test with IPv6 enabled build?


___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #24249] client cannot start server

2015-12-30 Thread Marko Lindqvist
Follow-up Comment #8, bug #24249 (project freeciv):

For the record: IPv4-only freeciv usually means nothing more than not handling
the other half of the network stack, having it's own security implications. In
most case I would go by the default given by 'configure' - enable IPv6 support
if possible, disable otherwise. Getting rid of the "--disable-ipv6" option is
under my consideration already.

(file #26196)
___

Additional Item Attachment:

File name: FindNextFcAddrAny.patchSize:0 KB


___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev