Darwinia on FreeBSD - seg fault when starting

Problems with the Linux version of Darwinia

Moderators: jelco, bert_the_turtle, Chris, andy, John

n0other
level0
Posts: 2
Joined: Sat Apr 09, 2005 1:17 am

Darwinia on FreeBSD - seg fault when starting

Postby n0other » Sat Apr 09, 2005 1:30 am

Hi , I'm a FreeBSD 5.3 user. When I saw that Darwinia's linux binaries are available and that they should run on suse or redhat, I thought I'll have no trouble launching it on FreeBSD, because linux abi is implemented quite well. I installed linux_base-suse-9.2 from ports, added linux-XFree86-libs-4.3.99.902_2, linux_dri-4.3.0_2, linux_mesa-3.4.2_3. This way I got quake 3, fallout, wolfenstein and some other games running. When I tried to run Darwinia, this is what I got:

Code: Select all

%ls
README          bin             darwinian.png   lib             setup.data      setup.sh
%cd bin/Linux/x86/
%./darwinia
.
./darwinia: ./lib/darwinia.bin.x86: not found
%cd ../../../lib/
%./darwinia.bin.x86
Could not invoke gdb stack trace because path to executable not set


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

Segmentation fault (core dumped)
%cat blackbox.txt
=========================
DARWINIA BLACK BOX REPORT
=========================

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

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

retAddress = 0x809b8eb
retAddress = 0x284f4fc9
retAddress = 0x804cbc1
%


What could be the problem?
OS: FreeBSD 5.3-RELEASE-p6
Video: ati radeon 9000, r200 chip, opensource dri drivers
n0other
level0
Posts: 2
Joined: Sat Apr 09, 2005 1:17 am

Postby n0other » Sat Apr 09, 2005 1:59 am

Here's the output of gdb:

Code: Select all

%/usr/compat/linux/usr/bin/gdb darwinia.bin.x86
GNU gdb Red Hat Linux (5.2.1-4)
Copyright 2002 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 "i386-redhat-linux"...(no debugging symbols found)...
(gdb) run darwinia.bin.x86
Starting program: /usr/home/n0other/darwinia/lib/darwinia.bin.x86 darwinia.bin.x86
Error while mapping shared library sections:
libSDL-1.2.so.0: Success.
Error while mapping shared library sections:
libvorbisfile.so.3: Success.
Error while mapping shared library sections:
libgcc_s.so.1: Success.
[New Thread 16384 (LWP 72597)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 72597)]
0x080822fc in __gxx_personality_v0 ()
(gdb) quit
The program is running.  Exit anyway? (y or n) y

Maybe this will help
User avatar
John
Introversion Staff
Introversion Staff
Posts: 509
Joined: Sun Dec 10, 2000 6:22 pm
Location: London, UK

Postby John » Thu Apr 14, 2005 12:30 pm

I don't have FreeBSD, but you might try removing some of the libraries in the lib directory, if you have your own compat versions of them.
sannn
level0
Posts: 1
Joined: Mon Dec 19, 2005 6:17 pm

it works, it works, it works, it works, it works, it works..

Postby sannn » Mon Dec 19, 2005 6:28 pm

For those who use FreeBSD... it works..!!

I have installed DesktopBSD 1.0 RC3 (www.desktopbsd.net) which is actually FreeBSD 5.4 with some additional tools / modifications to the kernel / KDE installed.

This is what I did (nothing special):

1) Install the nvidia driver and linux_base-8.
2) Download the linux demo (version 2).
3) Extract the darwinia-demo2-1.3.0.sh file using the --target parameter.
4) Run the executable "lib/darwinia.bin.x86"

Thanks for making this game.. I enjoyed the demo and I think I will buy the full version soon!

Cheers,
San

Return to “Linux Issues”

Who is online

Users browsing this forum: No registered users and 1 guest