Segmentation fault when loading Containment

Problems with the Linux version of Darwinia

Moderators: jelco, bert_the_turtle, Chris, andy, John

sverrehu
level0
Posts: 4
Joined: Fri Dec 23, 2005 11:07 pm

Segmentation fault when loading Containment

Postby sverrehu » Fri Dec 23, 2005 11:18 pm

Hi! First of all: Thanks a lot for providing a GNU/Linux version.

I have successfully played the game for about 30 minutes. But I can't play anymore. When I start the game and click on Containment (the second location), the program segfaults.

Here's the content of my blackbox.txt file:


Code: Select all

=========================
DARWINIA BLACK BOX REPORT
=========================

VERSION : linux-full-1.3.0
ERROR   : 'Got a fatal signal: 11
'

=========================
====== PREFERENCES ======
=========================

ServerAddress = 127.0.0.1
BypassNetwork = 1
IAmAServer = 1
TextLanguage = english
TextSpeed = 15
HelpEnabled = 1
SoundLibrary = software
SoundMixFreq = 44100
SoundMasterVolume = 255
SoundChannels = 64
SoundHW3D = 0
SoundSwapStereo = 0
SoundMemoryUsage = 1
SoundBufferSize = 512
SoundDSP = 0
ScreenWidth = 1600
ScreenHeight = 1200
ScreenWindowed = 0
ScreenZDepth = 24
ScreenColourDepth = 32
ScreenRefresh = 60
RenderLandscapeDetail = 1
RenderWaterDetail = 1
RenderBuildingDetail = 1
RenderEntityDetail = 1
RenderCloudDetail = 1
RenderPixelShader = 1
ControlUp = key E
ControlDown = key Q
ControlLeft = key A
ControlBackwards = key S
ControlRight = key D
ControlForwards = key W
ControlChatLog = key TAB
ControlZoom = key Z
ControlDeselect = key SPACE
ControlMouseButtons = 3
RenderLandscapeMode = 2
ManuallyScaleTextures = 0
BootLoader = random
UserProfile = NewUser
ControlMethod = 1

=========================
====== STACKTRACE =======
=========================

retAddress = 0x80e96ea
retAddress = 0x80b500d
retAddress = 0x80b51c5
retAddress = 0x80bd8af
retAddress = 0x80be56d
retAddress = 0x80a9c88
retAddress = 0xb7b27ed0
retAddress = 0x804cc91


gdb stack trace:

GNU gdb 6.3.90_20051119-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
(gdb) Reading symbols from /boot/nobackup/darwinia/lib/darwinia.bin.x86...(no debugging symbols found)...done.
Using host libthread_db library "/lib/tls/libthread_db.so.1".
(gdb) Attaching to program: /boot/nobackup/darwinia/lib/darwinia.bin.x86, process 29856
Reading symbols from /boot/nobackup/darwinia/lib/libSDL-1.2.so.0...done.
Loaded symbols for ./lib/libSDL-1.2.so.0
Reading symbols from /usr/lib/libGL.so.1...done.
Loaded symbols for /usr/lib/libGL.so.1
Reading symbols from /usr/X11R6/lib/libGLU.so.1...done.
Loaded symbols for /usr/X11R6/lib/libGLU.so.1
Reading symbols from /boot/nobackup/darwinia/lib/libvorbisfile.so.3...done.
Loaded symbols for ./lib/libvorbisfile.so.3
Reading symbols from /usr/lib/libstdc++.so.5...done.
Loaded symbols for /usr/lib/libstdc++.so.5
Reading symbols from /lib/tls/libm.so.6...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /boot/nobackup/darwinia/lib/libgcc_s.so.1...done.
Loaded symbols for ./lib/libgcc_s.so.1
Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/tls/libpthread.so.0...done.
[Thread debugging using libthread_db enabled]
[New Thread -1223325984 (LWP 29856)]
[New Thread -1262736464 (LWP 29857)]
Loaded symbols for /lib/tls/libpthread.so.0
Reading symbols from /lib/tls/libdl.so.2...done.
Loaded symbols for /lib/tls/libdl.so.2
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.6
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXext.so.6
Reading symbols from /usr/lib/libGLcore.so.1...done.
Loaded symbols for /usr/lib/libGLcore.so.1
Reading symbols from /usr/lib/tls/libnvidia-tls.so.1...done.
Loaded symbols for /usr/lib/tls/libnvidia-tls.so.1
Reading symbols from /usr/lib/libstdc++.so.6...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /boot/nobackup/darwinia/lib/libvorbis.so.0...done.
Loaded symbols for /boot/nobackup/darwinia/./lib/../lib/libvorbis.so.0
Reading symbols from /boot/nobackup/darwinia/lib/libogg.so.0...done.
Loaded symbols for /boot/nobackup/darwinia/./lib/../lib/libogg.so.0
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/libXcursor.so.1...done.
Loaded symbols for /usr/lib/libXcursor.so.1
Reading symbols from /usr/lib/libXrender.so.1...done.
Loaded symbols for /usr/lib/libXrender.so.1
Reading symbols from /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2...done.
Loaded symbols for /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
0xb7b49d69 in strtold_l () from /lib/tls/libc.so.6
(gdb)   2 Thread -1262736464 (LWP 29857)  0xb7bd4871 in write () from /lib/tls/libc.so.6
  1 Thread -1223325984 (LWP 29856)  0xb7b49d69 in strtold_l () from /lib/tls/libc.so.6
(gdb)
Thread 2 (Thread -1262736464 (LWP 29857)):
#0  0xb7bd4871 in write () from /lib/tls/libc.so.6
#1  0xb7e64878 in DSP_PlayAudio (this=0x99ca3f8) at SDL_dspaudio.c:140
#2  0xb7e60137 in SDL_RunAudio (audiop=0x99ca3f8) at SDL_audio.c:232
#3  0xb7eab10b in SDL_RunThread (data=0x9a004b0) at SDL_thread.c:218
#4  0xb7eab31f in RunThread (data=0x800) at SDL_systhread.c:82
#5  0xb7b06cfd in start_thread () from /lib/tls/libpthread.so.0
#6  0xb7be419e in clone () from /lib/tls/libc.so.6

Thread 1 (Thread -1223325984 (LWP 29856)):
#0  0xb7b49d69 in strtold_l () from /lib/tls/libc.so.6
#1  0xb7b4a142 in system () from /lib/tls/libc.so.6
#2  0x0808fd54 in ?? ()
#3  0x0809004e in ?? ()
#4  0x0808fe6c in ?? ()
#5  <signal handler called>
#6  0x0812a7e3 in ?? ()
#7  0x080e96ea in ?? ()
#8  0x080b500d in ?? ()
#9  0x080b51c5 in ?? ()
#10 0x080bd8af in ?? ()
#11 0x080be56d in ?? ()
#12 0x080a9c88 in ?? ()
#13 0xb7b27ed0 in __libc_start_main () from /lib/tls/libc.so.6
#14 0x0804cc91 in ?? ()
#0  0xb7b49d69 in strtold_l () from /lib/tls/libc.so.6
(gdb) Detaching from program: /boot/nobackup/darwinia/lib/darwinia.bin.x86, process 29856


I can still play Garden, but I don't want to be stuck on that location for all the future.

I've seen several posts regarding segfaults in which DSP_PlayAudio is mentioned in the stack trace, and I've tried all the suggested solutions. Nothing helps. Any new suggestions?

Again, thanks a lot for the Linux version. I haven't had Windows installed since the mid nineties, so I buy all Linux games that show up.


Sverre.
User avatar
John
Introversion Staff
Introversion Staff
Posts: 511
Joined: Sun Dec 10, 2000 6:22 pm
Location: London, UK

Postby John » Sat Dec 24, 2005 2:07 am

Has the game ever managed to load Containment successfully for you? Does it crash immediately on load, or does it crash a little while into playing the level?

Also, what graphics hardware and drivers are you using?

Thanks
User avatar
The GoldFish
level5
level5
Posts: 3961
Joined: Fri Mar 01, 2002 9:01 pm
Location: Bowl / South UK
Contact:

Postby The GoldFish » Sat Dec 24, 2005 2:11 am

Hi

Do you have a mission_containment_enable.txt in (I'm told is) ~/.darwinia/full/users/[your profile name]/ ?

If so, you can probably fix your problem by deleting this file, however, if you do have this file, could you please post or pm the file contents to me first to see if it's another case of the squadie instant unit bug (NeoThermic informs me the stacktrace has something to do with squadies).

If this is the case then I can probably fix the mission file and return it to you, though you may wish to simply delete the file and start over.

If you don't have the above mission file, I'm afraid I can't think of anything to help.

edit - boo to you, John!
-- The GoldFish - member of former GIT and commander in chief of GALLAHAD. You could have done something, but it's been fixed. The end. Also, play bestgameever!
sverrehu
level0
Posts: 4
Joined: Fri Dec 23, 2005 11:07 pm

Postby sverrehu » Sun Dec 25, 2005 9:26 pm

John wrote:Has the game ever managed to load Containment successfully for you? Does it crash immediately on load, or does it crash a little while into playing the level?

Also, what graphics hardware and drivers are you using?


I was able to play Containment for some time the first time I was allowed into it. Problems started after I quit the game for the first time.

The game crashes immediately when I load Containment.

Nvidia GeForce 6800, with latest official driver from Nvidia.
sverrehu
level0
Posts: 4
Joined: Fri Dec 23, 2005 11:07 pm

Postby sverrehu » Sun Dec 25, 2005 9:35 pm

The GoldFish wrote:Do you have a mission_containment_enable.txt in (I'm told is) ~/.darwinia/full/users/[your profile name]/ ?

If so, you can probably fix your problem by deleting this file, however, if you do have this file, could you please post or pm the file contents to me first to see if it's another case of the squadie instant unit bug (NeoThermic informs me the stacktrace has something to do with squadies).


I pm-ed you the file, thank you.

I've tried deleting it, but then I have to play Garden all over again, and since I don't know if it will work any better the next time, I kinda don't want to.
User avatar
The GoldFish
level5
level5
Posts: 3961
Joined: Fri Mar 01, 2002 9:01 pm
Location: Bowl / South UK
Contact:

Postby The GoldFish » Sun Dec 25, 2005 10:07 pm

Hi, if you only deleted the containment mission file, you wouldn't need to replay garden.

Regardless of this, yes, you have been affected by the bug we suspected you had been, so, for John; (from containment)

Virii 1 2989.1 886.7 1 0 -1 200.0 0.0 0.0
Virii 1 2954.5 952.9 1 0 -1 200.0 0.0 0.0
Squadie 2 2471.8 929.9 1 0 0 50.0 0.0 0.0
Squadie 2 2471.8 929.9 1 0 0 50.0 0.0 0.0
Squadie 2 2471.8 929.9 1 0 0 50.0 0.0 0.0
Squadie 2 2471.8 929.9 1 0 0 50.0 0.0 0.0
InstantUnits_EndDefinition

(whole original mission file should it be useful to you)

and for you;

zip file with mission file in, backup your existing one someplace and copy this one into your profile

This should be correct as of your last save. Very few people suffer this bug (apparently it's existed since 1.3 was released and no one noticed) so I doubt it will occur again. Because of that, thank you for submitting the mission file to be poked at, because we don't exactly have alot of sources.

Please be aware I can't actually load your changed mission file up to check it's ok because the PC I'm using is fairly broken and would crash almost instantly with any 3D app, but there's no reason why it shouldn't work
sverrehu
level0
Posts: 4
Joined: Fri Dec 23, 2005 11:07 pm

Postby sverrehu » Sun Dec 25, 2005 11:22 pm

The GoldFish wrote:zip file with mission file in, backup your existing one someplace and copy this one into your profile


Thanks a lot for your time!

Return to “Linux Issues”

Who is online

Users browsing this forum: No registered users and 6 guests