Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...

Bug #827095

Invalid extra in execute_orders

Added by Zoltán Žarkov about 3 years ago. Updated about 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Server
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Not sure yet if this is exclusive to freeciv-web. Will look into it later.

1: in extra_by_number() [extras.c::172]: assertion 'id >= 0 && id < 128' failed.
3: Backtrace:
3: 0: /home/fcweb/freeciv-git/server/freeciv-web(backtrace_print+0x30) [0x69a580]
3: 1: /home/fcweb/freeciv-git/server/freeciv-web(do_log+0xf8) [0x69f058]
3: 2: /home/fcweb/freeciv-git/server/freeciv-web(fc_assert_fail+0xa9) [0x69f359]
3: 3: /home/fcweb/freeciv-git/server/freeciv-web(extra_by_number+0x49) [0x5d4789]
3: 4: /home/fcweb/freeciv-git/server/freeciv-web(execute_orders+0x117) [0x464267]
3: 5: /home/fcweb/freeciv-git/server/freeciv-web(execute_unit_orders+0xca) [0x46566a]
3: 6: /home/fcweb/freeciv-git/server/freeciv-web() [0x43ef2d]
3: 7: /home/fcweb/freeciv-git/server/freeciv-web(srv_main+0x5ad) [0x444d1d]
3: 8: /home/fcweb/freeciv-git/server/freeciv-web(main+0x265) [0x439865]
3: 9: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f7c0c2fc830]
3: 10: /home/fcweb/freeciv-git/server/freeciv-web(_start+0x29) [0x43a1a9]
1: Please report this message at https://www.hostedredmine.com/projects/freeciv

History

#1 Updated by Zoltán Žarkov about 3 years ago

Looks like valid bug, we should check that sub_target is valid when accepting orders and not rely on asserts in extra_by_number.

Also available in: Atom PDF