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 #2898 Segfault on creating crashdump Linux 32bit
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
    7. Critical
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/2898 Item 2898] imported from sourceforge.net tracker on 2013-01-28 19:50:51

The game segfaults when tries to create a crashdump.

-geever
===== Comments Ported from Sourceforge =====

====== geever (2011-06-05 00:27:06) ======

backtrace
====== geever (2011-06-05 00:35:29) ======

THIS IS A NICE ONE!
Let me tell you first that all this code was Chinese for me at first look. But I tried hacking here and there to figure out what goers wrong as everything seemed to be okay.

I've never used this variable length parameter handling stuff before but one of my hacks eliminated the segfault... I put a va_arg(ap, int) before the vsnprintf call... The memory address was wrong in the crashdump, but didn't segfault.. I tried to find out how all this things work, when I found this one:

http://www.cygwin.com/ml/binutils/2005-07/msg00286.html

Checked and won:

sizeof(unsigned long) = 4
sizeof(bfd_vma) = 8

bfd_vma is 8 bytes even on my 32bit system. Using unsigned long instead of bfd_vma seems to be the right solution for this problem (tested on Debian Linux 5.0 i686 and Debian Linux 6.0 amd64)

-geever
====== sf-robot (2011-06-19 01:20:04) ======

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
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