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 #3467 SIGSEG in AII_AutoAddAmmo (src\client\cgame\campaign\cp_mapfightequip.cpp:447)
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "Not determined".
Issue basics
  • Type of issue
    Bug report
  • Category
    General
  • 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/3467 Item 3467] imported from sourceforge.net tracker on 2013-01-28 20:10:24

Version: git Master (5ba6415602b8b8257d)
System: Windows 7 (64 Bit)

I Build an SAM Site and tried to install a AA51 missile launcher in one of the empty
weapon slots. At this point the game recieves a SIGSEGV.

In client\cgame\campaign\cp_mapfightequip.cpp:447 AIR_IsUFO(slot->aircraft) is called
which is a Macro for ((aircraft)->ufotype != UFO_MAX)

aircraft is a NULL Pointer

~~~~~~~
print *slot
$3 = {
idx = 0,
base = 0x0,
installation = 0x1859d410,
aircraft = 0x0,
type = AC_ITEM_BASE_MISSILE,
item = 0x15913f4,
ammo = 0x0,
size = ITEM_HEAVY,
ammoLeft = -1,
delayNextShot = 0,
installationTime = 12,
nextItem = 0x0,
nextAmmo = 0x0,
pos = AIR_NOSE_LEFT
}
> bt
#0 AII_AutoAddAmmo (slot=0x1859d49c) at C:\dev\ufoai\src\client\cgame\campaign\cp_mapfightequip.cpp:447
#1 0x0042b9ce in BDEF_AddItem_f () at C:\dev\ufoai\src\client\cgame\campaign\cp_basedefence_callbacks.cpp:392
#2 0x004dbda1 in Cbuf_Execute () at C:\dev\ufoai\src\common\cmd.cpp:249
#3 0x0047e259 in CL_SendCommand () at C:\dev\ufoai\src\client\cl_main.cpp:980
#4 0x004de9ca in tick_timer (now=79152, data=0x18468578) at C:\dev\ufoai\src\common\common.cpp:1284
#5 0x004df8d5 in Qcommon_Frame () at C:\dev\ufoai\src\common\common.cpp:1419
#6 0x00504545 in WinMain@16 (hInstance=0x400000) at C:\dev\ufoai\src\ports\windows\win_main.cpp:103
#7 0x006080d6 in main ()
~~~~~~~~
===== Comments Ported from Sourceforge =====

====== geever (2013-01-16 22:05:55.176000) ======

Yes, sorry, fixed it up.
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