Forum

> > CS2D > General > linux cd2d Segmentation fault
Forums overviewCS2D overviewGeneral overviewLog in to reply

English linux cd2d Segmentation fault

6 replies
To the start Previous 1 Next To the start

old closed linux cd2d Segmentation fault

oleg
User Off Offline

Quote
oleg@localhost ~/Counter-Strike 2D $ ./CounterStrike2D
Graphics Mode Error:
640x480 at 32 bit does not work!
oleg@localhost ~/Counter-Strike 2D $ ./CounterStrike2D -win
Segmentation fault

OS info:
Linux localhost 2.6.30-gentoo-r6 #2 SMP PREEMPT Tue Sep 8 01:33:40 EEST 2009 i686 AMD Athlon(tm) XP 2200+ AuthenticAMD GNU/Linux

libstdc++v3 installed
/usr/lib/libstdc++.so.5 -> libstdc++.so.5.0.7
/usr/lib/libstdc++.so.5.0.7

old Re: linux cd2d Segmentation fault

spartan029
User Off Offline

Quote
That's odd. So your not running Ubuntu?

and truly i have no idea what a segmentation fault is.

I'm terribly sorry. i am not to skilled in the Linux OS although i had some time with it, i do know a little.

old Re: linux cd2d Segmentation fault

DC
Admin Off Offline

Quote
it's also possible that you didn't extract everything properly and/or that CS2D tries to access some resources which are not available.

these resources are either files or libraries.

old Re: linux cd2d Segmentation fault

oleg
User Off Offline

Quote
This is on Gentoo Linux and permission is good
-rwxr-xr-x 1 oleg oleg 2.1M Jun 14 07:45 CounterStrike2D

I think problem with reading of gfx/fonts/arial.ttf
strace show last open() call before segfault on
open("gfx/fonts/arial.ttf", O_RDONLY)
...
read(7, "\0\2\246\324\0\2\247\270\0\2\2518\0\2\252\272\0\2\253\272\0\2\254\316\0\2\256\22\0\2\256\"\0"..., 4096) = 4096
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview