[Bug 465899] New: Freeciv: building a city always loses connection with server (game repo)
https://bugzilla.novell.com/show_bug.cgi?id=465899 Summary: Freeciv: building a city always loses connection with server (game repo) Classification: openSUSE Product: openSUSE 11.1 Version: RC 2 Platform: x86-64 OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: cymerio@gmail.com QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; es-ES; rv:1.9.0.5) Gecko/2008121300 SUSE/3.0.5-1.1 Firefox/3.0.5 Running civclient from the commandline with "-d 3" gives the following 3 lines when clicking OK: 3: sending packet type=PACKET_UNIT_BUILD_CITY(53) len=13 3: sending request 9 2: lost connection to server If I run "civserver -d 3" and then connect to it with civclient, I can see the following lines when I try to build a city: 3: got packet type=(PACKET_UNIT_BUILD_CITY)53 len=16 3: sending packet type=PACKET_PROCESSING_STARTED(0) len=3 3: sending packet type=PACKET_TILE_INFO(14) len=12 3: sending packet type=PACKET_TILE_INFO(14) len=17 3: sending packet type=PACKET_TILE_INFO(14) len=13 3: el mensaje anterior se ha repetido 2 veces 3: sending packet type=PACKET_TILE_INFO(14) len=24 3: sending packet type=PACKET_TILE_INFO(14) len=13 3: el mensaje anterior se ha repetido 2 veces 3: el mensaje anterior se ha repetido 2 veces (en total 4 veces) 3: el mensaje anterior se ha repetido 3 veces (en total 7 veces) 3: Warning: calloc with size 0 at line 576 of cm.c 3: Warning: calloc with size 0 at line 577 of cm.c 3: Warning: calloc with size 0 at line 576 of cm.c 3: Warning: calloc with size 0 at line 577 of cm.c 3: Warning: calloc with size 0 at line 576 of cm.c 3: Warning: calloc with size 0 at line 577 of cm.c 3: Warning: calloc with size 0 at line 576 of cm.c 3: Warning: calloc with size 0 at line 577 of cm.c 3: Warning: calloc with size 0 at line 576 of cm.c 3: Warning: calloc with size 0 at line 577 of cm.c 3: Warning: calloc with size 0 at line 576 of cm.c 3: Warning: calloc with size 0 at line 577 of cm.c 3: Warning: calloc with size 0 at line 576 of cm.c 3: Warning: calloc with size 0 at line 577 of cm.c 3: Warning: calloc with size 0 at line 576 of cm.c 3: Warning: calloc with size 0 at line 577 of cm.c 3: Warning: calloc with size 0 at line 576 of cm.c 3: Warning: calloc with size 0 at line 577 of cm.c 3: Warning: calloc with size 0 at line 576 of cm.c 3: Warning: calloc with size 0 at line 577 of cm.c 3: Warning: calloc with size 0 at line 576 of cm.c 3: Warning: calloc with size 0 at line 577 of cm.c 3: Warning: calloc with size 0 at line 576 of cm.c 3: Warning: calloc with size 0 at line 577 of cm.c civserver: cityturn.c:276: auto_arrange_workers: La declaración `cmr.found_a_valid' no se cumple. Abortado Reproducible: Always Steps to Reproduce: * Start civclient from the command line or from the menu * Click "Start a new game" 1. Click "Start" 2. If you haven't changed the defaults, press spacebar 3 times, so your next move is the settler unit 3. Press 'b' to build a city. A dialog appears. 4. Click OK. Actual Results: The game returns to the initial screen and a message appears at the bottom saying "You have lost the connection to the server" or something similar. Expected Results: A city should be built. Connection to the server should not end prematurely and the game should continue. I have "freeciv-2.1.6-1.6" installed from the game repo, with "zypper in freeciv". -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=465899 User dominique.leuenberger@tmf-group.com added comment https://bugzilla.novell.com/show_bug.cgi?id=465899#c1 Dominique Leuenberger <dominique.leuenberger@tmf-group.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dominique.leuenberger@tmf-g | |roup.com, | |sndirsch@novell.com --- Comment #1 from Dominique Leuenberger <dominique.leuenberger@tmf-group.com> 2009-01-14 02:44:40 MST --- I'm working on an upgrade to freeciv 2.1.8, which, according to the ChangeLog fixes several issues concerning the client/server mode. I'll let you know when the updated packages appear in games repo. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=465899 User dominique.leuenberger@tmf-group.com added comment https://bugzilla.novell.com/show_bug.cgi?id=465899#c2 Dominique Leuenberger <dominique.leuenberger@tmf-group.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |cymerio@gmail.com --- Comment #2 from Dominique Leuenberger <dominique.leuenberger@tmf-group.com> 2009-01-14 04:46:46 MST --- packages for 2.1.8 are hitting the mirrors and are available for download. Please verify if everything is working fine for you now. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=465899 User cymerio@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=465899#c3 asd asd <cymerio@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|cymerio@gmail.com | --- Comment #3 from asd asd <cymerio@gmail.com> 2009-01-14 05:44:12 MST --- Unfortunately I seeing the same error with 2.1.8. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=465899 User cymerio@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=465899#c4 --- Comment #4 from asd asd <cymerio@gmail.com> 2009-01-14 07:05:39 MST --- I've found an easier way to trigger the bug: 1. Start a game. 2. End turn. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=465899 User dominique.leuenberger@tmf-group.com added comment https://bugzilla.novell.com/show_bug.cgi?id=465899#c5 Dominique Leuenberger <dominique.leuenberger@tmf-group.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |cymerio@gmail.com --- Comment #5 from Dominique Leuenberger <dominique.leuenberger@tmf-group.com> 2009-01-14 09:15:28 MST --- Had contact with Freeciv ML. Got the reply that there are sometimes issues with compiler optimization (-O2). Respawned the package compiled with -O0 for testing. New packages should appear soon. Please report again if this changes anything. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=465899 User dominique.leuenberger@tmf-group.com added comment https://bugzilla.novell.com/show_bug.cgi?id=465899#c6 --- Comment #6 from Dominique Leuenberger <dominique.leuenberger@tmf-group.com> 2009-01-14 09:16:14 MST --- Info: they should be freeciv-2.1.8-3.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=465899 User dominique.leuenberger@tmf-group.com added comment https://bugzilla.novell.com/show_bug.cgi?id=465899#c7 --- Comment #7 from Dominique Leuenberger <dominique.leuenberger@tmf-group.com> 2009-01-14 09:37:34 MST --- quote from Marko Lindqvist (Credits to the ones that earn it) "Which version of gcc? There used to be problem just like this caused by gcc 4.2.1 & 4.2.2 miscompilation when optimization level -O2 is used. Even if you are using 4.3.x gcc, you may want to test with lower optimization level. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33381 " -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=465899 User cymerio@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=465899#c8 asd asd <cymerio@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|cymerio@gmail.com | --- Comment #8 from asd asd <cymerio@gmail.com> 2009-01-14 11:22:21 MST --- freeciv-2.1.8-3.1 works fine so far, thank you! :) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=465899 User dominique.leuenberger@tmf-group.com added comment https://bugzilla.novell.com/show_bug.cgi?id=465899#c9 --- Comment #9 from Dominique Leuenberger <dominique.leuenberger@tmf-group.com> 2009-01-15 01:15:19 MST --- Thank you for your test works. I would like to create a new version with the optimization set 'in between' the first non-working ones (-O2) and the current, unoptimized (-O2) ones. Would you be willing to test those too? That would be marvelous. The new RPMs should be out pretty soon on the normal place. If they don't work, It'll be easy to revert back to -O0 for me. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=465899 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=465899#c10 --- Comment #10 from Stefan Dirsch <sndirsch@novell.com> 2009-01-15 05:55:27 MST --- I suggest to compile only the affected sources with "-O0". Looking at comment #1 cityturn.c sounds like a candidate to me. It would also be interesting to see which gcc versions on which platform produce wrong optimized code. Maybe you can test with RPMs of openSUSE 11.0. And if you're running x86_64 also test the 32bit version. Required libs for freeciv are hopefully available in the appropriate -32bit package. BTW, I remember a similar bug for freeciv. See Bug #300410. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=465899 User dominique.leuenberger@tmf-group.com added comment https://bugzilla.novell.com/show_bug.cgi?id=465899#c11 --- Comment #11 from Dominique Leuenberger <dominique.leuenberger@tmf-group.com> 2009-01-15 06:20:25 MST --- Thank you very much Stefan... this is quiet interesting. in bug #300410 you mention that -fno-tree-vrp solved it 'back then', but I could not see this option anywhere added in the spec file... only -fno-strict-aliasing was added to the $RPM_OPT_FLAGS. Maybe that flag got optimized out at one point?
From the changes file I seem to have found when it was removed:
Mon Sep 24 12:36:27 CEST 2007 - sndirsch@suse.de - disabled workaround for gcc optimization bug, which meanwhile has been fixed (Bug #300410) For the time being the entire package is built with -O1. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=465899 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=465899#c12 --- Comment #12 from Stefan Dirsch <sndirsch@novell.com> 2009-01-15 06:35:22 MST ---
in bug #300410 you mention that -fno-tree-vrp solved it 'back then', but I could not see this option anywhere added in the spec file... only -fno-strict-aliasing was added to the $RPM_OPT_FLAGS. Maybe that flag got optimized out at one point?
From the changes file I seem to have found when it was removed: ------------------------------------------------------------------- Mon Sep 24 12:36:27 CEST 2007 - sndirsch@suse.de
- disabled workaround for gcc optimization bug, which meanwhile has been fixed (Bug #300410)
Exactly. We removed that option after fixing the optimization in gcc. :-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=465899 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=465899#c13 --- Comment #13 from Stefan Dirsch <sndirsch@novell.com> 2009-01-15 21:56:49 MST ---
For the time being the entire package is built with -O1.
I suggest to install -debuginfo/debugsource package for freeciv, attach gdb to the process and check with a backtrace, which files possibly need to be compiled without optimization. Maybe you can isolate the miscompilation to one file. Then our gcc guys can have a look at the generated code. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=465899 User cymerio@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=465899#c14 --- Comment #14 from asd asd <cymerio@gmail.com> 2009-01-16 05:27:33 MST --- I can verify that freeciv-2.1.8-4.1 works fine here (compiled with -O1 I suppose). I can not find any debuginfo/debugsource packages in the repo, so if anybody of you want me to test something please guide me step by step, as I'm not an expert. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=465899 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=465899#c15 --- Comment #15 from Stefan Dirsch <sndirsch@novell.com> 2009-01-16 06:40:29 MST --- I've enabled build of -debuginfo/debugsource packages now for freeciv package ('Flags for Expers'). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=465899 Andreas Jaeger <aj@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |sndirsch@novell.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=465899 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=465899#c16 --- Comment #16 from Stefan Dirsch <sndirsch@novell.com> 2009-01-22 17:49:37 MST --- Why is this one assigned to me? I no longer maintain it. Do whatever you want with it in the buildservice. Maybe I should remove it to avoid more bug reports about it being assigned to me. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=465899 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=465899#c17 Stefan Dirsch <sndirsch@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #17 from Stefan Dirsch <sndirsch@novell.com> 2009-01-22 17:50:54 MST --- Closing as WONTFIX. Feel free to reopen if you want to become the new assignee. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=465899 User dominique.leuenberger@tmf-group.com added comment https://bugzilla.novell.com/show_bug.cgi?id=465899#c18 --- Comment #18 from Dominique Leuenberger <dominique.leuenberger@tmf-group.com> 2009-01-23 01:30:53 MST --- Sorry Stefan, I guess I'm to blame for that one, for getting you into CC. The intention was to get your knowledge with regards to this package in (which in fact helped a big deal). To avoid confusion I should have assigned the bug to me at the beginning already when I picked it up. I'm an 'active' maintainer of the games repository, but knowing all the hacks from the past is just impossible. So your input helped a lot there. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=465899 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=465899#c19 --- Comment #19 from Stefan Dirsch <sndirsch@novell.com> 2009-01-23 03:00:32 MST --- Adding me to Cc is - of course - fine. I'm not sure either to whom assign such bugs, where it's not clear if they are still maintained by someone or just moved from openSUSE distribution to buildservice, so they didn't get lost completely. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=465899 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=465899#c20 Stefan Dirsch <sndirsch@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WONTFIX | --- Comment #20 from Stefan Dirsch <sndirsch@novell.com> 2009-01-23 03:01:49 MST --- reopen. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=465899 Stefan Dirsch <sndirsch@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|sndirsch@novell.com |dominique.leuenberger@tmf-g | |roup.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com