[Freeciv-Dev] [bug #21044] segmentation fault in freeciv-2.4.0-RC1
URL: http://gna.org/bugs/?21044 Summary: segmentation fault in freeciv-2.4.0-RC1 Project: Freeciv Submitted by: bodibo Submitted on: Wed 21 Aug 2013 06:23:47 PM GMT Category: None Severity: 3 - Normal Priority: 5 - Normal Status: None Assigned to: None Originator Email: Open/Closed: Open Release: freeciv-2.4.0-RC1 Discussion Lock: Any Operating System: GNU/Linux Planned Release: ___ Details: Clicking Turn Done for the attached saved game results in a segmentation fault. Notes: 1) When playing this version of the game I regularly encountered similar segmentation faults - but this one is reproducible. 2) This bug is *not* related to bug #21040 reported for the svn version. gdb output: 0x08115a07 in city_build_here_test (ptile=ptile@entry=0x9bc4844, punit=punit@entry=0x9b8d958) at city.c:1394 1394 if (terrain_has_flag(tile_terrain(ptile), TER_NO_CITIES)) { System info: * OpenSuse 12.3, 32-bit, with all updates installed * freeciv installed with ./configure --disable-nls --mandir=/usr/local/share --enable-client=gtk3 make make install ___ File Attachments: --- Date: Wed 21 Aug 2013 06:23:47 PM GMT Name: freeciv-T0093-Y-0175-manual.sav.gz Size: 98kB By: bodibo http://gna.org/bugs/download.php?file_id=18726 ___ Reply to this item at: http://gna.org/bugs/?21044 ___ 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 #21044] segmentation fault in freeciv-2.4.0-RC1
Update of bug #21044 (project freeciv): Category:None = client Status:None = Confirmed Planned Release: = 2.4.0 ___ Follow-up Comment #1: Reproduced (with the Gtk2 client -- it's a client crash). #0 city_build_here_test (ptile=0x7ba9160, punit=0x6c49b80) at city.c:1394 citymindist = optimised out #1 0x004c9bd9 in city_can_be_built_here (ptile=optimised out, punit=optimised out) at city.c:1379 No locals. #2 0x0047ce4b in unit_drawn_with_city_outline (punit=0x6c49b80, check_focus=true) at tilespec.c:4265 No locals. #3 0x0045a87a in refresh_unit_mapcanvas (punit=optimised out, ptile=0x7baa970, full_refresh=optimised out, write_to_screen=false) at mapview_common.c:152 No locals. #4 0x00444f92 in do_move_unit (punit=0x6c49b80, target_unit=optimised out) at control.c:2167 src_tile = 0x7baa970 dst_tile = 0x7ba9160 was_teleported = optimised out #5 0x0045e06c in handle_unit_packet_common (packet_unit=0x7c0dea0) at packhand.c:1445 pcity = optimised out pcity = optimised out punit = 0x6c49b80 need_menus_update = false need_economy_report_update = false need_units_report_update = false repaint_unit = false repaint_city = false old_tile = 0x7baa970 check_focus = false moved = true ret = true #6 0x00460353 in handle_unit_short_info (packet=optimised out) at packhand.c:1703 pcity = optimised out punit = 0x7c0dea0 __FUNCTION__ = handle_unit_short_info #7 0x0046567c in client_handle_packet (type=optimised out, packet=optimised out) at packhand_gen.c:150 No locals. #8 0x0043b66e in client_packet_input (packet=optimised out, type=64) at client_main.c:654 __FUNCTION__ = client_packet_input #9 0x00441305 in input_from_server (fd=optimised out) at clinet.c:421 result = true packet = 0x1d5ef50 type = PACKET_UNIT_SHORT_INFO nb = optimised out __FUNCTION__ = input_from_server #10 0x00413560 in get_net_input (source=optimised out, condition=optimised out, data=optimised out) at gui_main.c:1882 No locals. #11 0x7f1bc36ffd53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 No symbol table info available. #12 0x7f1bc37000a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 No symbol table info available. #13 0x7f1bc370049a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 No symbol table info available. #14 0x7f1bc2b6e2f7 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 No symbol table info available. #15 0x004164b9 in ui_main (argc=1, argv=0x7fff7ec97ff8) at gui_main.c:1673 home = optimised out sig = optimised out __FUNCTION__ = ui_main #16 0x0043bc06 in client_main (argc=1, argv=0x7fff7ec97ff8) at client_main.c:590 i = 1 loglevel = LOG_NORMAL ui_options = optimised out ui_separator = optimised out option = optimised out user_tileset = optimised out fatal_assertions = -1 aii = optimised out __FUNCTION__ = client_main #17 0x7f1bc1d3276d in __libc_start_main (main=0x413240 main, argc=1, ubp_av=0x7fff7ec97ff8, init=optimised out, fini=optimised out, rtld_fini=optimised out, stack_end=0x7fff7ec97fe8) at libc-start.c:226 result = optimised out unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, -5372553691406820316, 4272712, 140735320522736, 0, 0, 5372274780520815652, 5424402440766856228}, mask_was_saved = 0}}, priv = {pad = { 0x0, 0x0, 0x5ac7d0, 0x7fff7ec97ff8}, data = {prev = 0x0, cleanup = 0x0, canceltype = 5949392}}} not_first_call = optimised out #18 0x00413271 in _start () No symbol table info available. ___ Reply to this item at: http://gna.org/bugs/?21044 ___ 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 #21044] segmentation fault in freeciv-2.4.0-RC1
Follow-up Comment #2, bug #21044 (project freeciv): I'm guessing from the presence of unit_drawn_with_city_outline() in the backtrace that this was introduced by my fix for bug #20905. ___ Reply to this item at: http://gna.org/bugs/?21044 ___ 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 #21044] segmentation fault in freeciv-2.4.0-RC1
Update of bug #21044 (project freeciv): Status: Confirmed = In Progress Planned Release: 2.4.0 = 2.4.0-RC2, 2.5.0, 2.6.0 ___ Follow-up Comment #3: Seems like client is checking if it should draw city outline for moving enemy settler. I guess it's either coming from or entering to tile unknown to client's player, and client tries to check if one can build city to that tile. (gdb) bt full #0 0x005034ba in city_build_here_test (ptile=0x432a350, punit=punit@entry=0x31e1c60) at common/city.c:1394 citymindist = optimized out __FUNCTION__ = city_build_here_test #1 0x005037d9 in city_can_be_built_here (ptile=optimized out, punit=punit@entry=0x31e1c60) at common/city.c:1379 No locals. #2 0x004b35c7 in unit_drawn_with_city_outline ( punit=punit@entry=0x31e1c60, check_focus=check_focus@entry=true) at client/tilespec.c:4265 No locals. #3 0x0048f9ea in refresh_unit_mapcanvas (punit=punit@entry=0x31e1c60, ptile=ptile@entry=0x432bb60, full_refresh=full_refresh@entry=true, write_to_screen=write_to_screen@entry=false) at client/mapview_common.c:152 No locals. #4 0x00477e62 in do_move_unit (punit=punit@entry=0x31e1c60, target_unit=target_unit@entry=0x31e1d70) at client/control.c:2167 src_tile = 0x432bb60 dst_tile = 0x432a350 was_teleported = optimized out do_animation = true #5 0x0049365b in handle_unit_packet_common ( packet_unit=packet_unit@entry=0x31e1d70) at client/packhand.c:1445 pcity = 0x0 pcity = optimized out punit = 0x31e1c60 need_menus_update = false need_economy_report_update = false need_units_report_update = false repaint_unit = false repaint_city = false old_tile = 0x432bb60 check_focus = false moved = true ret = true __FUNCTION__ = handle_unit_packet_common #6 0x00496033 in handle_unit_short_info (packet=packet@entry=0xc0d210) at client/packhand.c:1703 pcity = optimized out punit = 0x31e1d70 __FUNCTION__ = handle_unit_short_info #7 0x0049bf37 in client_handle_packet ( type=type@entry=PACKET_UNIT_SHORT_INFO, packet=packet@entry=0xc0d210) ___ Reply to this item at: http://gna.org/bugs/?21044 ___ 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 #21044] segmentation fault in freeciv-2.4.0-RC1
Update of bug #21044 (project freeciv): Assigned to:None = jtn ___ Follow-up Comment #4: Yes, it's Margrete I's Settlers (unit id = 812) entering unknown terrain. Working on a patch. ___ Reply to this item at: http://gna.org/bugs/?21044 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev