Crash on Exit, free(): invalid pointer

Problems with the Linux version of Darwinia

Moderators: jelco, bert_the_turtle, Chris, andy, John

sloth
level0
Posts: 9
Joined: Sat Nov 13, 2004 8:36 am
Location: Grass Valley, CA

Crash on Exit, free(): invalid pointer

Postby sloth » Fri Dec 31, 2004 7:14 am

Darwinia Linux Demo Beta 4d crashes on exit.

I have reproduced this crash four times in one day, but it does not happen everytime I play. When I choose Leave Location (it has not happened when choosing Reset Location) the game exits and the console shows info similar to this:
CLIENT : Sending disconnect...

Saving profile sloth

Saved global data for profile sloth



Darwinia has unexpectedly encountered a fatal error.
A full description of the error can be found in the file
blackbox.txt in the current working directory

free(): invalid pointer 0x8f175b0!
free(): invalid pointer 0xa2b0330!
free(): invalid pointer 0xa2b0330!
./darwinia: line 4: 6226 Segmentation fault $here/darwinia.x86

Here is the blackbox.txt for this specific crash:
=========================
DARWINIA BLACK BOX REPORT
=========================

VERSION : linux-demo-beta4d
ERROR : 'Got a fatal signal: 11
'

=========================
===== SYSTEM REPORT =====
=========================

SysInfoGenVersion: 2
CpuVendor: AuthenticAMD
CpuModel: AMD Athlon(tm) XP 3000+
Num Processors: 1
Country: N/A
Language: N/A
Num sound devices: 1
Primary sound device: Unknown
Graphics Card: Unknown
Operating System: Linux 2.6.5-7.111.19-default
Computer Name: meerkat



=========================
====== USER DATA ========
=========================

USERNAME : sloth

EMAIL : sheckells74@hotmail.com


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

ServerAddress = 127.00
BypassNetwork = 1
SinglePlayer = 1
IAmAServer = 1
TextLanguage = english
TextSpeed = 15
HelpEnabled = 1
SoundLibrary = software
SoundMixFreq = 44100
SoundMasterVolume = 255
SoundChannels = 64
SoundHW3D = 0
SoundSwapStereo = 0
SoundBufferSize = 2048
ScreenWidth = 1280
ScreenHeight = 1024
ScreenWindowed = 0
ScreenZDepth = 24
ScreenColourDepth = 32
ScreenRefresh = 60
RenderLandscapeDetail = 1
RenderWaterDetail = 1
RenderBuildingDetail = 1
RenderEntityDetail = 1
RenderCloudDetail = 1
RenderPixelShader = 1
ControlMouseButtons = 3
RenderLandscapeUsingDisplayLists = 0
ManuallyScaleTextures = 0
StartMap = mine
UserProfile = sloth

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



gdb stack trace:

GNU gdb 6.1
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 "i586-suse-linux".
(gdb) Reading symbols from /home/pico/Games/Darwinia/darwinia/darwinia.x86...(no debugging symbols found)...done.
Using host libthread_db library "/lib/tls/libthread_db.so.1".
(gdb) Attaching to program: /home/pico/Games/Darwinia/darwinia/darwinia.x86, process 6226
Reading symbols from ./libSDL-1.2.so.0...done.
Loaded symbols for ./libSDL-1.2.so.0
Reading symbols from /usr/lib/tls/libGL.so.1...done.
Loaded symbols for /usr/lib/tls/libGL.so.1
Reading symbols from /usr/lib/libGLU.so.1...done.
Loaded symbols for /usr/lib/libGLU.so.1
Reading symbols from /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/libm.so.6...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /lib/tls/libpthread.so.0...done.
[Thread debugging using libthread_db enabled]
[New Thread 1083729728 (LWP 6226)]
Loaded symbols for /lib/tls/libpthread.so.0
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/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/tls/libGLcore.so.1...done.
Loaded symbols for /usr/lib/tls/libGLcore.so.1
Reading symbols from /usr/lib/libstdc++.so.5...done.
Loaded symbols for /usr/lib/libstdc++.so.5
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/X11R6/lib/libXcursor.so.1...done.
Loaded symbols for /usr/X11R6/lib/libXcursor.so.1
Reading symbols from /usr/X11R6/lib/libXrender.so.1...done.
Loaded symbols for /usr/X11R6/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
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Loaded symbols for /lib/libnss_files.so.2
Loaded symbols for /lib/libnss_files.so.2
0xffffe410 in ?? ()
(gdb) 1 Thread 1083729728 (LWP 6226) 0xffffe410 in ?? ()
(gdb)
Thread 1 (Thread 1083729728 (LWP 6226)):
#0 0xffffe410 in ?? ()
#1 0xbfffbe7c in ?? ()
#2 0x00000000 in ?? ()
#3 0xbfffbd38 in ?? ()
#4 0x4024656b in __waitpid_nocancel () from /lib/tls/libc.so.6
#5 0x401f31cd in do_system () from /lib/tls/libc.so.6
#6 0x401f3592 in system () from /lib/tls/libc.so.6
#7 0x080a8dac in ?? ()
#8 0x080a9101 in ?? ()
#9 0x080a8ec4 in ?? ()
#10 <signal handler called>
#11 0x4050bb84 in _nv000052gl () from /usr/lib/tls/libGLcore.so.1
#0 0xffffe410 in ?? ()
(gdb) Detaching from program: /home/pico/Games/Darwinia/darwinia/darwinia.x86, process 6226

This crash does not affect my system in any way, you only know there was a crash because of the text in the shell and the fact that gdb has created a new blackbox.txt

If this problem is related to other Crash on Exit threads please inform me, I was unable to find another post that crashed on exit with the same messages from the shell.
If more information is required please let me know.

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

Postby John » Fri Dec 31, 2004 11:29 am

Do you think that this is related to using the radar dishes to transport units at all?
sloth
level0
Posts: 9
Joined: Sat Nov 13, 2004 8:36 am
Location: Grass Valley, CA

Postby sloth » Sun Jan 02, 2005 7:57 pm

John -
Since reading your response I have played the game several times and have been unable to find a correlation between the game crashing on exit and anything I do while playing. So far I've tried creating squads, engineers and officers, reprogramming and using the radar dishes (programming one end, programming both ends and sending both squads and darwinians through) and killing different types of enemies. I will continue to step through the game. The crash seems to happen when I've been playing for a while, so it might be related to reprogramming incubators or the trunk port, or getting the refinery working.

If you have any suggestions please let me know.

sloth

Return to “Linux Issues”

Who is online

Users browsing this forum: No registered users and 15 guests