Incidencia #41366

Segmentation fault path_finding.c:3499

Abrir Fecha: 2021-01-29 12:55 Última actualización: 2021-02-26 06:37

Informador:
Propietario:
(Ninguno)
Tipo:
Estado:
Open
Componente:
(Ninguno)
Hito:
(Ninguno)
Prioridad:
5 - Medium
Gravedad:
5 - Medium
Resolución:
Ninguno
Fichero:
Ninguno

Details

michael reported following at freeciv-dev mailing list. Commit is from master branch.


version 1547c17802ff465ec55531e4c9273d4a4b8da461 client gtk3.22

the segfault occured after i did press g (goto) and then r (road) for a worker.

(gdb) bt full #0 pf_path_last_position (path=0x0) at path_finding.c:3499 #1 0x000055ef39c1ca47 in goto_get_turns (min=min@entry=0x7ffdf896bec8, max=max@entry=0x7ffdf896becc) at goto.c:1114

turns = 3 i = 1 goto_map_iter = 0x0 goto_map = 0x55ef3ba66180 FUNCTION = "goto_get_turns"

#2 0x000055ef39c5444e in get_unit_info_label_text2 (punits=punits@entry=0x55ef3ce21030, linebreaks=linebreaks@entry=0) at text.c:1102

min = 1000000000 max = -1 str = {_private_str_ = 0x55ef3c219f60 "", _private_n_ = 32, _private_n_alloc_ = 70} count = 1

#3 0x000055ef39caa733 in update_unit_info_label (punits=0x55ef3ce21030) at mapview.c:269

label = 0x55ef3bf9abb0

#4 0x000055ef39c3a7ae in handle_unit_packet_common (packet_unit=packet_unit@entry=0x55ef414f31c0) at packhand.c:1933

pcity = <optimized out> punit = 0x55ef3f7f0970 need_menus_update = true need_economy_report_update = false need_units_report_update = false repaint_unit = true repaint_city = <optimized out> old_tile = 0x0 check_focus = true moved = false ret = true FUNCTION = "handle_unit_packet_common"

#5 0x000055ef39c3d0b5 in handle_unit_info (packet=packet@entry=0x55ef433b1fd0) at packhand.c:1545

punit = 0x55ef414f31c0

#6 0x000055ef39c45f95 in client_handle_packet (type=type@entry=PACKET_UNIT_INFO, packet=packet@entry=0x55ef433b1fd0) at packhand_gen.c:186 #7 0x000055ef39c068cd in client_packet_input (packet=packet@entry=0x55ef433b1fd0, type=63) at client_main.c:771

FUNCTION = "client_packet_input"

#8 0x000055ef39c0e2c1 in input_from_server (fd=<optimized out>) at clinet.c:420

type = PACKET_UNIT_INFO packet = 0x55ef433b1fd0 nb = <optimized out> FUNCTION = "input_from_server"

#9 0x000055ef39c040bf in get_net_input (source=<optimized out>, condition=<optimized out>, data=<optimized out>) at gui_main.c:2161 #10 0x00007fb13cc09a84 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0 #11 0x00007fb13cc5d9b1 in () at /usr/lib/libglib-2.0.so.0 #12 0x00007fb13cc08fd3 in g_main_loop_run () at /usr/lib/libglib-2.0.so.0 #13 0x00007fb13d4ad22f in gtk_main () at /usr/lib/libgtk-3.so.0 #14 0x000055ef39c05a3d in ui_main (argc=<optimized out>, argc@entry=1, argv=<optimized out>, argv@entry=0x7ffdf896c958) at gui_main.c:1937

toplevel_font_name = <optimized out> sig = <optimized out> FUNCTION = "ui_main"

#15 0x000055ef39c07ee1 in client_main (argc=1, argv=0x7ffdf896c958) at client_main.c:685

i = 1 loglevel = LOG_NORMAL ui_options = 0 ui_separator = false option = <optimized out> fatal_assertions = -1 aii = <optimized out> FUNCTION = "client_main"

#16 0x000055ef39c04a4f in main (argc=<optimized out>, argv=<optimized out>) at gui_main.c:1688

Ticket History (2/2 Histories)

2021-01-29 12:55 Updated by: cazfi
  • New Ticket "Segmentation fault path_finding.c:3499" created
2021-02-26 06:37 Updated by: mortmann
Comentario

I am the michael, that reported this bug.

Attachment File List

No attachments

Editar

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Entrar