Re: [Freeciv-Dev] (PR#40610) auto_arrange_workers: Assertion `cmr.found_a_valid' failed.
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40610 2009/2/28 Christian Prochaska: [cazf...@gmail.com - Mon Feb 23 17:06:04 2009]: I have not managed to reproduce this problem on Debian or Ubuntu systems. I just had the error on Debian testing (gcc 4.3.3) and the last version of your workaround patch fixed it here, too. I committed the patch and am closing this ticket. Please reopen if someone still has this problem. - ML ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] (PR#40610) auto_arrange_workers: Assertion `cmr.found_a_valid' failed.
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40610 [cazf...@gmail.com - Mon Feb 23 17:06:04 2009]: I have not managed to reproduce this problem on Debian or Ubuntu systems. I just had the error on Debian testing (gcc 4.3.3) and the last version of your workaround patch fixed it here, too. ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] (PR#40610) auto_arrange_workers: Assertion `cmr.found_a_valid' failed.
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40610 Thank you very much for your efforts, Chris. Unfortunately, this patch did not work for me. I get the same error. Building with -fno-inline-small-functions (as reported by someone else) does fix the problem for me, if that is helpful in determining what is going on. ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] (PR#40610) auto_arrange_workers: Assertion `cmr.found_a_valid' failed.
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40610 civserver: cityturn.c:276: auto_arrange_workers: Assertion `cmr.found_a_valid' failed. I have merged all incoming reports about this into ticket 40610. Please check the previous discussions about temporary workarounds while the exact cause is being investigated. Some people have found -O1 to work, as well as -O2 with -fno-inline-small-functions. --- しつこいなあ。 ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] (PR#40610) auto_arrange_workers: Assertion `cmr.found_a_valid' failed.
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40610 [oliverburgh...@web.de - Wed Jan 07 12:17:16 2009]: Freeciv server is crashing on my linux. reproduction: start a game and create a city. When the first city of user or ai is created the server crashes. version (both): freeciv-2.1.8 build from sources freeciv-2.1.8 prebuild fedora package system: fedora 10 with all updates (7.1.2009) and no self build packages This is due to a bug in certain gcc 4.2 optimizations. Until the exact code that is miscomplied is found and replaced, compile with -O1 (or -O0), or upgrade gcc. --- 先祖に会いましょう。 ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] (PR#40610) auto_arrange_workers: Assertion `cmr.found_a_valid' failed.
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40610 [guest - Wed Jan 07 23:12:40 2009]: I am using gcc 4.3.2, but by using -O1 it works - thanks. This is strange. I thought the assertion was being triggered due to miscompiled code caused by a bug in gcc 4.2, that has since been fixed in gcc 4.3. I even tested the default compile of 2.1.8 with gcc 4.3.2 and I did not get the assertion failure. Perhaps then redhat added some custom patches to its gcc? $ gcc -v Es werden eingebaute Spezifikationen verwendet. Ziel: i386-redhat-linux Konfiguriert mit: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind- exceptions --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-cpu=generic --build=i386-redhat- linux Thread-Modell: posix gcc-Version 4.3.2 20081105 (Red Hat 4.3.2-7) (GCC) For comparison on my machine: $ gcc -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../gcc-4.3.2/configure --prefix=/usr Thread model: posix gcc version 4.3.2 (GCC) :( --- 元気出して。とにかく、近頃はその種の帽子をかぶらないよね。 ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] (PR#40610) auto_arrange_workers: Assertion `cmr.found_a_valid' failed.
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40610 [book - Sat Dec 27 20:10:43 2008]: [guest - Sat Dec 27 19:12:10 2008]: Compiling with -O0 (before was -O2) like: ./configure --prefix=/home/users/vip/freeciv --enable-debug CFLAGS=-O0 and server stopped hanging up while building cities. So, gcc bug? Yes, it is looking more and more like the same situation we had before, gcc 4.x optimizations break some parts of the code. I'll try to find and re-phrase the code that is being miscompiled... I can confirm that the bug does not occur with gcc 4.3.2. :| --- Mへの最新版。 ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
Re: [Freeciv-Dev] (PR#40610) auto_arrange_workers: Assertion `cmr.found_a_valid' failed.
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40610 2009/1/6 Madeline Book: [book - Sat Dec 27 20:10:43 2008]: [guest - Sat Dec 27 19:12:10 2008]: Compiling with -O0 (before was -O2) like: ./configure --prefix=/home/users/vip/freeciv --enable-debug CFLAGS=-O0 and server stopped hanging up while building cities. So, gcc bug? Yes, it is looking more and more like the same situation we had before, gcc 4.x optimizations break some parts of the code. I'll try to find and re-phrase the code that is being miscompiled... I can confirm that the bug does not occur with gcc 4.3.2. :| GCC bug causing havoc earlier was ever present in 4.2 branch only, in versions 4.2.1 and 4.2.2. Our downloads page states that those versions of gcc should not be used for compiling Freeciv. That (particular) bug was fixed in gcc 4.2.3. - ML ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] (PR#40610) auto_arrange_workers: Assertion `cmr.found_a_valid' failed.
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40610 Additional details from forum user bravoman78: I already uninstalled 2.1.8 so I can't provide a savegame. The bug occurred both when starting a new game and loading any of my old save games. Below are some of the tests I ran on a new game: Server Settings: Default Starting units: Explorer, 2 Workers, 2 Settlers. Test Scenario 1 Moved Explorer, moved settlers, set worker 1 to build road, worker 2 to build irrigation. Clicked Turn Done: Result = Lost Connection to Server (same error message) Test Scenario 2 Moved Explorer, dismissed workers, set settler 1 to build road, settler 2 to build irrigation. Clicked Turn Done: Result = Lost Connection to Server (same error message) Test Scenario 3 No units moved. Clicked Turn Done: Result = Lost Connection to Server (same error message) ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] (PR#40610) auto_arrange_workers: Assertion `cmr.found_a_valid' failed.
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40610 Forwarded from a posting to freeciv-dev: On 12/27/08, Piotr Budny piotr.bu...@gmail.com wrote: After starting the game, I move my pawns, when the turn ends, and starting new, the server hangs up. I'm using PLD Linux, 2.1.8 freeciv. #0 0xf7fda430 in __kernel_vsyscall () #1 0x4b60e7a7 in *__GI_raise (sig=value optimized out) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #2 0x4b60fed8 in *__GI_abort () at abort.c:88 #3 0x4b6072fa in *__GI___assert_fail (assertion=Could not find the frame base for *__GI___assert_fail. ) at assert.c:78 #4 0x080724e0 in auto_arrange_workers (pcity=0x84f94b0) at cityturn.c:276 #5 0x0806f238 in create_city (pplayer=0x829e11c, ptile=0x8a40558, name=0x877ebc0 Timbuktu) at citytools.c:1039 #6 0x080aea6d in city_build (pplayer=0x829e11c, punit=0x8aa41b8, name=0x877ebc0 Timbuktu) at unithand.c:555 #7 0x080ac216 in auto_settler_findwork (pplayer=0x829e11c, punit=0x8aa41b8, state=0xff8d2530, recursion=1) at settlers.c:94 #8 0x080aba4b in auto_settler_findwork (pplayer=0x829e11c, punit=0x8aa41b8, state=0xff8d2530, recursion=0) at settlers.c:1158 #9 0x080ac7ce in auto_settlers_player (pplayer=0x829e11c) at settlers.c:1296 #10 0x080544c5 in srv_main () at srv_main.c:786 #11 0x0804a735 in main (argc=8, argv=0xff8da5a4) at civserver.c:258 civserver: cityturn.c:276: auto_arrange_workers: Assertion `cmr.found_a_valid' failed. I'm starting to suspect that it might be a compiler bug (we've had problems before due to code not working when compiled with gcc 4.x optimizations). What version of gcc are you using, and do you know if the freeciv binary you are using was compiled with -O2 (or more)? If you have some time it would help my debugging too if you could confirm whether the 2.1.8 sources in svn://svn.gna.org/svn/freeciv/branches/S2_1 when compiled with with or without --enable-debug and with or without optimizations (-O0 that's big oh, zero) or with an earlier gcc (e.g. 3.x). --- ボリボリ食べるな! ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] (PR#40610) auto_arrange_workers: Assertion `cmr.found_a_valid' failed.
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40610 [guest - Sat Dec 27 19:12:10 2008]: Compiling with -O0 (before was -O2) like: ./configure --prefix=/home/users/vip/freeciv --enable-debug CFLAGS=-O0 and server stopped hanging up while building cities. So, gcc bug? Yes, it is looking more and more like the same situation we had before, gcc 4.x optimizations break some parts of the code. I'll try to find and re-phrase the code that is being miscompiled... --- 百回書き直しなさい。 ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] (PR#40610) auto_arrange_workers: Assertion `cmr.found_a_valid' failed.
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40610 This was reported on the forums: http://forum.freeciv.org/viewtopic.php?t=5730 Server fails to autoarrange workers triggering the assertion in the subject line. The program version is 2.1.8, a fedora package. Server log also has: 3: Warning: calloc with size 0 at line 576 of cm.c 3: Warning: calloc with size 0 at line 577 of cm.c which indicates that ntypes=0 is passed to the function init_partial_solution(). I assume this was never expected by the author of that function, so the server must have gotten into an inconsistent state some time before that point (missing city workers or wrong city size?). I could just make the cm functions more robust (i.e. better checking of arguments) and turn the assertion in auto_arrange_workers() into an if-statement, but I will investigate some more and hopefully find the real cause of the bug. :( --- クリスマスには石炭の塊だけが欲しい。 ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev