Ticket #47786

assertion 'adip->countdown == -1' failed

Open Date: 2023-04-07 20:39 Last Update: 2023-09-08 10:04

Reporter:
Owner:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
3

Details

3.1 d7b47462748f (pulled today)

No idea if there a link with the assertion failure, but at previous turn the only remaining nation wanted to cancel treaty, but could not because he is in democracy.

> 
alain: '/save T2186_Maya_democracy_wanted_to_cancel_treaty_but'
Partie sauvegardée sous T2186_Maya_democracy_wanted_to_cancel_treaty_but.sav.xz
> 
1: in war_countdown() [../../../ai/default/daidiplomacy.c::1421]: assertion 'adip->countdown == -1' failed.
3: Backtrace:
3:     0: /Big/gcc11/FC31/bin/FC31gcc11-server(backtrace_print+0x44) [0x6ee394]
3:     1: /Big/gcc11/FC31/bin/FC31gcc11-server(do_log+0x124) [0x6f31e4]
3:     2: /Big/gcc11/FC31/bin/FC31gcc11-server(fc_assert_fail+0xb8) [0x6f3448]
3:     3: /Big/gcc11/FC31/bin/FC31gcc11-server(dai_diplomacy_actions+0xd62) [0x5b11e2]
3:     4: /Big/gcc11/FC31/bin/FC31gcc11-server(srv_main+0x745) [0x446f85]
3:     5: /Big/gcc11/FC31/bin/FC31gcc11-server(main+0x353) [0x43b113]
3:     6: /lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x7f22cf029d90]
3:     7: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80) [0x7f22cf029e40]
3:     8: /Big/gcc11/FC31/bin/FC31gcc11-server(_start+0x25) [0x43bdd5]
1: SVP, rapportez ce bogue à https://osdn.net/projects/freeciv/ticket/
3: Backtrace:
3:     0: /Big/gcc11/FC31/bin/FC31gcc11-server(backtrace_print+0x44) [0x6ee394]
3:     1: /Big/gcc11/FC31/bin/FC31gcc11-server(do_log+0x124) [0x6f31e4]
3:     2: /Big/gcc11/FC31/bin/FC31gcc11-server(fc_assert_fail+0x19b) [0x6f352b]
3:     3: /Big/gcc11/FC31/bin/FC31gcc11-server(dai_diplomacy_actions+0xd62) [0x5b11e2]
3:     4: /Big/gcc11/FC31/bin/FC31gcc11-server(srv_main+0x745) [0x446f85]
3:     5: /Big/gcc11/FC31/bin/FC31gcc11-server(main+0x353) [0x43b113]
3:     6: /lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x7f22cf029d90]
3:     7: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80) [0x7f22cf029e40]
3:     8: /Big/gcc11/FC31/bin/FC31gcc11-server(_start+0x25) [0x43bdd5]
Partie sauvegardée sous freeciv-T0613-Y02187-auto.sav.xz
> 

Ticket History (3/8 Histories)

2023-04-07 20:39 Updated by: alain_bkr
  • New Ticket "assertion 'adip->countdown == -1' failed" created
2023-04-07 20:53 Updated by: cazfi
Comment

Reply To alain_bkr

3.1 d7b47462748f (pulled today) No idea if there a link with the assertion failure, but at previous turn the only remaining nation wanted to cancel treaty, but could not because he is in democracy.

1: in war_countdown() [../../../ai/default/daidiplomacy.c::1421]: assertion 'adip->countdown == -1' failed.

Very likely they are linked. I think the assert failure means that countdown to a change in diplomatic relations has been wrongly set.

(Edited, 2023-04-07 20:54 Updated by: cazfi)
2023-09-03 14:42 Updated by: cazfi
  • Owner Update from (None) to cazfi
  • Resolution Update from None to Accepted
  • Milestone Update from (None) to 3.0.9 (closed)
  • Component Update from Server to AI
2023-09-04 11:48 Updated by: cazfi
Comment

New patch version to handle also the case where treaty cancelling fails for unknown reason. Also ported the patch to S2_6.

2023-09-08 10:04 Updated by: cazfi
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Edit

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