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 #483 Segfault on exit
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
    Engine
  • Targetted for
    Not determined
  • Status
    Closed
  • Priority
    1. Very low
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/483 Item 483] imported from sourceforge.net tracker on 2013-01-28 18:21:29

Well, this doesn't affect the gameplay, but maybe it is a bug. I made a backtrace with gdb:

#0 0x00002b20a291c86d in getenv () from /lib/libc.so.6
#1 0x00002b20a179864d in _fini () from /usr/lib/libGL.so.1
#2 0x00002b20a152fbd7 in _dl_rtld_di_serinfo () from /lib64/ld-linux-x86-64.so.2
#3 0x00002b20a291d155 in exit () from /lib/libc.so.6
#4 0x000000000048fa45 in Sys_Quit () at src/ports/linux/sys_linux.c:353
#5 0x000000000046a1bb in Com_Quit () at src/qcommon/common.c:269
#6 0x0000000000432e1e in CL_Quit_f () at src/client/cl_main.c:221
#7 0x000000000045e493 in Cmd_ExecuteString (text=0x7fff09586670 "quit") at src/qcommon/cmd.c:876
#8 0x000000000045d3df in Cbuf_Execute () at src/qcommon/cmd.c:266
#9 0x0000000000436f9f in CL_SendCommand () at src/client/cl_main.c:2046
#10 0x00000000004377a6 in CL_Frame (msec=11) at src/client/cl_main.c:2282
#11 0x000000000046ccc3 in Qcommon_Frame (msec=12) at src/qcommon/common.c:1631
#12 0x0000000000490211 in main (argc=10, argv=0x7fff09586c68) at src/ports/linux/sys_linux.c:659


The message I normally get is:
recursive shutdown
Segmentation fault (core dumped)

I am running on Linux: Ubuntu Edgy (amd64)
Graphics card: Nvidia 6600 GT (drivers: v1.08776)
1 GB ram
===== Comments Ported from Sourceforge =====

====== janfsd (2007-01-31 11:49:20) ======

Logged In: YES
user_id=1706424
Originator: YES

I forgot, I am running svn revision 957.
====== janfsd (2007-01-31 15:45:14) ======

Logged In: YES
user_id=1706424
Originator: YES

Sorry to add another comment, but I realize I write the wrong svn revision, actually it's rev 5974, sorry for the mistake.
====== voovoos (2007-02-03 21:46:38) ======

Logged In: YES
user_id=194458
Originator: NO

Can you try the patch #1626363 (tracker -> patches), please?
====== janfsd (2007-02-03 23:49:33) ======

Logged In: YES
user_id=1706424
Originator: YES

I applied that patch, using the rev 6057 and still get segfault on exit.
I made a again backtrace, and it seems different, here it is:

#0 0x00002b2664d8286d in getenv () from /lib/libc.so.6
#1 0x00002b2663bfe64d in _fini () from /usr/lib/libGL.so.1
#2 0x00002b2663995bd7 in _dl_rtld_di_serinfo ()
from /lib64/ld-linux-x86-64.so.2
#3 0x00002b2664d83155 in exit () from /lib/libc.so.6
#4 0x00002b2664d6d0cb in __libc_start_main () from /lib/libc.so.6
#5 0x0000000000403509 in _start ()



====== voovoos (2007-02-08 08:08:50) ======

Logged In: YES
user_id=194458
Originator: NO

This segfault definitely needs to get rid out one day. I will try to make new patch for this. :-)
====== mnw21cam (2007-02-21 22:24:24) ======

Logged In: YES
user_id=1661734
Originator: NO

Last time I played this, I did not get a segfault on exit.

Is this bug fixed?
====== voovoos (2007-02-22 09:50:22) ======

Logged In: YES
user_id=194458
Originator: NO

It is not fixed. This bug is hard to catch because it appears only in few situations, not always. I suspect you can hit this with low memory.
====== wirser (2007-04-06 21:04:40) ======

Logged In: YES
user_id=1537631
Originator: NO

I get simular results but only from ufoai-2.1-source tarball not from svn 7277.
system FC5 86_64 with nvidia geforce 6150 driver version 1.0-8776
2gb system ram 256mb video ram
had to patch src/ports/linux/gl_glx.c per forum topic " "Post subject: ref_glx.so: undefined symbol: XF86VidModeQueryVersion"
this resulted in same message at game exit

did gdb backtrace as follows
_______________________________________
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46912496265424 (LWP 7136)]
0x000000341423123d in getenv () from /lib64/libc.so.6
(gdb) bt
#0 0x000000341423123d in getenv () from /lib64/libc.so.6
#1 0x00000036f2e5464d in _fini () from /usr/lib64/nvidia/libGL.so.1
#2 0x000000341350d384 in _dl_fini () from /lib64/ld-linux-x86-64.so.2
#3 0x0000003414231b25 in exit () from /lib64/libc.so.6
#4 0x00000000004965f2 in Sys_Quit () at src/ports/linux/sys_linux.c:357
#5 0x00000000004719d9 in Com_Quit () at src/qcommon/common.c:263
#6 0x00000000004372de in CL_Quit_f () at src/client/cl_main.c:213
#7 0x0000000000465f52 in Cmd_ExecuteString (text=0x7ffff0bbcc90 "quit")
at src/qcommon/cmd.c:930
#8 0x0000000000464e48 in Cbuf_Execute () at src/qcommon/cmd.c:266
#9 0x000000000043b261 in CL_SendCommand () at src/client/cl_main.c:2044
#10 0x000000000043ba8e in CL_Frame (msec=11) at src/client/cl_main.c:2285
#11 0x0000000000474701 in Qcommon_Frame (msec=11) at src/qcommon/common.c:1712
#12 0x0000000000496c39 in main (argc=1, argv=0x7ffff0bbd298)
at src/ports/linux/sys_linux.c:648
____________________________________________________
reverted src/ports/linux/gl_glx.c and used
"./ufo +set vid_ref sdl" with no exit error
====== tlh2000 (2007-09-25 14:55:47) ======

Logged In: YES
user_id=116930
Originator: NO

this should be fixed due to renderer merge
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