Tíquete #42409

Freeciv crashes

: 2021-05-29 08:16 Última Atualização: 2021-06-01 12:18

Relator:
Dono:
Tipo:
Estado:
Fechado
Componente:
Marcos:
Prioridade:
5 - Medium
Gravidade:
5 - Medium
Resolução:
Fixed
Arquivo:
2

Details

Hello, my freeciv-gtk crashes when ending a turn. Here are the details:

Freeciv version 2.6.4 gui-gtk-3.0

1: Lost connection to server: read error.

1: in genhash_lookup() [genhash.c::689]: assertion '((void *)0) != pgenhash' failed.

1: Please report this message at https://osdn.net/projects/freeciv/ticket/

1: in genhash_lookup() [genhash.c::689]: assertion '((void *)0) != pgenhash' failed.

1: Please report this message at https://osdn.net/projects/freeciv/ticket/

1: in genhash_lookup() [genhash.c::689]: assertion '((void *)0) != pgenhash' failed.

1: Please report this message at https://osdn.net/projects/freeciv/ticket/

Segmentation fault (core dumped)

If you need anything, like the savegame, I can provide it.

Best regards,

Andrea

Ticket History (3/13 Histories)

2021-05-29 08:16 Updated by: kontorotsui
  • New Ticket "Freeciv crashes" created
2021-05-29 08:17 Updated by: kontorotsui
  • Details Updated
2021-05-29 09:29 Updated by: cazfi
Comentário

Is the problem reproducible from the savegame? If yes, please attach the savegame.

2021-05-29 18:16 Updated by: kontorotsui
Comentário

Absolutely consistent.

Load the attached savefile, click "turn done" and it booms.

2021-05-29 19:30 Updated by: chippo
Comentário

Reply To kontorotsui

Load the attached savefile, click "turn done" and it booms.

Not for me, it doesn't. Clicked 'turn done' a few times and no crash or any unusual messages on both client and server.

So, we need to ask you what operating system are you using and which version of freeciv it was.

2021-05-29 19:31 Updated by: chippo
Comentário

Reply To chippo

So, we need to ask you what operating system are you using and which version of freeciv it was.

Sorry, you did report the freeciv version.

2021-05-29 19:48 Updated by: cazfi
Comentário

I can reproduce and backtrace shows SIGFPE (likely division by zero) at daidiplomacy.c:333

That is:

int limit = MAX(1, player_tech_upkeep(pplayer)
/ research->techs_researched);
2021-05-29 19:54 Updated by: chippo
Comentário

Reply To chippo

Sorry, you did report the freeciv version.

I, too, get the coredump in S2_6 (I was looking with S3_0 when I had no problem). I didn't have debugging to give a good bt, so I'm busy building that now.

2021-05-29 20:17 Updated by: cazfi
  • Resolução Update from Nenhum to Accepted
  • Marco Update from (Nenhum) to 2.6.5 (fechado)
  • Componente Update from (Nenhum) to AI
2021-05-29 20:27 Updated by: chippo
Comentário

The patch works for me. No more core dump.

2021-06-01 12:18 Updated by: cazfi
  • Estado Update from Aberto to Fechado
  • Dono Update from (Nenhum) to cazfi
  • Resolução Update from Accepted to Fixed

Editar

Please login to add comment to this ticket » Login