1.3 Segfault with TGF's Droughtwinia mod

Problems with the Linux version of Darwinia

Moderators: jelco, bert_the_turtle, Chris, andy, John

User avatar
Dave2
level4
level4
Posts: 550
Joined: Wed Feb 20, 2002 9:07 pm
Location: Reading, England

1.3 Segfault with TGF's Droughtwinia mod

Postby Dave2 » Thu Dec 01, 2005 6:07 pm

With TGF's Droughtwinia (X+3), Darwinia segfaults upon activating the last trunk port (so presumably when attempting to run the script). This is with 1.3b1, but I believe this is basically the same as 1.3 release.

Blackbox:

Code: Select all

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

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

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

ServerAddress = 127.00
BypassNetwork = 1
SinglePlayer = 1
IAmAServer = 1
TextLanguage = english
TextSpeed = 15
HelpEnabled = 0
SoundLibrary = software
SoundMixFreq = 44100
SoundMasterVolume = 255
SoundChannels = 64
SoundHW3D = 0
SoundDSP = 1
SoundSwapStereo = 1
SoundMemoryUsage = 1
SoundBufferSize = 512
ScreenWidth = 1600
ScreenHeight = 1200
ScreenWindowed = 0
ScreenZDepth = 24
ScreenColourDepth = 32
ScreenRefresh = 60
RenderLandscapeDetail = 1
RenderWaterDetail = 1
RenderBuildingDetail = 1
RenderEntityDetail = 1
RenderCloudDetail = 1
RenderPixelShader = 1
ControlMouseButtons = 3
RenderLandscapeUsingDisplayLists = 1
ManuallyScaleTextures = 0
BootLoader = random
UserProfile = 1.30
ModSystemEnabled = 1
Mod = Droughtwinia X+3
XineramaHack = 0
RenderPosterResolution = 4
ControlMethod = 0
ControlChatLog = key TAB
ControlIconsChatLog = key L
ControlZoom = key Z
ControlDeselect = key SPACE
ControlUp = key E
ControlDown = key Q
ControlIconsTaskManagerEndTask = key C
ControlLeft = key A
ControlBackwards = key S
ControlRight = key D
ControlForwards = key W
ControlSkipMessage = key ENTER
ControlIconsTaskManagerDisplay = key TAB

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

retAddress = 0x8060590
retAddress = 0x806497b
retAddress = 0x810adfa
retAddress = 0x81187d2
retAddress = 0x811709f
retAddress = 0x80e9736
retAddress = 0x80b500d
retAddress = 0x80b51c5
retAddress = 0x80bd8af
retAddress = 0x80be56d
retAddress = 0x80a9c88
retAddress = 0xb7b37ea2
retAddress = 0x804cc91


gdb stack trace:

GNU gdb 6.3-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 /mnt/hda7/usr/local/games/darwinia/lib/darwinia.bin.x86...(no debugging symbols found)...done.
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) Attaching to program: /mnt/hda7/usr/local/games/darwinia/lib/darwinia.bin.x86, process 26055
(no debugging symbols found)
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
Reading symbols from /mnt/hda7/usr/local/games/darwinia/lib/libSDL-1.2.so.0...done.
Loaded symbols for /usr/local/games/darwinia/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/lib/libGLU.so.1...done.
Loaded symbols for /usr/lib/libGLU.so.1
Reading symbols from /mnt/hda7/usr/local/games/darwinia/lib/libvorbisfile.so.3...done.
Loaded symbols for /usr/local/games/darwinia/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/i686/cmov/libm.so.6...done.
Loaded symbols for /lib/tls/i686/cmov/libm.so.6
Reading symbols from /mnt/hda7/usr/local/games/darwinia/lib/libgcc_s.so.1...done.
Loaded symbols for /usr/local/games/darwinia/lib/libgcc_s.so.1
Reading symbols from /lib/tls/i686/cmov/libc.so.6...done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /lib/tls/i686/cmov/libpthread.so.0...done.
[Thread debugging using libthread_db enabled]
[New Thread -1222932768 (LWP 26055)]
[New Thread -1291224144 (LWP 26056)]
Loaded symbols for /lib/tls/i686/cmov/libpthread.so.0
Reading symbols from /lib/tls/i686/cmov/libdl.so.2...done.
Loaded symbols for /lib/tls/i686/cmov/libdl.so.2
Reading symbols from /usr/lib/libX11.so.6...done.
Loaded symbols for /usr/lib/libX11.so.6
Reading symbols from /usr/lib/libXext.so.6...done.
Loaded symbols for /usr/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 /mnt/hda7/usr/local/games/darwinia/lib/libvorbis.so.0...done.
Loaded symbols for /usr/local/games/darwinia/lib/../lib/libvorbis.so.0
Reading symbols from /mnt/hda7/usr/local/games/darwinia/lib/libogg.so.0...done.
Loaded symbols for /usr/local/games/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/libXau.so.6...done.
Loaded symbols for /usr/lib/libXau.so.6
Reading symbols from /usr/lib/libXdmcp.so.6...done.
Loaded symbols for /usr/lib/libXdmcp.so.6
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/lib/libXfixes.so.3...done.
Loaded symbols for /usr/lib/libXfixes.so.3
Reading symbols from /usr/lib/X11/locale/common/xlcDef.so.2...done.
Loaded symbols for /usr/lib/X11/locale/common/xlcDef.so.2
Reading symbols from /usr/lib/libasound.so.2...done.
Loaded symbols for /usr/lib/libasound.so.2
0xffffe410 in __kernel_vsyscall ()
(gdb)   2 Thread -1291224144 (LWP 26056)  0xffffe410 in __kernel_vsyscall ()
  1 Thread -1222932768 (LWP 26055)  0xffffe410 in __kernel_vsyscall ()
(gdb)
Thread 2 (Thread -1291224144 (LWP 26056)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7be3e29 in ioctl () from /lib/tls/i686/cmov/libc.so.6
#2  0xb3c8664e in _snd_pcm_hw_open () from /usr/lib/libasound.so.2
#3  0xb3c75d88 in snd_pcm_writei () from /usr/lib/libasound.so.2
#4  0xb7e5fd33 in ALSA_PlayAudio (this=0x997ca80) at SDL_alsa_audio.c:270
#5  0xb7e5a137 in SDL_RunAudio (audiop=0x997ca80) at SDL_audio.c:232
#6  0xb7ea510b in SDL_RunThread (data=0x997c998) at SDL_thread.c:218
#7  0xb7ea531f in RunThread (data=0xfffffe00) at SDL_systhread.c:82
#8  0xb7b16361 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#9  0xb7bebbde in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread -1222932768 (LWP 26055)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7bae56b in waitpid () from /lib/tls/i686/cmov/libc.so.6
#2  0xb7b583d9 in strtold_l () from /lib/tls/i686/cmov/libc.so.6
#3  0xb7b58751 in system () from /lib/tls/i686/cmov/libc.so.6
#4  0x0808fd54 in ?? ()
#5  0x0809004e in ?? ()
#6  0x0808fe6c in ?? ()
#7  <signal handler called>
#8  0x0806029e in ?? ()
#9  0x08060590 in ?? ()
#10 0x0806497b in ?? ()
#11 0x0810adfa in ?? ()
#12 0x081187d2 in ?? ()
#13 0x0811709f in ?? ()
#14 0x080e9736 in ?? ()
#15 0x080b500d in ?? ()
#16 0x080b51c5 in ?? ()
#17 0x080bd8af in ?? ()
#18 0x080be56d in ?? ()
#19 0x080a9c88 in ?? ()
#20 0xb7b37ea2 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#21 0x0804cc91 in ?? ()
#0  0xffffe410 in __kernel_vsyscall ()
(gdb) Detaching from program: /mnt/hda7/usr/local/games/darwinia/lib/darwinia.bin.x86, process 26055
User avatar
The GoldFish
level5
level5
Posts: 3961
Joined: Fri Mar 01, 2002 9:01 pm
Location: Bowl / South UK
Contact:

Postby The GoldFish » Thu Dec 01, 2005 7:08 pm

Hi - we did a quick test and decided that this was not being caused by the script (or the MakeAvailible function)

People have been encountering a similar problem with the windows version, and I really can't work it out.

We're still fiddling around trying to work out what it is...

Edit - the same version of the mod, in windows, no longer results in a crash for me - ever since I pointed all the other trunk ports away from the zone in game.txt

The game doesn't crash if it starts up with these trunk ports already online. Setting the locations of the duplicate levels to elsewhere didn't help either.
-- 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!
User avatar
hitm4n
level3
level3
Posts: 461
Joined: Fri Nov 18, 2005 1:22 pm

Postby hitm4n » Thu Dec 01, 2005 7:27 pm

The game doesn't crash if it starts up with these trunk ports already online

what about new players who haven't got the trunk ports all open? after a crash i can reload the game and continue where i left off, but with 1 trunk port always left to open. As soon as i try, crasheroony again. And until i complete that objective i cannot access any other area.

When you say it no longer crashes, do you mean in that last released version, or have you recently fixed it again ?
User avatar
John
Introversion Staff
Introversion Staff
Posts: 511
Joined: Sun Dec 10, 2000 6:22 pm
Location: London, UK

Postby John » Fri Dec 02, 2005 12:11 am

Here's that stack trace decoded:

retAddress = GlobalEvent::Execute() (0x8060590)
retAddress = GlobalWorld::EvaluateEvents() (0x806497b)
retAddress = ControlTower::Reprogram(int) (0x810adfa)
retAddress = Engineer::AdvanceReprogramming() (0x81187d2)
retAddress = Engineer::Advance(Unit*) (0x811709f)
retAddress = Team::Advance(int) (0x80e9736)
retAddress = Location::AdvanceTeams(int) (0x80b500d)
retAddress = Location::Advance(int) (0x80b51c5)
retAddress = LocationGameLoop() (0x80bd8af)
retAddress = RunTheGame() (0x80be56d)
retAddress = main (0x80a9c88)

Return to “Linux Issues”

Who is online

Users browsing this forum: No registered users and 13 guests