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 #5704 NULL PTR dereference when starting battle
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue basics
  • Type of issue
    Bug report
  • Category
    Not determined
  • Targetted for
    Not determined
  • Status
    Closed
  • Progress
  • Priority
    Not determined
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (1)
People involved
Times and dates
  • Posted at
  • Last updated
  • Estimated time
    Not estimated
Issue details
  • Resolution
    RESOLVED
  • Reproducability
    Not determined
  • Severity
    Not determined
  • Complexity
    Not determined
  • Platform
    Linux
  • Architecture
    x86_64
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
GDB reports this call stack and most importantly this being null:
<source lang="c">
Item::getReactionFireWeaponType(this=0x0)
Inventory::holdsReactionFireWeapon(this=0xe482c9a02c8 <cl+955336>)
HUD_UpdateButtons(le=<optimized out>)
Cvar_ExecuteChangeListener(cvar=0xe482ec54740)
Cvar_Set2(varName=0xe482c80be4b "mn_rweapon", value=0x7fbc98cb06f0 "weapons/stunrod/stunrod", force=0x0)
Cvar_Set(varName=0xe482c80be4b "mn_rweapon", value=0xe482c83157e "%s")
CL_ActorCvars(chr=0xe482fc4cb50)
CL_UpdateCharacterValues(chr=0xe482fc4cb50)
CL_ActorSelect(le=0xe482c99fff0 <cl+954608>)
CL_ActorSelectList(num=0x0)
</source>

the null deref happens in src/game/inv_shared.h:484:
<source lang="c++">
483 inline const objDef_t* def (void) const {
484 return _itemDef;
485 }
</source>
Steps to reproduce this issue
for me this happens all the time, i have not figured out how not to reproduce this.
Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif