project-navigation
Personal tools

Author Topic: ufo2map segmentation fault  (Read 3862 times)

Offline apo

  • Rookie
  • ***
  • Posts: 64
    • View Profile
ufo2map segmentation fault
« on: April 19, 2017, 07:40:14 pm »
Hi,

In Debian I build the maps for UFO:AI 2.5 from source. This works most of the time. However on i386 (32bit) and rarely even on amd64 (64bit) I get a segmentation fault, something like

/usr/bin/ufo2map -v 4 -nice 19 -quant 4 -soft maps/oriental.map
> build/maps.mk:46: recipe for target 'base/maps/oriental.bsp' failed
> make[2]: *** [base/maps/oriental.bsp] Segmentation fault

Is this a known issue and possibly fixed in the 2.6 branch? Is there a compile time option to increase the verbosity of ufo2map?
You should be able to reproduce this with the official Debian package (ufoai-maps) https://tracker.debian.org/pkg/ufoai-maps.
I'm reporting this issue because there is currently an open Debian bug #860680 https://bugs.debian.org/860680 and I would like to fix it.

Any ideas?

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: ufo2map segmentation fault
« Reply #1 on: April 19, 2017, 08:08:33 pm »
Any ideas?

I'm not a map-compiler guru, but it would be nice to see a backtrace for the investigation, maybe even a coredump*. http://ufoai.org/wiki/Debugging#gdb

(*though I'm afraid that coredump is going to be huge.)

-geever


Offline apo

  • Rookie
  • ***
  • Posts: 64
    • View Profile
Re: ufo2map segmentation fault
« Reply #2 on: April 25, 2017, 05:49:50 pm »
It turned out that there was an uninitialized variable but it got already fixed

https://sourceforge.net/p/ufoai/code/ci/bae827ba025ff1d3a56b402c27aa84401914acc4/

All good now :)

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: ufo2map segmentation fault
« Reply #3 on: April 25, 2017, 09:39:17 pm »
Thanks! I backported the fix to ufoai_2.5 branch.

-geever