UFO: Alien Invasion Issue Tracker
UFO: Alien Invasion
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png UFO: Alien Invasion / Closed Bug report #1946 sigabrt upon load in RADAR_Initialise
Go to the next issue (open or closed)
Go to the next open issue
There are no more issues in that direction.
This issue has been closed with status "Closed" and resolution "Not determined".
Issue basics
  • Type of issue
    Bug report
  • Category
    Engine
  • Targetted for
    Not determined
  • Status
    Closed
  • Priority
    3. Normal
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
Times and dates
  • Posted at
  • Last updated
  • Estimated time
    Not estimated
Issue details
  • Resolution
    Not determined
  • Reproducability
    Not determined
  • Severity
    Not determined
  • Complexity
    Not determined
  • Platform
    Not determined
  • Architecture
    Not determined
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
[http://sourceforge.net/p/ufoai/bugs/1946 Item 1946] imported from sourceforge.net tracker on 2013-01-28 19:14:56

revision 20883
load attached savegame. sigabrt.

ufo: src/client/cl_radar.c:327: RADAR_Initialise: Assertion `radar->numUFOs >= 0' failed.

Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb6e7db60 (LWP 4834)]
0xb7b66c66 in raise () from /lib/libc.so.6
(gdb) bt full
#0 0xb7b66c66 in raise () from /lib/libc.so.6
No symbol table info available.
#1 0xb7b68571 in abort () from /lib/libc.so.6
No symbol table info available.
#2 0xb7b5fe60 in __assert_fail () from /lib/libc.so.6
No symbol table info available.
#3 0x080be855 in RADAR_Initialise (radar=0xa0246e8, range=0, trackingRange=0, level=0, updateSourceRadarMap=qtrue)
at src/client/cl_radar.c:327
oldrange = 1249902592
__PRETTY_FUNCTION__ = "RADAR_Initialise"
#4 0x08070eba in B_Load (sb=0xbff56480, data=0xbff563d0) at src/client/cl_basemanagement.c:4035
b = (base_t * const) 0xa005ca4
i = 0
k = 107
l = 8
amount = 2
ufoIdx = 255
aircraftIdxInBase = 0
teamIdxs = {0, 1, 2, 3, 4, 5, 6, 7, 3584, -1074435024, -1074437352, 135294094, 458393116, 135777152, 0, 135300406,
164458816, 135842649, -1074437240, 135300824, 458393116, 135854048, -1074437304, 135552041, 16, 135723328, 164458784,
1936680565, 1634039599, 1936617328, -1074437256, 135317696}
teamTypes = {0, 0, 0, 0, 0, 0, 0, 0, -1074437464, -1212502000, -1211612896, 458393072, -1211617292, 0,
-1211612896, 458393064, -1212508211, -1211612896, 64, 13009696, -1208652576, 0, -1074437384, 135312096, 458393072, 0,
64, 169606248, 14763792, 0, 3584, 135276857}
buildingIdx = 5
pilotIdx = 0
__PRETTY_FUNCTION__ = "B_Load"
#5 0x080c4da0 in SAV_GameLoad (file=0x1ad882cc "msgoptions_set", error=0xbff566f0) at src/client/cl_save.c:206
len = 369564
filename = "slot0", &#039;\0&#039; <repeats 15 times>, "H\000\000\000\000\000\000\032\000\000\000\000čeõæ<\234Ę·`\021+\t \fŻ\t\000\000\000\000\000\000\000\000 \202Ų\032’’’’\030fõæŁz\017\bH\021+\t \fŻ\t \000\000\000$fõæ\000\000\000\000ō/Č· AČ·č\202Ų\032 )Č·\000\000\000\000 AČ·8fõæĶ\227ŗ· AČ·@\000\000\000\001\000\000\000ąlõ·\000\000\000\000hfõæĻ“\020\b \202Ų\032\000\000\000\000@\000\000\000ą²\020\bč\202Ų\032Ģ\202Ų\032\001\000\000\0000lõæąlõ·\213\000¶·\230fõæ9)\020\b0\000\000\000\000"...
f = {z = 0xbff56624, f = 0x1b33c240,
name = "Ģdõæ \fŻ\tøeõæ\224ę¹·ĢdõæÜ<\027\b$fõæ \fŻ\t\000\000\000\000leõæ’\017\000\000\001\200­ū \fŻ\t \fŻ\t \fŻ\t \fŻ\tĄ\fŻ\t\237\034Ż\t \fŻ\t\237\034Ż\t", &#039;\0&#039; <repeats 20 times>, "\034gõæ\000\000\000\000\026\000\002\000\000\000\000\000\000\000\0---Type <return> to continue, or q <return> to quit---
00\000č\001\202\027\000\000\001\001ä8ŗ·\004\004\005\005\000\000\000\000ō/Č·\237\fŻ\tXeõæ[Kŗ·|eõæ üÜ\t\237\fŻ\tŌfõæō/Č·|eõæ üÜ\thfõæ\224ę¹·|eõæ)Į\026\bŌfõæ üÜ\t\000\000"..., filepos = 0, size = 0}
buf = (byte *) 0xb3e5b034 "\034k"
cbuf = (byte *) 0x1b46c38c "The Asian Republic"
res = 0
clen = 24825
i = 1
diff = 114
sb = {allowoverflow = qfalse, overflowed = qfalse, data = 0xb3e5b034 "\034k", maxsize = 3145728, cursize = 369564,
readcount = 167995}
header = {version = 3, compressed = 1, dummy = {0 <repeats 14 times>},
gameVersion = "2.3-dev\000\000\000\000\000\000\000\000", name = "newtestgame", &#039;\0&#039; <repeats 20 times>,
gameDate = "2084 Apr 19", &#039;\0&#039; <repeats 20 times>, realDate = &#039;\0&#039; <repeats 31 times>}
check = 255
__PRETTY_FUNCTION__ = "SAV_GameLoad"
#6 0x080c57e8 in SAV_GameLoad_f () at src/client/cl_save.c:450
error = 0x0
gamedesc = (const cvar_t *) 0x1b38f524
#7 0x080f8d5b in Cmd_ExecuteString (text=0xbff5673c "game_load slot0") at src/common/cmd.c:906
cmd = (const cmd_function_t *) 0x1796fc2c
a = (const cmd_alias_t *) 0xd
str = 0x1ad88314 "ufo_attacking"
hash = 1
#8 0x080f7cf1 in Cbuf_Execute () at src/common/cmd.c:228
text = 0x92b1160 " game_timestop;\n game_timestop;\n00 1143958\nrent 0\n-leftmouse 200 1140878\n-select 200 1140878\nurrent 0\n-leftmouse 200 1140878\n-select 200 1140878\ne_a +trees_b +trees_b +shed_a +well +house_g +well +tre"...
quotes = 0
i = 16
line = "game_load slot0\000144567\000\027Äiõæ\000\224\000\000“r\207\027\001\000\000\000\034\221\207\027\004\000\000\000 \221\207\027\214q\207\027\000\000\000\000`q\207\027\034\221\207\027\001\000\000\000 Z\207\027ąM\207\027\021\224_·°A\210¶\000\000\000\000Š\000\000\000ØL\207\027ØL\207\027\001\000\000\000 Z\207\027ąM\207\027ØL\207\027HÓ^· Z\207\027ąM\207\027 Z\207\027\000\000\000\000 Z\207\027ÄiõæøV\207\027°V\207\027ør\207\027\215ī_· Z\207\027\027ń_· Z\207\027ąM\207\027\000p\rŖ\000\000\000\000ąM\207\027Äiõærrss"...
#9 0x080a1149 in CL_SendCommand () at src/client/cl_main.c:2178
No locals.
#10 0x080a16d4 in CL_Frame (now=1144567, data=0x0) at src/client/cl_main.c:2371
delta = 20
last_frame = 1144567
#11 0x08103ebd in tick_timer (now=1144567, data=0x1ad647b4) at src/common/common.c:1072
timer = (struct timer *) 0x1ad647b4
old_interval = 20
lateness = 0
#12 0x08104158 in Qcommon_Frame () at src/common/common.c:1153
event = (struct event *) 0x1b33c1fc
time_to_next = 0
#13 0x08148c57 in main (argc=1, argv=0xbff56cb4) at src/ports/linux/linux_main.c:97
No locals.

===== Comments Ported from Sourceforge =====

====== richlv (2008-12-17 19:44:22) ======

testcase
====== kracken (2008-12-17 22:02:48) ======

see r20886
I added a check to make sure radar.numPoints does not exceed LINE_MAXPTS.
However, I don&#039;t know what cause radar.numPoints to have a wrong value. I added an assert in MAP_MapCalcLine() to try to localize the problem.
====== richlv (2008-12-22 11:11:13) ======

attached savegame can&#039;t be loaded anymore, haven&#039;t seen the problem since, considering fixed in revision 21081 :)
Steps to reproduce this issue
Nothing entered.
Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif